LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing data around in labview

 
 
Goal
 
To generate a piece of data in an event and then use that data elswhere in my code
 
The only way I know of doing this is to make an indicator, then make it invisible
and then either reference the control via a property node or local variable.
 
Is there anyway to store the data without using an invisble control or indicator?
 
Thanks
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 4
(2,558 Views)

If the data to transfer is not that big, you can use queque or notifier to transfer the data.  This is useful when you apply the Producer-Consumer pattern in you code, where you use queue or notifier to transfer settings between the producer and consumer loop.

0 Kudos
Message 2 of 4
(2,546 Views)

You can also use a functional global, i.e. a VI storing the data in an un-initialized shift register.

 

And don't forget the event structure. You can generate your own event to post data to an eventstructure.

 

Jan

www.endevo.se

0 Kudos
Message 3 of 4
(2,535 Views)
>> Is there anyway to store the data without using an invisble control or indicator?

Read  through this thread and you may get some ideas :

http://forums.ni.com/ni/board/message?board.id=170&message.id=263926

Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 4 of 4
(2,380 Views)