question

Sohee P avatar image
1 Like"
Sohee P asked Sohee P commented

How to get input port value?

I want to get a input port value for items.

I use flexsim 20.2.3.

If one item entry Queue through input port 3, I want to get a value about 3. I dont know how to get a input port value. Thank you.

FlexSim 20.2.3
inputport
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

Ralf Gruber avatar image
1 Like"
Ralf Gruber answered Sohee P commented

Sohee,

if you open the code template for the entry trigger (1.) you´ll have access to the variable "port" (2.) that returns the port number of the entering item.

entyport.png

Good luck


entyport.png (47.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.

Sohee P avatar image Sohee P commented ·

Thank you for kindly answer. I didn't know about that port variable meaning. Now I got it through your answer. I appreciated it.

0 Likes 0 ·