question

Jan Brinkjans avatar image
1 Like"
Jan Brinkjans asked Jan Brinkjans commented

Problems with Emulation Module

FlexSim 17.2.2, Emulation Version 17.2.2
I'm getting an error when I use the emulation pick-option "Is Connection Active" in ProcessFlow. Please see the attached screenshot.
Another error happens, if you try to access an Emulation variable. The command seems to be unknown (see otherscreenshot).
What is the right code to get access to Emulation Connections and Variables?
Thank you.

Other
Other (please specify)
emulation
emulation.png (86.4 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.

Jan Brinkjans avatar image Jan Brinkjans commented ·

I've just noticed that the pick-option "Is Connection Active" works in FlexSim 17.2.5.

The problem with the Emulation Variables still appears.

0 Likes 0 ·

1 Answer

·
Matt Long avatar image
1 Like"
Matt Long answered Jan Brinkjans commented

getemulationvar() was removed from the the module when we added dot syntax commands.

The isActive property was fixed in 17.2.5 but the .value is still broken. You can get around this by treating the Emulation Variable as a treenode:

treenode eVar = Emulation.Variable("MyVariable");
eVar.value = 10;
double value = eVar.value;

We don't have any plans to fix this in 17.2 or release any further updates. We will be releasing a new Emulation with FlexSim 2018 Update 1. This new version will include integration with Process Flow.

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

Jan Brinkjans avatar image Jan Brinkjans commented ·

Thank you, that works for me!

0 Likes 0 ·

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.