Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple way to force a trigger after timeout?

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!

0 Kudos
Message 1 of 2
(3,143 Views)

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

Message 2 of 2
(3,133 Views)