06-23-2008 05:44 PM
06-24-2008
02:13 PM
- last edited on
06-28-2024
08:12 AM
by
Content Cleaner
Hi Igor,
The pause trigger will not reset the state of the line when the trigger occurs. More information about this can be found in the DAQmx Help file. I have extracted the portion which relates to this issue and copied it below.
Pause Trigger Considerations for E Series and M Series Devices
Continuous pulse-train generation: The pulse-train generation pauses as soon as the Pause Trigger is asserted, not at the end of a pulse. The pulse train resumes after the Pause Trigger is deasserted. A Pause Trigger elongates either the high or low pulse depending on which one was being generated at the time the Pause Trigger was asserted.
This explains why you are currently seeing the behavior of your system. One way to achieve what you want may be to stop the counter output task when the trigger arrives. This can be done by polling the digital line or using a DAQmx change detection event.
Regards,
Kent
Applications Engineer
06-25-2008 03:21 PM
Hello, Kent
Thanks for reply.
I thought myself that change_detection, which if I get it right is based on hardware interrupts, could be fast enough for me (and easy on PC resources). As opposite to polling, which I can use for slow monitoring purposes only.
Unfortunately, change_detection never worked for me. I always get -200077 error (Measurements: Requested value is not a supported value for this property). Are you sure that my USB-6212 card supports this feature?
I use one of the port0 lines as an input for my proximity sensor switch (as well as change detection source line). My DAQmx is v8.5.
Regards,
Igor
06-26-2008
10:35 AM
- last edited on
06-28-2024
08:12 AM
by
Content Cleaner
Hi Igor,
You are correct. The bus powered USB M-Series DAQ devices do not support change detection. Here is an article which lists the devices which support change detection. It seems that the easiest way to accomplish what you are trying to do will be to read the digital line to tell the counter when to stop.
Regards,
Kent
Applications Engineer