question

Carson M avatar image
0 Likes"
Carson M asked Joshua S answered

FlexScript exception error on processor time using global table lookup

final-inspection-capacity-2019-01-14.fsminspectiontime.xlsxI am importing a Global Table via Excel and am trying to reference different distributions for the process time based on the item.Type, I am either getting an error or a zero value for the process time. I have imported the table and done a right-click on the column with the distribution syntax to "Assign Data > Assign FlexScript Data". Where am I going wrong? The syntax for distributions came from the ExpertFit software within FlexSim.

FlexSim 19.0.0
global tableexpression field
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Carson M avatar image Carson M commented ·

After some troubleshooting, if I remove the "getstream(current)" from the end of the distribution statement it will work without issue. Why would that be?

0 Likes 0 ·

1 Answer

Joshua S avatar image
1 Like"
Joshua S answered

Here's the documentation for getstream()

So when you are trying to return a value from it as a FlexScript distribution, "current" is referring to the Table which doesn't have a stream attribute associated to it and that is why the exception is occurring.

So it would work if you did something like

pearsont5( 28.011022, 287.348112, 4.318541, getstream(Model.find("Processor1")))

which would then reference an object and the stream attribute associated with it.


pic1.png (19.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.