09-26-2011 08:45 AM
Hallo,
I've a simple task. I want to read out in a Subvi the actual value of an control from a top-level VI. I want to solve this by using a reference to the control.
I've attached a simplified program which shows this.
But the problem is now. When I run the Main VI on a cRIO-Device, the Indicator "DataByReference" is not updated with the actual value. Only when I open at runtime the "RefMain.vi" too, then everything is working fine.
More strange is, when I run the Main VI on the Host-PC, everything is working fine, also without opening the "RefMain.vi" at runtime.
Has anyone an explanation for this behavior?
Thanks in advance!!
Bernd
Solved! Go to Solution.
09-26-2011 08:56 AM
This is not a bug. See This for explanation.
09-26-2011 09:00 AM
Hello,
My name is Dave and I am an Applications Engineer at National Instruments UK.
To help more with your problem I am going to need some more information. As I understand it you want the "DataByReference" indicator to update in the SubVI when the top level VI is updated during runtime, is this correct? If this is the issue then when I tried to run the VI's myself I found that all of the SubVI's updated straight away without having to open "RefMain.vi".
If you reply to this then I will continue to look into your problem. I wish you all the best of luck.
Regards
09-26-2011 09:15 AM
@Wayne.C wrote:
This is not a bug. See This for explanation.
Agreed! It has been that way since LV 6i at the very least (come think of it there were no property nodes before LV 6i).
Ben
09-26-2011 11:38 AM
If you're building an executable to run on the cRIO, and you find it frustrating that the compiler doesn't warn you about the use of property nodes, please add a kudo to this idea.
09-27-2011 01:25 AM
Thanks to all for your help
BR
Bernd