LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

linux serial-VISA

Hi.
Labview for linux is not so friendly 😞
When i try to initialize serial port the message appears "a code library required by VISA could not be located or loaded".
I think labview can not find standart library. how can i add it? Or is it another error of Mandrake linux?
 
0 Kudos
Message 1 of 5
(3,080 Views)
In order to use your serial port in LabVIEW you must first install NI-VISA.  You can download the latest version of NI-VISA for Linux here.

Shawn B.
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
Message 2 of 5
(3,068 Views)
Thanks for reply.
I`ve just installed a new version of NI-VISA...as i undersand from readme file the problem is in adding environment variables to my shell setup file (step 3 in readme.txt)...
 
i`m a beginner in Linux and only try to add it by commans in bash  -  export VXIPNPPATH=/usr/local/vxipnp
           export LD_LIBRARY_PATH=/usr/local/linux/bin
Of course it does not work 😞 so where do i add variables? is it  file in /bin or /etc catalogue? 
0 Kudos
Message 3 of 5
(3,055 Views)
What version of Mandrake Linux are you using?  You can determine this by running:

cat /etc/*-release

Also what version of LabVIEW did you install?  Normally if you install LabVIEW and NI-VISA on Mandrake 10.0, 10.1, or Mandriva 2006 you should not have to use the
"export VXIPNPPATH=/usr/local/vxipnp", and "export LD_LIBRARY_PATH=/usr/local/linux/bin".  When you see the error in LabVIEW does it say which library it can not find, or is that the entire error message?

You may want to try to use NIvisaic to test communication with your serial device.  From the command prompt run "NIvisaic".  In the first window you should be able to see your serial port (probably ASRL1::INSTR), double clicking on the resource will open a new window which allows you to communicate with the resource.  From there you can test reading and writing.

If NIvisiac also fails then you can try adding the the two export lines you found in the README at the bottom of:

/home/yourusername/.bash_profile

Once you have added the export lines you will need to log out, and log back into your machine.  If none of these suggestions help providing detailed information about the errors you are seeing should help us find the problem.

Shawn B.
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
Message 4 of 5
(3,027 Views)
The problem was not in Labview but in my using Linux :). So i didn`t know about operating environmental variables 🙂 it appears that after commands
"setenv VXIPNP....." or "export VXIPNP...."  i have to use "ldconfig" command to update and link library... It works on Mandrake 9.0 and RedHat (Labview 7.0)... Thanks for reply... it was a great experience 
0 Kudos
Message 5 of 5
(3,007 Views)