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?