03-07-2015 04:41 PM
Now seeing the internals of your Read_jet_data VI, the problem is that your top level VI is never finishing the first execution of its while loop's diagram.
One of the aspect's of LabVIEW's dataflow design is that you cannot finish execution of your while loop diagram and begin the next iteration until everything on the diagram has finished. Because your Read_jet_data subVI has its own while loop that does not exit (until you press a button!?), your top level VI will never move on, meaning it will never check those globals and update its indicators again.
You should take a look at the introduction tutorials that RavensFan linked.
03-07-2015 04:50 PM
Hello,
Thanks for clearing.
I even removed the while loop of read_jet_data sub vi, but that didn't make any difference. It was not updating even then. Is there any other way to do it?
03-07-2015 04:52 PM
You also have something labelled ReadDatalogLiner in the diagram in the original image. If that is still there, then it is also being executed in the while loop - what does it do?
03-07-2015 04:59 PM
It is also read data which updates other variables (other than RPM and force)... read_dataloger doesn't have any while loop inside it.... That existed before I added read_jetdata subvi....
03-07-2015 05:22 PM
If you could zip all of your files and attach them, that would probably help us to help you.
03-07-2015 05:51 PM
Hi,
I have attached the vi here... Thanks ...
03-07-2015 06:08 PM
In the attached version, the jet read VI still had the while loop. When I removed it, I was able to get it to behave as expected.
Your read from Datasocket has the default timeout of 10,000 ms. Could it be waiting on this, causing you to think that it is not working?
Why are you using globals for this, anyway? Do they actually need to be global and available to something somewhere else in your application? If not, then you would probably do better to simply create indicators in your subVI's and assign them to output terminals that you can read from in your top level VI.
Also, you did not include all dependencies (the graphs global was missing) and you had renamed the files and not updated their dependencies to each other before sending them.
03-07-2015 06:25 PM
VItan makes good points. Here is the way it might look without globals or the subVIs.
Checking the DataSocket Read timed out and error out lines would allow more robust response to problems with the remote equipment.
Lynn
03-07-2015 06:31 PM
I want to use it for other application too... So I want it in Global variable form only.. So is there any other way to update data using global? it would be really helpful...
Thanks in advance guys..
03-07-2015 06:33 PM
If I reduce that timeout seconds, will tat help in updating?