12-06-2017 05:44 AM
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.
Solved! Go to Solution.
12-06-2017 06:59 AM
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!