LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to text file - One channel per column problem

I have a simple DAQmx application that could read from upto 35 channels. However, in the mean time I am only working with 4 channels. I want the readings from each channel to appear as an independent column in the text file. For instance, I have 4 channels, so I want 4 columns of data. For some reason, additional columns are added depending on how much data is being read. How can I constrain one channel to a single column?

 

I have attached the VI

 

Kind Regards

0 Kudos
Message 1 of 3
(2,005 Views)

What you are doing does not make much sense. You are acquiring a waveform array and then passsing it into a for loop where you are stripping the timestamp and most of the data. You can wire the chart directly to the waveform array and use Export Waveforms to Spreadsheet directly wired to the waveform array as well. It will use the timestamp from the DAQmx Read instead of the one you are making up.

0 Kudos
Message 2 of 3
(1,995 Views)

Thank you for that insight. You are right. I will try to do as you recommended and see if that helps.

 

Kind Regards

0 Kudos
Message 3 of 3
(1,993 Views)