question

Oscar C13 avatar image
0 Likes"
Oscar C13 asked Oscar C13 commented

Max Content of a fluid tank with the experimenter


How can you create a parameter in the experimenter to modify the maximun content of a fluid tank?

I have made thisbut it doesn´t work well in the experimenter.


1632388288950.png


FlexSim 21.2.2
experimenterfluid
1632388288950.png (15.8 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.

Roi Sánchez avatar image
0 Likes"
Roi Sánchez answered Oscar C13 commented

Hi @Oscar C13, you have to set the FluidTank property value to the new parameter value in the OnSet trigger of the parameters table.

1632389912383.png


1632389912383.png (110.3 KiB)
· 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.

Oscar C13 avatar image Oscar C13 commented ·

Thanks to both of you. Both answers have helped me

0 Likes 0 ·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

When choosing the reference with the pipette tool, you want to choose the "Set Node Value" option. This will create the necessary code in the "On Set" event of the parameter to update the corresponding node value.

1632389932994.png

By default the value is updated when resetting the model. This should work for the experimenter. You can also have it update each time the parameter value is changed by choosing "true" for the condition.

1632389994957.png


1632389932994.png (18.6 KiB)
1632389994957.png (11.3 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.

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.