FlexScript exception error on processor time using global table lookup

FlexScript exception error on processor time using global table lookup

carson_m
Not applicable
669 Views
2 Replies
Message 1 of 3

FlexScript exception error on processor time using global table lookup

carson_m
Not applicable

[ FlexSim 19.0.0 ]

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.

0 Likes
Accepted solutions (1)
670 Views
2 Replies
Replies (2)
Message 2 of 3

carson_m
Not applicable

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
Message 3 of 3

joshua_s
Not applicable
Accepted solution

Here's the documentation for getstream()

16936-pic1.png

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.