04-17-2015 07:44 AM
Dear forum,
I currently try to use a LabVIEV VI as a simple sequencer: Several (very slow) actions have to execute one after another. Each action is represented by a Sub-VI, some actions are executed several times. While the main VI is running, the currently executed Sub-VI (and only this one) should be highlighted as its icon is changed or animated in the block diagram (like when you pause the execution of a VI).
With scripting enabled I modify the VI icon with the "VI Icon.Get as Image Data" / "VI Icon.Set from Image Data" invoke nodes (see attached exmaple in LV 2014: <Main.vi> calls <ChangeMyIcon.vi>). Works great, but when I implement this VI multiple times into a main VI (like my example), ALL of these VIs begin to blink when ONE of them is currently running.
Is there any way to modify only the icon of the running VI, even if I use the VI several times? I tried to make <ChangeMyIcon.vi> reentrant, with no luck.
Regards,
cpschnuffel
04-17-2015 07:48 AM
04-17-2015 07:51 AM
Hi Ben64,
I tried to attach the VIs directly, but that didn't work. Maybe with this zip file?
Regards,
cpschnuffel
04-17-2015 08:15 AM
04-17-2015 08:27 AM
But LabVIEW does something similar with the VI icon when in pause - and that only with the one becoming active. How do they realized it?
cpschnuffel