06-28-2007 05:47 AM
Could you tell me if there is a VI to carry out the following task:
I have a system set up with 2 DAQmx analog input channels. I want to generate a discrete number of triggers using a DAQmx digital output channel and when a trigger is generated I want to write the values for each analog input channel to a spreadsheet file.
I am using LabView 7.1 and a NI6251 M Series DAQ.
06-29-2007 01:44 AM
Here is an idea. Generate a digital pulse train using your onboard counter. The signal will be availabe for external applications from your boards default counter output pin. Also, configure your AI task to use the counter signal as the sample clock. This is the easist way to achieve what you want. And now for the really good news, there is a shipping example that does almost exactly what you want (just lacking the write to spreadsheet file functionality). This example can be found in the NI example finder under Hardware Input and Output/DAQmx/Synchronization/Multi-function/Multi-Function-Ctr Pulse Train Generation for AI Sample Clock.vi You will probably want to change the DAQmx read from 1D waveforms to 2D dbl and then simply wire the data to a Write to Spreadsheet File vi located on the FileIO palette.
Hope this helps,
Caz