05-01-2012 12:41 PM
I am trying to log analog data (using a PCIe-6321) with a system that normally sends a trigger once a second. Is there a simple way to send a software trigger if the hardware trigger isn't received after a certain amount of time. One way would be to look for a timeout error, stop the task, reconfigure for software trigger, take a data point, then reconfigure for hardware triggers again, but I'm hoping there is an easier way. Thanks!
05-02-2012 11:03 AM
Hi Phamton,
Unfortunately, you can only set one start trigger per task, so once you set the start trigger you would need to do as you say and stop the task and reconfigure it for a software trigger.
If you are wanting to read data once a second regardless of the digital trigger, you could simply have a retriggerable software trigger that triggers once a second. If this is not desirable, I would suggest doing what you had mentioned while using a state machine. On trigger timeout, would clear the error, enter the "timeout" state and reconfigure the task and take your data point. Then go to another state which would reconfigure the task for the hardware trigger.
DylanC