question

Wang Z2 avatar image
0 Likes"
Wang Z2 asked Jon Abbott commented

How could I change the Global Variable Value using GUI editable text or listbox?

How could I change the Global Variable Value using GUI editable text or listbox?

In my simple model,I try to change the Global Variable value using GUI editable text,I tried to use hotlinkx and coldlinkx to achieve it ,but it failed.

I don't know if it is because of my wrong code.

Thank for your help.The code is as follows, the model isgui-global-variables.fsm

return(node("/?Bay/Data",model()));
FlexSim 18.2.3
guiglobal variables
5 |100000

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

Joshua S avatar image
0 Likes"
Joshua S answered

I would add a normal hotlink, and use

MODEL:/Tools/GlobalVariables/Bay/Data
5 |100000

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

leslie H avatar image
1 Like"
leslie H answered Jon Abbott commented

It took me a moment as I'm new, but I realized the answer is: Using hotlink, type MODEL:/Tools/GlobalVariables/"Global Variable Name"/Data in the code for the hotlink replacing "Global Variable Name" with the name you have defined in your Global Variables.

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

Jon Abbott avatar image Jon Abbott commented ·

Thanks @leslie H! This helped me on the project I'm working on.

1 Like 1 ·