Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify the ASRL COM port for an Arduino connected to a Pi being controlled by LINX

While trying to attach a LINX imaged Arduino to my LINX imaged Raspberry Pi, I wasted hours trying to figure out what VISA serial alias I needed to connect to my Arduino.
LLMs all said /dev/ttyACM0 should be ASRL1::INSTR (linux ID and VISA ID respectively)

HOWEVER, it was wrong and left me flapping... how can I easily figure out what VISA needs when I know what it is on the system.
some LLMs said to type ASRL/dev/ttyACM0::INSTR but that did not work with VISA at least not NI-VISA, maybe pyVISA can...

 

so by the grace of John Medland, he drew my attention to VISA find devices
and by simply running with the device plugged in and not plugged in, I realized my Arduino was associating as ASRL2::INSTR

and then everything sprang to life as one would hope. 
also, on top of that, using the interface properties of visa we can get even more details about everything connected.
Please buy John a coffee or a treat if you know him on me.

NJKirchner_1-1765748571938.png

 

NJKirchner_0-1765748242831.png

 

0 Kudos
Message 1 of 3
(485 Views)

A followup from John. I don't think it might stay fresh if you plugin and out, as I saw it not match 'once' but still valid for the notes here

: 

OK - one more thing. If you get into the chroot on the Pi you can look at the ni-visa.conf file in /etc/ni-visa which shows how devices will map to ASRLx::INSTRs
0 Kudos
Message 2 of 3
(452 Views)

Hi,

Thanks for all the information.

I uploaded a VI that allows the VISA alias to be looked up from the Linux device name on a Raspberry PI.

The file is in a reply to this post

 

https://forums.ni.com/t5/Hobbyist-Toolkit/Raspberry-Pi-Target-Configuration/m-p/4457184#M2047

 

I've seen a new VISA alias entry generated if the LINX serial device is not closed before unplugging  the device and plugging it back in again.

 

0 Kudos
Message 3 of 3
(423 Views)