06-26-2006 11:16 PM
Hello All,
How can I reflect the values outside a loop, I have used local,global and property nodes but values dont reflect outside the loop eexcept tunneling from while loop, how can i reflect values through local or property nodes as soon as I change them the values should reflect on indicator.
Regards
06-27-2006 02:14 AM
Hi,
i think you have to run a second loop in parallel to read your global value.
Moreover, if you need to synchronize the write and read actions you can use "occurence" or "notifier" or "semaphore" (see labview example\general\notifier.llb or occurence.llb ...).
Bye
06-27-2006 02:17 AM
If this is only for display, a local of the indicator should work (as long as you're not writing another value from somewhere else at the same time). Of course, it would be better to simply place the indicator itself inside the loop.
If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
06-27-2006 11:05 PM - edited 06-27-2006 11:05 PM
HI Thanks for the Replies
Hello "tst" Actually I will be acquiring (scanning) some digital inputs all the time in my application and then I will be using those digital input status(values) in my following code which is within a loop or in a sequence.......and the whole code is in another while loop.......so whenever my Digital Input changes and if I make a local variable or use property node will the current value reflect inside the following loop or not.
With Regards
Alankar
Message Edited by Alankar on 06-27-2006 11:20 PM
06-28-2006 01:22 AM
Once you write a value into a local (or global, and even more so a value property) the control's value should be almost immediately updated (depending on the internal LV scheduling. The local should lock the write access to the control's memory space and write the new value). Once that happens, every place reading the control will have the new value.
I would advise against using the value property and going with the local because the value property forces a visual update of the indicator which will slow you down, and the local only updates the buffer. If you only have a single writer (the place where you get the digital signal) you should be OK with a local or a global. If you have more than one writer, however, or if you need to have all the data instead of just the most recent value, you should look at the synchronization tools mentioned, specifically queues.