03-07-2015 02:01 PM
Hello Friends,
I had already prepared a vi with global variables assigned in it previously... now I have updated 4 more global variables to this vi... The output at the read jet data sub vi is updating whereas the force and the rpm values are not updating in this main vi.... I call this as main vi because I just see the final output here, all in one front panel...
If i click on run once, I get 1 value and in order to get another value i should stop and run again.
Could you please suggest me how can I get it updated continuously?
03-07-2015 02:11 PM
I don't understand what you are trying to do. I don't see where you are writing any values to the global variables. What is going on inside the two subVI's you show?
03-07-2015 02:23 PM
am sorry to give the wrong info, the read_jet_data is a subvi (that reads the data throgh data socket server from the other computer).The other subvi is currently not running.I am just trying to add two new variables (rpm and force) to the existing main vi. Now I am able to see these values only in the read_jet_data subvi and not able to see the updated value in main vi. The read_jet_data subvi writes the values to the global variables.
03-07-2015 02:30 PM
You do have a race condition. You don't know whether that subVI is going to execute first, or the globals read and written to the indicators first.
03-07-2015 02:34 PM
I mean..m not understanding exactly wat u mean!! I am new to labview.... How do i come to know which is being executed first??
03-07-2015 02:41 PM
or how to make it execute one after the other??
03-07-2015 02:46 PM
LabVIEW will execute whichever one who wants to first.
You can use error wires to force an order of execution.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
03-07-2015 02:58 PM
Hey, I came to know that the global RPM is executing first and then the rest of the globals and next the read_jet_data runs but after that it doesn't continue to the global RPM for the next iteration....
03-07-2015 03:01 PM
Do you have a loop inside your subVI?
You still haven't shown it or attach the file so we can see what it is doing.
03-07-2015 04:31 PM