LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to communicate with arduino and Labview

Hi team,

 

I am trying to read an analog pin of arduino nano. I followed the LINX read single analog cahnnel example. However it does not seem to work and the following error message comes up. 

 

Could you please comment on the same?

Screenshot 2025-05-13 155021.png

 

Many thanks,

Criton

0 Kudos
Message 1 of 8
(302 Views)

The VISA error message "The source is valid but VISA cannot currently access it" usually means another program has the VISA resource (serial port in this case) open.

 

Is the Arduino serial monitor running? 

 

Also did you install the LINX firmware on the Arduino?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 8
(287 Views)

Hi,

 

Many thanks for getting in touch. I did upload the LINX firmware to arduino from Tools>Makerhub>LINX>Linx Firmware wizard and also made sure that other instances of the serial port is not open. But still it shows the same message.

 

Kind regards,

Criton

0 Kudos
Message 3 of 8
(235 Views)

Post your code

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 8
(194 Views)

Hi,

 

thank you for getting back.

 

Hi its the example from the LINX driver which read one analog channel. 

 

Criton07_0-1747305989450.png

 

 

Kind reagrds,

Criton 

 

 

0 Kudos
Message 5 of 8
(168 Views)

And do you have anything open other than LabVIEW ? 

Have you tried to disconnect the board from the PC and then reconnect ?

0 Kudos
Message 6 of 8
(150 Views)

Hi 

 

Yes I tried removing and connecting the USB, restarting the PC closed everything else other than labview. But still I receive this message.

0 Kudos
Message 7 of 8
(146 Views)

And you have selected the right COM port

 

What does NI MAX say to the COM port?

0 Kudos
Message 8 of 8
(132 Views)