question

CSN avatar image
1 Like"
CSN asked Matthew Gillespie answered

set process time using parameter table

Hello,

When I use parameter table to set process time,if the default time unit is hours(Or other non-seconds unit), time unit will automatically switches back to seconds.

parametertable.gif


FlexSim 22.0.0
parameter table
parametertable.gif (918.1 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.

1 Answer

·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

Setting the property through code overwrites the units of that property. However, you can also set the units of the property through code. Open the code of the On Set trigger and change

setProperty(propertyName, newValue)

to

setProperty(propertyName, [newValue, "hr"])

to set the units to hours.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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