LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Logging to excel in columns

Solved!
Go to solution

Hi,

 

I am trying to write my data into a excel file where in the first column the time is shown and the other the input channels. 

0 Kudos
Message 1 of 2
(3,880 Views)
Solution
Accepted by topic author Cappon

I would just use the DAQmx Configure Logging VI, to log the data to TDMS file. You can open the TDMS file as an Excel file, using a free plugin.

http://zone.ni.com/reference/en-XX/help/370469AD-01/lvdaqmx/mxlogging/

 

But you also have to revise that while loop. Another option to use a proper Producer/consumer pattern, alongside with TDMS VIs in the Consumer. Also put all the display indicators into the Consumer loop.

And keep in mind that your recent config using finite acquisition in that while loop will give you "gaps" in the measured data: you start and stop the DAQ at every iteration in that while loop (starting and stopping a task always takes time!).

+you forgot to use the DAQmx Clear Task.vi to release the HW resources after that while loop!

Message 2 of 2
(3,852 Views)