LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rotary encoder and pressure sensor sync

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?

0 Kudos
Message 11 of 13
(451 Views)

Move the Datasocket open and close to before and after the loop respectively to get faster loop times.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 12 of 13
(448 Views)

@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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 13 of 13
(443 Views)