09-01-2016 02:24 AM
Hello,
I was using the Daqmx to generate digital signals. I have a VI which writes digital signals and reads the digital input back continuously. I want to read a finite number of samples. For that I had the start task, read and stop task inside the same while loop. This works fine but then the VI is slow. So I wanted to trigger the digital input and take the start and stop task outside the while loop so that the VI runs and reads the digital data till the stop command is received. This does not work for some reason. I am posting my VI with this post. Can anybody please help me where I am going wrong.
09-01-2016 05:09 PM
You want to start reading by trigger?
Maybe you can configure continuous reading/writing and read necessary number of samples?
In your example you've configured restart by trigger only for reading. But writing starts only once. Maybe this reason why your vi doesn't work
09-06-2016 02:19 AM
Yes i want to start reading after the trigger and read the updated values from the register repeatedly.
I tried to trigger the input as well as the output but it is showing errors as well. Can anybody tell me some good example on how to use trigger for digital input and output.