08-10-2007 05:21 PM
08-13-2007 04:49 AM
08-13-2007 10:42 AM
08-13-2007 11:10 AM
08-13-2007 12:31 PM
08-13-2007 04:05 PM
You don't understand some of the basics of LabVIEW yet. All you are passing through the while loop is the very last results and the file write will only be called once. If all you want to do is save once every second, put your file write inside the loop. You can place it inside a case statement and use the Elapsed Time function to control the case statement.
p.s. You probably don't want to use Write to Spreadsheet File. Instead, use Write to Measurement File or Export Waveforms to Spreadsheet File. You are loosing all of the timing information in your waveform and that is generally not a good thing. The mess you have with your wires is not a good thing either and why do you have separate DAQmx Create Channel functions. All you need is one.
08-13-2007 04:35 PM
08-13-2007 04:47 PM
08-13-2007 04:47 PM
08-13-2007 05:05 PM