Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a change detection task be used to read the state of a digital line

I want to use a task with ChangeDetection timing in order to detect changes on a physical digital input line. However, I also want to be able to read the value of the line at any time (is that 'on demand' in DAQmx terms?). Can I do this without connecting the signal to two physical inputs, and having a task for each?
 
I could stop the task, modify it so Change Detection is not being used, start the task, read the value, then stop the task, turn on Change Detection and start the task again, but I think this could lead to race conditions if the signal changed whilst the task was being switched over? 
 
Any ideas, please?
0 Kudos
Message 1 of 1
(5,881 Views)