Jump to content
flarn2006

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.

Share this post


Link to post
Share on other sites

This (controlling the VISA resource from different computer) is generally possible using VISA Server (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LfHSAU&l=pl-PL). But I have no idea if VISA Server is even available on Linux. So chances that it is available or will run on Raspbian are closer to zero...

Share this post


Link to post
Share on other sites

One alternative I thought of is running an LXI server on the Raspberry Pi. That could work, right?

Share this post


Link to post
Share on other sites

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.

 

 

 

 

 

Share this post


Link to post
Share on other sites

Along the same lines as the raspberry pi, its pretty annoying that NI has gotten rid of these fine old beasts: http://sine.ni.com/psp/app/doc/p/id/psp-655/lang/en

Theres obviously a ton of ethernet->serial boxes out there, but most of them seem to require local windows drivers to emulate them as local serial ports :(

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.