question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Tee Hiett commented

What causes Error message "getitemgetvarnode is not recognized" in model

What causes the error message "The function getitemgetvarnode is not recognized" in the attached model? I am trying to get the maximum content of the elevators to display on the screen.

Thanks,

Teeelevators-th-02-24-2017.fsm

FlexSim HC 5.1.0
healthcareelevatorflexsim hcpicklist
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
0 Likes"
Matthew Gillespie answered Tee Hiett commented

There is an error in that OBject Statistic pickoption you're using for the text display objects. You can fix it pretty easily though. Click on one of your text objects and on the Text Display field click the scroll button to open up the code editor. On line 92 and 95 replace the word getitemgetvarnode with getvarnum:

statstr = numtostring(getitemgetvarnode(item, ITEMVAR_PROCESSTIME), 0, 2);

->

statstr = numtostring(getvarnum(item, ITEMVAR_PROCESSTIME), 0, 2); 

Hit OK and then do this on the other text object as well.

· 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.

Tee Hiett avatar image Tee Hiett commented ·

Thanks, Matthew,

I saw what the problem was but I didn't know how to fix it; so I just commented out a bunch of lines of code :-).

Tee

0 Likes 0 ·