Jump to content

Sharing serial device from Raspberry Pi to VISA?


Recommended Posts

I have a bunch of serial devices on a Raspberry Pi, and I'd like to be able to access them as VISA devices in LabVIEW. What's the best way to share a serial device on Raspbian in a way that VISA can connect to? I know if nothing else I can just use socat and do it as a raw TCP/IP connection, but I'm wondering if there's a better way.

Link to comment

you could try installing pyvisa-py (partial replacement for ni-visa backend) on the rasberry-pi and see if it can implement remote sessions eg.  visa://hostname/ASRL1::INSTR .It doesn't look too promising based on this discussion,

https://github.com/pyvisa/pyvisa-py/issues/165

but it seems to indicate if you know the address and don't rely  on the pyvisa-py resource manager it may work.

 

 

 

 

 

Link to comment

Thanks for your help. :)

As it turns out though, I'm actually just going to keep running my code on that Raspberry Pi and use LabVIEW only for an additional component. There's another serial connection I'd need to share with LabVIEW, but it's an RS-485 adapter, and as it turns out, the sbRIO-9636 I'm using has an RS-485 connection built in, so I can just use that instead.

Edited by flarn2006
Link to comment
  • 1 year later...
On 1/18/2019 at 1:19 PM, bbean said:

you could try installing pyvisa-py (partial replacement for ni-visa backend) on the rasberry-pi and see if it can implement remote sessions eg.  visa://hostname/ASRL1::INSTR .It doesn't look too promising based on this discussion,

https://github.com/pyvisa/pyvisa-py/issues/165

but it seems to indicate if you know the address and don't rely  on the pyvisa-py resource manager it may work.

py-visa is a pure VISA client implementation. While the VISA API is sort of documented in the VXIpnp documents, the internal workings of VISA is not. That includes the VISA Server network protocol and all that stuff. I think the cost-usefullness analysis of trying to reverse engineer that is pretty bad as even under Windows VISA Server isn't used that often. The only platform I have ever used it with was with NI realtime controllers to access their serial ports from Windows. But that was all being NI hardware with NI drivers installed.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.