LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial in Labview/Linux

I have made a program that use the serial port. I use Labview under Linux on a PC.

The serial works good on my PC, but when I try the build application on a target PC (with the Run-time engine installed) the serial doesn't work.

I think it needs the NI-VISA run-time engine for Linux, but I can't find it (only for Windows).

Thank you

Luca
0 Kudos
Message 1 of 7
(3,693 Views)
If you did not use the VISA serial calls in Linux, then you need to include the serial port driver (serp.drv in Windows) in the same directory as your built application.

However; if you did use the VISA serial, you will need the VISA runtime engine, which should be on your LabVIEW for LInux CD.

If you do not find it there, or on the website, contact NI for assistance at ni.com/ask. Also check on the linux support pages at ni.com/linux.
Message 2 of 7
(3,693 Views)
I've found the file "nivisa-2.6-1.i386.rpm" on my LabVIEW for Linux CD.

I'm going to make some test with it.

I use VISA serial calls because I don't know how to use the serial port without VISA under Linux.

Thank you
0 Kudos
Message 3 of 7
(3,693 Views)
Visa is the better way to go, but you still can get to those old serial functions. They should be in the communications palette, under a submenu somewhere. Look around for them, they should be there, though I have never looked for them in LV Linux.

Hope all goes well...
Message 4 of 7
(3,693 Views)
I think that with Linux I can only use VISA, I don't find the dear old serial functions.

I'm still trying to make it works......
0 Kudos
Message 5 of 7
(3,693 Views)
The old serial calls ARE in LabVIEW for Linux, in the same location as in LabVIEW for Windows (and all versions, I'm sure.)

If you go to the Instrument IO palette, you will see a Compatability subpalette. There will be a duplicate subpalette there, which contains the "legacy" serial calls, under the name "serial compatability".

Hope that helps...
Message 6 of 7
(3,693 Views)
The serial now works.

It needs not only the NIVISA, but also the NICVIRTE package (I don't understand why it is called CVI, there is not CVI for Linux).

About the old serial calls: I agree they are in the right location, but I think they don't work with Linux.
For example the serial configuration vi doesn't work, a label tells that it works only with UNIX and Windows.

bye
0 Kudos
Message 7 of 7
(3,693 Views)