LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting selected channels to a text file

Hello,

I am acquiring analog data from 8 channels and storing them in a text file.

This program stores all the 8 channels as columns in the text file.

However i would like to choose with a user input ( something like a plot visibility checkbox) and store selected channel in the text file.

I have tried index array, subarray but have failed to come up with a solution.

Any pointers/solution would be appreciated.

0 Kudos
Message 1 of 2
(2,589 Views)

Hi zezendapuss,

 

I have tried index array, subarray but have failed to come up with a solution.

Use an array of 8 booleans to switch on/off saving of your data channels.

Then select the data columns based on boolean state.

 

It all boils down to use either autoindexing loops or IndexArray/ArraySubset - both are basic LabVIEW elements/functions. Did you take the free online courses to learn LabVIEW?

 

General hint: When there is a problem in your VI you should attach that VI so we can inspect it…

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,574 Views)