We are using a DaqPad 6016 to emulate some hardware. I am monitoring 2 Analog inputs and controlling 2 Analog outputs.
When the inputs are high, I step increase the voltage of my outputs. The application on the other end is watching my steps, and when I output the correct voltage, it stops driving the input.
I need this loop to run as fast as possible.
1. Read the inputs.
2. If input1 is high enough, increase output1.
3. If input2 is high enough, increase output2.
I have been using on demand timing, and have noticed that my call to ReadSingleSample is too slow for this application (~100ms).
I have used buffering, but I always ended up reading old samples, ie I am getting high voltage when the other application has already turned off that input.
Is there a way to speed up on demand timing. Or is there a way to turn on buffering, but have the call to read the value just return the latest?
Thanks in advance for your help!