08-20-2019 01:18 PM
Just so I am understanding properly, If I run the error out of the start task for the encoder to the error in for the AI start task merged or otherwise Labview will make sure that the encoder task runs first so that it can do proper error checking?
Yes, the temperature and pressure could be combined into one task, an earlier version of the program had a reason to have them split that is no longer valid. Will the script will run slightly faster with less individual task handlers?
08-20-2019 01:22 PM
Move the Datasocket open and close to before and after the loop respectively to get faster loop times.
Ben
08-20-2019 01:28 PM
@ColeL wrote:
Just so I am understanding properly, If I run the error out of the start task for the encoder to the error in for the AI start task merged or otherwise Labview will make sure that the encoder task runs first so that it can do proper error checking?
Yes. This is exactly how dataflow works. The encoder task must execute its instance of DAQmx Start before releasing its error out. And then the AI task cannot execute its instance of DAQmx Start until it receives its error in. You've thus guaranteed that the encoder task starts before the AI task, as needed.
-Kevin P