LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication problem with Arduino UNO R3

Hello,

I'm using Labview 2011 to automate a part of the line used to sample's preparation linked to a mass spectrometer. I'm using an Arduino UNO R3 which is linked to valves and I'm supposed to talk to it via numerical signal in order to open or close valves. 

This Arduinbo is linked to computer via an extension USB cord (almost 10m) and is detected as a COM Port.

 

Communication works well when I've just rebooted computer, but when some time have passed the communication seems to degrade and the following errors appear :

- "Ressource is valid but VISA cannot access to it" when the port COM isn't detected anymore neither by Labview nor by Arduino software wheras Windows can detect it. As advised at this adress (http://digital.ni.com/public.nsf/allkb/936298454061FE5886256C2A0060B321) I executed the first test (desabling of COM port) but not the second one as there is no more Hyperterminal on Windows 7. I dowloaded the equivalent software called Hyperterminal private edition but I don't know the computer control sentences to use to verify if the dialog is of good quality. 

- Error 5002 also appear, but I verified all the possible reasons enumerated at this address and it cannot be that : http://digital.ni.com/public.nsf/allkb/15AE7F234C5B966886257884006DF1CD

 

These bugs appears randomly, this can be just after first launch of .vi or two hours later. 

Can it be a degradation of numerical signal?

 

I put in attachment of the email, reports that were send to me during some of these bugs. 

 

Thanks a lot.

0 Kudos
Message 1 of 3
(2,312 Views)

Without repeater the USB cable is specified only up to 5m.

Have run a test with a short cable?

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 3
(2,304 Views)

I've just tried to run my program with a shorter cable and it works. 

I didn't know the limit without using a repeater was 5m.

 

Thanks a lot for your response and yours time. 

I'll buy one.

 

Greetigs from France

Claire

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