Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Installed NI-VISA 4.5 in Ubuntu 9.04

@Huy

I work on an i386 32bit Kubuntu. There are some X64 packages in the rpms (eg. nivisak-4.5.1-f0.x86_64.rpm). I got errors when trying to convert them but I did not need to install the 64bit stuff so I just ingored them. I think there are 2 or 3 64bit packages.

From your error it looks like you are trying to convert the 64b package on a 32b machine.

@Vicente

When I type "sudo modprobe xxx" for all 4 those packages I get no response, which I think is correct.

My updateNIdrivers output looks like this:

Updating NI-KAL:                                                                 
NI-KAL successfully updated.                                                    
Updating client modules:                                                                                  
nipalk.ko successfully updated.                                                 
NiViPciK.ko successfully updated.                                                                    
niorbk.ko successfully updated.                                                 
nidimk.ko successfully updated.                                                 
NiViPxiK.ko successfully updated.                                                                 
nipxirmk.ko successfully updated.                                               
Rebooting is required to ensure that National Instruments drivers                
have been successfully updated.

The scripts I use to install are attached. They show all the .debs I used and the order

Good luck

0 Kudos
Message 11 of 24
(1,241 Views)

I can not download your script. It is still queued. I ran updateNIDrivers, and Ni-kal updated successfully. However, some files are still missing so that it does not work.

0 Kudos
Message 12 of 24
(1,241 Views)

Wimpie the visa script works properly . It's 02:00 of the night in Spain but tomorrow I'm going to include your scripts (if you are agree) and explain step by step nikal+NI488.2+visa+pyvisa. I must develop a big project and this installation is only a part of all but I'm very very happy after seeing:

vicente@vicente-desktop:~/Escritorio/PyVISA-1.3/test$ python prueba.py
HEWLETT-PACKARD,34970A,0,3-1-2

PRUEBA.PY:

import pyvisa.vpp43 as vpp43
vpp43.visa_library.load_library("/usr/local/vxipnp/linux/bin/libvisa.so.7")
from visa import *

my_instrument = instrument("GPIB0::9::INSTR")
my_instrument.write("*IDN?")
print my_instrument.read()

Wimpie today you have a new friend in Jaén (Spain)

Thanks so much

0 Kudos
Message 13 of 24
(1,241 Views)

Hi Wimpie,

I ran your scripts in the sequenc

- Pass 1

install_nikal

install_nivisa

install_daqmx

uninstall_nikal

uninstall_nivisa

uninstall_daqmx.

- Pass 2

install_nikal

install_nivisa

install_daqmx


After that, i run

#lsusb

And i see the device is connected. But when i run

#lsdaq

the outout is as follow:

--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
Aborted
--------------------------------

I tried to run updateNIDrivers but only nikal is updated. The ouput is something like

.....................

.: 13: Makefile.in: not found
/bin/rm -rf objects
Updating NI-KAL:
NI-KAL successfully updated.
Rebooting is required to ensure that National Instruments drivers
have been successfully updated.


After updateNIDriver, i reran lsdaq but the same result is outputed. Did you face this problem?

Thank you so much for your help.

Huy

0 Kudos
Message 14 of 24
(1,241 Views)

Hallo Huy

I used the two step process to figure out what the scripts should be. You can only run the install scripts, don't run the uninstall ones.

I never got the same error message as you. Did you check the output from the scripts for any errors?

0 Kudos
Message 15 of 24
(1,241 Views)

Hi,

I noticed that problem if the nipal daemon isn't running.

Try starting it with "sudo /etc/init.d/nipal start"

0 Kudos
Message 16 of 24
(1,241 Views)

Hi Carroll,

I tried your suggestion buti got the following errorr:

error: /lib/modules/2.6.24.2-generic/kernel/natinst/nipal/nipalk.ko not found
error: Please compile and install nipalk.ko by running
error:  updateNIDrivers

Maybe there is somthing wrong with my installation.

Huy

0 Kudos
Message 17 of 24
(1,241 Views)

Hi,

There is any requirements before installing the driver, for example downgrading kernel, gcc, ...

Thank you so much.

Huy

0 Kudos
Message 18 of 24
(1,241 Views)

Hi all,

My installation is successfully with no errors. But i am still wondering that my USB-6009 is working or not because when i do

#lsdaq

no devices is specified (I was plugging my device in)

--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
--------------------------------

Thank you all very much.

Huy

0 Kudos
Message 19 of 24
(1,241 Views)

Try

sudo lsdaq

It is most likely some permission problem.I have the same problem but I haven't yet tried to solve it.

0 Kudos
Message 20 of 24
(1,241 Views)