Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

Is there a built-in way to stop a task if it does not receive a digital start trigger within a specified amount of time?

$
0
0

Yo,

 

I was wondering if there is a way to set a timeout for a task's digital start trigger that is built into the NI API? I would like to cancel or stop a task if it does not receive a digital start trigger within 15s of the task being started. My task's digital start trigger configuration code is shown below.

_task.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger("/" + _deviceLocator.DeviceName + "/PFI1", DigitalEdgeStartTriggerEdge.Rising);

Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>