LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

instrument I/O issue

I am receiving data from an impedance analyzer using a GPIB interface.  The data array comes into the VI via instrument I/O assistant block.  The problem is that the array contains two plots.  The first value corresponds to plot A and the second value corresponds to plot B(see diagram) and they then alternate.  I need to get A and B separated into to separate arrays so I can plot on my VI.  Does anyone have any suggestion or solutions?
Thanks
Eric
 
[123; 1234; 120; -1233; 134; 1223]  =>   [123;120;134]  [1234; -1233; 1223]
  A        B      A       B        A      B                      A                           B
{ incoming data array}                            {two data arrays formatted for plotting}
0 Kudos
Message 1 of 3
(2,376 Views)
The Decimate 1-D Array function can do what you want. You may need to be careful about synchronizing the data between successive reads. If the instrument has a "verbose" mode where it send the name of the channel along with the data, that can be useful for the parsing.

Lynn
0 Kudos
Message 2 of 3
(2,373 Views)

That was an easy fix. Thanks

Eric

0 Kudos
Message 3 of 3
(2,369 Views)