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

NITask State

$
0
0

Hi Guys,

I have an issue with NITasks and assessing their state.

Part of my program involves stopping/aborting a task in order to regenerate an output signal and restart the task.

The issue is that after calling analogOutTask.Control(TaskAction.Stop); or analogOutTask.Control(TaskAction.Abort); I am unable to check if the task state. So when I try to write the new samples to the task, I sometimes get a DAQmx.DaqException as the Task is currently in the process of being aborted. 

How do I query the state? Or is there a callback for state change?

Thanks


Viewing all articles
Browse latest Browse all 1999

Trending Articles



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