05-25-2009 02:09 AM
Hi,
I'm trying to use a signal event to trigger a loop. The idea is that the program (attached) triggers my device which has a "trigger output" which goes high while the triggered operation is in progress and low when it finishes. I want to detect the falling edge on PFI0 (which is the same line used for the pause trigger) and have the program send the next command and trigger via GPIB to the device. Using the "Sample Clock" parameter when registering for Signal events clearly doesn't wait for PFI0 -> low and using "Change Detection Event" produces the error which says "Measurements: DAQmx Signal Event type requested is not supported by the channel types or the devices in your task. DAQmx Signal events include the Counter Output event, the Sample Complete Event, the Sample Clock Event, and the Digital Change Detection event. Refer to product documentation for more details on which DAQmx Signal Events are supported by the channel types and devices in your task."
Can anyone tell me what I'm doing wrong? The DAQ card is a PCIe-6251 which, as far as I can tell, should support the Change Detection Event type. I have also thought of using a timed loop to implement this function but have no experience using timed loops and am not sure which solution is more appropriate.
Cheers,
Glen
P.S. I mistakenly posted this in another category but re-posted here as this is a better place for this question.
05-26-2009 04:42 PM