11-21-2008 11:24 AM
Hello all,
Below is my little VI. Is there a way to check if Tester (Host).vi is running?
Because what I want to do is, instead of always getting values from Tester(Host).vi, check to see if Tester(Host).vi is running. If it is runinng, take the values from that VI. If not, it uses the values of some control inside this vi.
Thanks.
Solved! Go to Solution.
11-21-2008 11:56 AM
Found it. Have been looking in the wrong place
Property Node, Execution State
11-30-2017 01:18 AM
I tried to register asynchronously called VIs to catch their KeyDown events, but I got error that the VI is not open, upon attempt to register it, despite the VI state was already "Running".
Turned out the solution is to poll for VI's front panel state going to standard (VI property FP.State = Standard).
11-30-2017 02:57 AM
UI events like KeyDown are only possible when the front panel is open.
A vi can be open and running while the front panel is (temporarily or permanently) hidden. Hence, the error you got.
Same for other functions also related to UI, for example mouse pointer manipulation functions.
11-30-2017 03:05 AM
Yeah, that's what I thought, thus I found the solution. I'm sharing my experience just in case someone stumbles upon the same problem and finds this thread, just like I did.
11-30-2017 03:11 AM
Sure, you are not wrong and deserve a kudo for sharing. I only added a little bit of more explanation and info.
That's the way this forum works.