question

Jan K7 avatar image
0 Likes"
Jan K7 asked Sam Stubbs answered

Decide point EMPTY tank

Hello I Have question about "decide" I would like to control, if one tank is empty, then it is true and I fluid flow will go to that tank, if not, than the flow will go to storage tank. I tried to use "Conditional Decide" but I am not sure how to write the "code" Thank you BR Jan

FlexSim 18.2.2
decision points
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

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered

You can get the variable "curcontent" from a tank, and use that to check to see if it is full. The condition would look something like: getvarnum(TankObject, "curcontent")==0
(Where "TankObject" is a reference to the tank, this basically says, if the "curcontent" of the tank is at 0 return true.)

5 |100000

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