02-17-2009 12:54 PM
Hi,
I want to create a triggered acquisition of 16 temperature readings and store this data along with time the data was taken in a log.
My program consists of 1 Analog input that when reaches above 2 Volts starts taking and recording data and stops when below 2 volts.
I also have 16 Analog in Thermocouple readings (9211 module on CompactDAQ).
My problem is when I run the code attached only the time measurement gets stored in the .xls file and the temp data doesn't save. Can someone explain to me why?
Thanks,
Chris
02-17-2009 01:10 PM
I am missing a dll and had to ctl-alt-del out of LV when I tried loading your code.
02-17-2009 01:15 PM
What dll?
I am running Labview 8.6 but nothing out of the ordinary in the code just normal stuff a couple of while loops a daq express vi and a write spreadsheet data vi.
Chris
02-17-2009 01:58 PM - edited 02-17-2009 02:02 PM
Your code suffers from a number of issues:
Now, as to your problem: If the file that you want to write does not exist then you are not writing any data to file. In the case structure driven by the Check if File or Folder Exists function, the Write to Spreadsheet File function has no data wired to it.
02-17-2009 02:16 PM
You are correct I am scrapping this code I found a better way. It happens
Chris
02-17-2009 03:07 PM
Well, you need to learn a little bit about code structures. The way the code is now is not the way to code things efficiently in LV. You could get rid of the main outer while loop. it is doing nothing for you. Re stucturing would benefit you quite a bit.
As for the not logging the data. you should wire the write to spreadsheet.vi that is in the second frome with the data from the express vi.
02-17-2009 08:12 PM