LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to select physical channels to save?

I'm in the beginning of implementing a new program.
The first issue is to get a list of all available devices and channels, and then mark the channels I would like to save datas from.
This input from the user should then act as an input to the "save data to file" part of the program.
 
Is there any suggestions how to do this?
 
 
 
0 Kudos
Message 1 of 3
(2,900 Views)

usualy a list/group of physical channels are specified to a scan list.

For example, let the scan list be Dev1\ai0,Dev1\ai1, Dev1\ai2

Depending on the instance of 'DAQmx Read' ( its a poly morphic vi) selected , data can be read in any of below

N channels 1 sample, Data in 1D arrray format [aio,ai1,ai2]

N channels N samples( 2D array), Here each row of 2D array corresponds to one channel's data. Row0: data of ai0, Row1: data of ai1, Row 2: Data of ai2

N channels N samples(Waveform): Data in 1D array of waveform clusters with 0th element being waveform cluster of aio and so on

You have to use array functions to index out the required channel's data, build a new array of the selected cahnnel's data and save this resultant array

 

Message 2 of 3
(2,897 Views)

Thank you for your feedback.

I'm not sure how to implement the scan list you are referring to.

What I have done so far, is to create an array of all the available channels. Attached is the program for this.

What is desireable is to have a select function like the one I found a picture of in the forum. See attached picture.

How can pick out the elements in the array and write them into this box?

Thanks in advance for all answers

 

 

Download All
0 Kudos
Message 3 of 3
(2,883 Views)