Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with dimension

I have problem storing my data.
First, I want to measure current(case 1), then store the data into a file. Next, (case 2), I also measure current (different application), then store data into another file.
How to calculate average of these two set of data, after write in a file?
Also, I can't take my indicator outside my loop, with 2 loops(case is inside sequence). it shows no assignment to the tunnel. How to solve it?
Hope someone can help me with this. Thanks.
0 Kudos
Message 1 of 2
(3,003 Views)
kenscj,

Here is a quick suggestion. Create a third while loop in your program that waits on two different notifiers (Functions >> Advanced >> Synchronization >> Notifiers). Each of your data loops sends your numeric value to its notifier after each acquisition. The third loop has to wait for each notifier to fire, then you get the data from each notifier and average them together.

For examples on using notifiers, see the shipping examples for them.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(3,003 Views)