04-29-2016 02:23 PM - edited 04-29-2016 02:24 PM
I have the attached labview project, settings on a shared variable and block diagram. In my project I have a cRio that is using scan engine and reporting some RTD temps. in My Computer I have a shared variable that I aliased to the scan engine variable on the cRio. I thought this would make it so the shared variable on myComputer would report out the same as the scan engine variable on the cRio; however, that is not the case. In the front panel you can see I get 0 for the myComputer shared variable while getting the correct value from the cRio scan engine variable.
Does binding a variable to a scan engine variable mean it will keep the same value? Do I need to do anything extra? I want to do it this way becuase I have a VI that finds all variables in the SystemParameter.lvlib file and does some stuff with them.
Solved! Go to Solution.
05-03-2016 02:20 AM
Hey GreenRiver
If I am understanding correctly, you are binding the network variable to the indicator ProcessInRTD. If you put this code in a while loop with a stop button, what happens? You may have a race condition here, where it reads the network variable and puts it to that indicator, and then reads the temperature from the device and outputs that to the RTD indicator.
One suggestion I have is to just wire the output from the I/O function into the network variable inside a while loop. Then, on your host VI, read the network variable.
05-03-2016 08:59 AM
You were right, it was a race condition happening after the variables are deployed. I get the correct operation after just a moment.