10-25-2006 01:21 PM
10-25-2006 01:40 PM
06-07-2016 03:24 PM
Hi Dennis, I'm doing a similar thing - passing data to a seperate popup using a global variable. Data transfer ok if I run the popup manually, but not when it is opened from the original vi. I've cut it right back for simplicity in the attached.
Very grateful for your help.
Graham
06-08-2016 01:20 AM
It's dataflow - when the subVI is called, the loop in the caller stops iterating, because it's waiting for the subVI to return, so no new random values are being generated. It's helpful to use execution highlighting to debug things, because that would have shown you the issue immediately.
One option is to run the VI dynamically. Another is to run it in parallel and use a static VI reference to call the FP.Open method or pass a message to the VI to open its own FP.
06-08-2016 04:58 AM
Thank you tst. I understand the error, but your second paragraph is fairly meaningless to me at the moment - my task for today.
Graham
06-08-2016 06:00 AM
Well, I have what I was after (in the case structure version of the attached), but I'm curious to know why it doesn't allow reentrant vi's as the event structure does.
G
06-08-2016 09:43 AM
@grahamwebb wrote:but I'm curious to know why it doesn't allow reentrant vi's as the event structure does.
Then it helps looking for examples, searching, or reading the documentation. Not so thin hint - look at the help for the OVR function.