ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

com port errors

Hi,

I am using arduino UNO to control servo motor. I am using 2 servos operating on 5v of arduino. I have installed everything required for interfacing arduino with LABVIEW. I have assigned com3 for it.

After uploading LIFA_BASE on arduino when i run my vi file my servos starts vibrating and shrinking. When i enter some angle it responds after a delay . But the main problem is when i stop my vi file the there is ahuge delay in stopping the process and when i upload another programme on arduino it shows 'com3 not found'. and it works again after i disconnect arduino from computer and remove all connections.While running the servo example in help nothing such happens.

Please solve it.

0 Kudos
Message 1 of 3
(3,512 Views)

dear friend watching your code, you can see that your program is entering a race condition, so it is not possible to predict which of the two servos are activated first, could use a sequential extructura to determine which one of the two active few milliseconds before the other, also could use programming thread attached useful reference

 

http://www.ni.com/white-paper/7585/en 

 

http://zone.ni.com/devzone/cda/pub/p/id/1054 

0 Kudos
Message 2 of 3
(3,187 Views)

To fix the race condition, always put Ardunio VIs in-line (wire each Arduino reference Out to the next Arduino Reference In).

0 Kudos
Message 3 of 3
(3,187 Views)