06-15-2006 03:26 PM
I need to measure 2 analog voltage channels 300 times at a 50 kHz rate. This measurement cycle will repeat 100 times initiated by a TTL trigger pulse. Ideally, data will be saved to an Excel file. Each channel of data will be on a separate sheet. Each measurement cycle of 300 samples will be in a separate column.
Since I am new to LabVIEW, I started with the mx example Acq&Graph Voltage-Int Clk-HW Trig Restarts.vi included with the version 8 demo. This example demonstrates how to acquire a finite amount of data using the DAQ device's internal clock, each time an analog trigger condition is met.
Changes made to the example vi include:
Analog trigger to Digital trigger - OK
Change While loop to nested For loops to stop the vi after 100 trigger events - Causes 100*300= 30,000 trigger events and
breaks DAQmx Clear Task.vi
Add 2nd analog input channel - Will not connect wires
Add write to Spreadsheet File.vi - No troubleshooting done yet
I have had success learning triggering, finite samples and saving to an Excel file when they are not combined into one vi but have been unable to get them to work together. Thanks in advance to all who reply!
06-19-2006 02:51 PM