11-20-2007 10:50 AM
Error_200284 occurred at DAQmx read (analog wfm 1chan 1 samp).vi
Possible reason (s):
Some of all of the samples requested have not yet been acquired.......
Liming
11-21-2007 10:03 AM
Hi Liming,
If you're getting a timeout, it means you're not receiving the correct number of clock edges, or you're not receiving your trigger signal. Since your vi looks correct and DAQmx configures your clock for you, I would focus on your trigger signal. Are you taking your trigger signal (the square wave) and also connecting it to PFI 0 (the default AI trigger pin)? If so, when you read your signal in a test panel, does it meet the specifications of the trigger (high/low enough level)? Also, if you're doing just a single channel acquisition, you can use the channel you are acquiring from to trigger - you can wire your physical channel control directly to the "Source" input on the DAQmx Trigger.vi.
If you have everything connected correctly and you're reading the correct signal, does the DAQmx Read return any values, or just an empty array?
Also, if it turns out to be a HW problem with your card and you don't have time to send it in for repair, you can use a SW trigger. You could start with the "Cont Acq&Graph Voltage-Analog SW Trigger.vi" example and modify it to be a single acquisition.
Hope the helps,
Andrew S
11-21-2007 10:52 AM
11-21-2007 04:26 PM
11-26-2007 09:40 AM - edited 11-26-2007 09:41 AM
Just for completeness sake, a Software trigger works by just performing a continuous acquisition with the DAQ device, and processing the data on the fly to look for the trigger conditions. Once the conditions (Level, slope...) have been met it grabs the required number of pretrigger samples from a software buffer (usually a shift register in LabVIEW) and acquires the specified number of post trigger samples and then stops. Any DAQ device can perform some sort of software triggering provided the program supports it.
cheers,
Andrew S