From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Node Error [2]

Hi,

Please read the message "Call Library Node Error [1]" first.

It stated the problem I've encountered in controlling the angular postion of the servomotor shaft.

Please find the attahed file, "Exercise1.Vi".


Thanks



Best regards,
IANES
0 Kudos
Message 1 of 2
(2,243 Views)
Hi, IANES

Your loop has an analog input task and an analot output task. The analog input task has the DAQmxCreateTask outside of the loop and the read inside of the loop. This will create one task and read the channel on each loop iteration. The analog output task has the DAQmxCreateTask INSIDE of the loop. This will create a new task with each iteration of the loop. You want to move the DAQmxCreateTask for the analog output outside of the loop.

Please see the attatched picture.

-Sal
0 Kudos
Message 2 of 2
(2,216 Views)