08-20-2009 03:11 PM
DFGray,
Can you provide, or point to, a demo showing how to use New Data Value Reference to communicate between two loops?
Thanks.
08-21-2009 02:51 AM - edited 08-21-2009 02:55 AM
From the LabVIEW 2009 help:
You also can use a data value reference to store data without creating extra data copies. Data value references are slightly more efficient than queues but have no timeout options. Instead of transferring data to a queue, you can create a reference to data and pass around the reference. To operate on the data, use the In Place Element structure. The Data Value Reference Read / Write Element border node accepts a data value reference as an input, allows you to operate on the data within the In Place Element structure, and replaces that data in the original memory space.
Attached a small example.
hope this helps,
Norbert
[Edit]: Correction done in example....
08-21-2009 06:28 AM
Information about the Data Value Reference is also already on the forums, please see this link
Norbert
08-21-2009 07:13 AM
02-01-2010 10:16 PM
hello Mr.Patha,
i also had the same situation, please guide me, thank you
zainudin
here is my vi
02-01-2010 10:28 PM
02-02-2010 02:48 AM
02-02-2010 02:54 AM
02-02-2010
02:37 PM
- last edited on
06-18-2025
08:40 PM
by
Content Cleaner
Zainudin,
The way to get around using local or global variables changes depending on how you're using them. If you're using them to pass data, then the posts by DFGray should explain the options.
If you're using them for control of your application, then the best approach will probably be a state machine. You can also use a cluster with all of your settings and pass it through a shift register to the different loops.