harsh_electro Posted August 24, 2005 Report Share Posted August 24, 2005 Hi Freinds, I want to acess the data of one Vi (which is local to that loop) in the other loop ,How can i do this ? My both Vis are running in parellal. Harsh Quote Link to comment
Neville D Posted August 24, 2005 Report Share Posted August 24, 2005 Hi Freinds,I want to acess the data of one Vi (which is local to that loop) in the other loop ,How can i do this ? My both Vis are running in parellal. Harsh 5827[/snapback] There are a number of ways: 1 Set up a Q, and write data in one VI and read a Q element from the other VI. 2 Use a Notifier. When you have data, notify it to the other VI. With notifiers there is no caching of data (like a Q) so if you don't listen when its sent, it will be missed. 3 Use a Global between the two VI's. Neville. Quote Link to comment
m3nth Posted August 24, 2005 Report Share Posted August 24, 2005 And if you have to take the easy way out and use a global, don't use a LabVIEW global. Read up on LV2 or Functional globals, which are VI's that retain information in between calls (so they can be called anywhere to access that information, thus making them global). Regular LabVIEW globals are in general, a bad idea. Edited to add, btw...... this is probably in the wrong forum. Maybe the sysadmins can move it. Quote Link to comment
Mark Balla Posted August 25, 2005 Report Share Posted August 25, 2005 Hi Freinds,I want to acess the data of one Vi (which is local to that loop) in the other loop ,How can i do this ? My both Vis are running in parellal. Harsh 5827[/snapback] Since I see you are new to LabView you may not be familiar with all the terms discussed. here is a simple vi I built a while back that shows the various ways to transfer data between loops. Download File:post-584-1124939201.llb 7.1 version Download File:post-584-1124942360.llb 6.1 version I would personally recommend learning to use Queues. functionals second and locals only when you have to. (Writing to a Input Control) good luck Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.