Installing VISA USB device under Linux

    Well, well, well... I've never though that such a time will come, but...
Linux. The question is about it.
It so happend that i need to install a custom made usb device under that OS. I've created the driver using NI-VISA driver development wizard and my device works fine under windows. But i don't know how to create a driver for Linux and how to install it there.  Any ideas? Any???
www.xinstruments.com
Custom Software for Industrial Automation
www.hdrconverter.com
Picture processing made easy

Shawn B. wrote:
> It looks like you are running Mandriva 2006 (as opposed to 10.0). 
> The version of NI-KAL that shipped with NI-VISA 3.4 does not support
> Mandriva 2006.  The good news is you can download a newer version
> of NI-KAL that will install on Mandriva 2006 from:
>
> <a href="ftp://ftp.ni.com/support/kal/1.2/"
> target="_blank">ftp://ftp.ni.com/support/kal/1.2/</a>
>
> Install NI-KAL then run updateNIDrivers.
>
> Shawn B.
> National Instruments
This is not exactly an enlightening answer for a typical Linux user. I too
am having difficulty installing this under Debian Etch.
Linux distributions are made of components, the name on the label is a
little meaningless (in my years of experience with Linux, I am yet to find
a single program that will compile with one distro but not another, given
the same tools). So what components exactly does this driver depend upon ?
What am I missing here ? Is it my custom kernel (this is a Debian Etch
system) or some bug in the supplied drivers ?
The installer identified the following :
Checking required install tools...
Checking installer tool versions...
rpm 4.4.1 can be used with a default installation path
tar 1.15.1
Checking dependencies...
glibc 2.3.5
X /usr/X11R6/bin/X
Terminal /usr/X11R6/bin/xterm
Unpacking install files to /tmp/ni4882.install...
My error messages :
The following components, totalling 28444KB, have been selected
for installation:
LabVIEW 7.0 Run-Time Engine
NI-PAL
NI-KAL
NI-488.2 Help
NI-488.2 Utilities
NI-488.2 Driver
Continue? [Ynq] Y
* NI-KAL 1.0.0f0 for Linux/x86
This installer will install the NI software using the targz.
This software is covered by the included license file (LICENSE.txt).
By installing this software you are acknowledging acceptance of the
terms of the license.
The installation location for NI-KAL is /usr/local. A natinst/nikal
subdirectory will be created at the specified location.
Installing:
NI-KAL => /usr/local/natinst/nikal
Extracting /tmp/ni4882.install/kal/nikali-1.0.0-f0.tar.gz to /usr/local/...
Checking required tools...
Configuring for linux kernel version 2.6.14.3-raja.
********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.14.3-raja/source.
If this does not correspond to the location of the 2.6.14.3-raja headers,
then define KERNELHEADERS in your environment to point to the location
of the kernel headers, define KERNELTARGET as the version of the
kernel for which to compile, and then rerun ./configure.
********************************* NOTE *********************************
Kernel has reparent_to_init(): yes
Number of arguments for do_munmap(): 3
pte_offset function: pte_offset_kernel()
Number of arguments for remap_page_range(): 4
Kernel has get_user_pages(): yes
Kernel exports get_user_pages(): yes
USB altsetting name: cur_altsetting
Kernel has usb_get_intf(): yes
Kernel has intf_cache member in usb_host_config: yes
Kernel exports usb_set_configuration(): no
Kernel has usb_endpoint_running(): no
Storing configuration in Makefile.in
If the values stored are incorrect they can be changed before running make.
Installing Kernel module...
/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.14.3-raja/source
SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/linux-2.6.14.3'
CC [M] /usr/local/natinst/nikal/src/objects/nikal.o
In file included from /usr/local/natinst/nikal/src/objects/nikal.c:86:
/usr/local/natinst/nikal/src/objects/nikal.h:172: warning: 'packed'
attribute ignored
/usr/local/natinst/nikal/src/objects/nikal.c: In function
'nNIKAL100_vmaClose':
/usr/local/natinst/nikal/src/objects/nikal.c:196: sorry, unimplemen

Similar Messages

  • How to communicate with HID USB device under windows XP with Labview

              I have designed a EZ-USB FX2 device and I need to communicate with LabVIEW. I mean I just want to send and receive data. I don’t know how to achieve this goal.Someone have advised me to design a HID device,then use VISA Driver Development Wizards to generate driver(inf file).SO I defined it to a hid device .However when I connect my hid device to the computer, it will automatically be recognized as HID compliance device. I can’t to install the inf file driver. I wondered whether all HID devices will be acquiescently installed the drivers contained in the windows rather than use the inf file driver generated by VISA Driver Development Wizards? If so,what should I do next to communicate with HID USB device under windows XP with Labview? HOPE TO GET HELP!
              KIVI

    Hi,
    I am working on a project using PIC18F4550 MCU and USB.
    I would need to send and receive data from the MCU thru USB. I have uninstaled the HID and created a new NI-VISA driver for my MCU. this worked fine, and it did showed up in MAX
    Unfortunately I was not able to receive data from the MCU, Just sending!
    I thought to use HID.DLL but the way I need to use the functions inside the HID DLL is simply too much for me, I am not a PC programmer.
    There is any kind of VI that is able to use HID.DLL to comunicate with external devices conected to PC thru USB?
    Please Help
    Andrei

  • NI-VISA USB Devices

    I am having a couple of problems using a USB RAW device.  I have an interface module that has a PIC18F1450 micro to provide USB communications.  I used the driver wizard to configure it for LabVIEW.  The developer of the module provided a simple VB GUI, and after I used the wizard, the VB GUI could no longer see the module.  If I move it to a different USB port the VB GUI can see it, but LabVIEW can't.  Using a USB device monitor I see that when it is plugged into the port that it was in when I ran the wizard, it shows up as a NI-VISA USB Device.  When I plug it into another port it shows up as a USB Human Interface Device.  Why does the NI software have to change how the device registers in Windows?  Also, when I first connect the module and start my program, I typically have to try communicating with it a dozen times or so before I have any success.  After that, every attempt is successful.  Here is my communication code.
    Jim
    LV 2013
    Attachments:
    USBComm.png ‏28 KB

    The switch has to mostly with Windows device drviers. A device in Windows may only have one driver assigned to it. I have not seen the type of behaviour you are seeing where your device is exxentially locked to a specific port. We use VISA USB to communicate with printers all the time. What we have found is that once we assign the NI drvier, other tools that require a drvier can no longer communicate with the printer. Likewise if we install some other tool the NI VISA drivers can no longer communicate with the printer. We also use a .dll to effectively install the driver for the printer when it is first connected. This is the .dll example NI provided me when I was first getting this to work with our printers.
    We do a VISA resource lookup to get to the list of devices currently connected.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    ForceINF.zip ‏1614 KB

  • Does the DDK suports USB devices on Linux?

    Hi, I would like to know if the current version of the DDK supports USB devices on Linux. Here are the details of the setup I would like to use. There are important because the computer to be use is not a typical PC.
    The USB device would be from the USB 62xx DAQ family, probably a 6218 model.
    The computer to be used is an industrial PC/104 board from VIPER.
    The processor of this computer is an ARM Xscale, and the operating system is an embedded Linux from ARCOM, with Kernel 2.6.
    Form the programming point of view, the embedded OS is like any other Linux, just with very limited resources, like memory and storage space. In fact, the developing process has to be done using cross-compilation of C and C++ code (with arm-linux-gcc and arm-linux-g++).
    The NI-DAQ Base drivers could be installed on the computer used to do the development and cross-compilation, but I do not know if these drivers could be used to make standalone programs for the embedded system (correct me if I’m wrong). So, I think my only option would be to use the DDK. The problem is that I have read in this forum (probably an old answer) that the DDK does not support USB devices. Is that right?
    Resuming, I need some enlightenment before decide what DAQ device to purchase.
    The short version of the question is: would it be possible to use and USB 62xx Device in an embedded computer with an ARM Xscale processor and ARCOM embedded Linux OS? If that so, could I use the NI-DAQ Base or it has to be the DDK?
    Have in mind that my application is not very demanding in terms of performance. Mainly, I want to be able to perform DA and AD operations, and to use a counter (DMA and IRQ support is not essential).
    Any help would be greatly appreciate,
    Best Regards,
    EH
    Message Edited by maxborn on 06-05-2008 01:29 PM

    Hi folks,
    Tom's link in his reply (above) still has the most up-to-date information:
    Register Level Programming for OEM Customers
    http://digital.ni.com/express.nsf/bycode/exyv4w?opendocument
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • Raw devices under Linux 2.4.x

    Hi.
    Does Oracle 8.1.7 support raw devices under linux 2.4.x? Is there some documentation? What advantages/disadvantages? Is it worth moving from ext2 to raw?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Andrij Korud ([email protected]):
    Hi.
    Does Oracle 8.1.7 support raw devices under linux 2.4.x? Is there some documentation? What advantages/disadvantages? Is it worth moving from ext2 to raw?<HR></BLOCKQUOTE>
    Oracle does fully support raw devices. For a mini cookbook, search on "raw device". I've put up a mini story on how to make raw redologs.

  • Create the raw devices under Linux

    Hi,
    Hoe can I create the raw devices under Linux?

    Hi,
    I just have created two raw devices,
    1, /etc/sysconfig/rawdevices
    /dev/raw/raw1 /dev/hda2
    /dev/raw/raw2 /dev/hda3
    2, chown oracle:dba /dev/raw/rawN and chmod 660 /dev/raw/rawN
    3, after restart the machine, start I runInstaller again.
    But Oracle can still not find the candidate disks, even after give the path /dev/raw
    Why?

  • Has anyone used a USB device server with a DAQmx or NI-VISA USB device?

    Hi,
    I have an application where I need to communicate with USB devices (some through DAQmx, others through NI-VISA) that will be more than 15 feet away from the controlling PC.  I could use USB-ethernet-USB dongles, but I also see that there are USB-over-ethernet device servers available (like this one: http://www.usbgear.com/computer_cable_details.cfm?​sku=USBNET-400&cats=104&catid=187%2C188%2C104%2C65​...).  Has anyone used these or similar USB device servers successfully with LabVIEW?  
    Thanks,
    JasonP

    http://forums.ni.com/t5/Multifunction-DAQ/Does-NI-​offer-USB-extension-solutions/td-p/381873
    http://forums.ni.com/t5/Dynamic-Signal-Acquisition​/Using-a-quot-USB-2-0-extender-over-Cat-5-quot-to-​...
    http://forums.ni.com/t5/Multifunction-DAQ/Can-I-us​e-a-USB-Extender-with-USB-6008-or-cDAQ/td-p/920361
    Let me know if you have any more questions.
    Product Support Engineer
    National Instruments

  • Problem installing language pack manually under Linux

    I had downloaded Asian language pack to be install under Ubuntu Linux. When ran the installer script using sudo I been prompted to enter the path where Adobe Reader was installed.
    The problem seems to accept path name that have the word "acroread" only as the default option was under /opt path. My installation was under /usr/lib32/Acrobat/Reader8/bin and the installer script does not recognize that.
    Help needed here. Thanks

    Hi,
    If you used the standard installation for reader, the path should have been /usr/lib32/Adobe/Reader8/bin and not /usr/lib32/Acrobat/Reader8/bin. Could you confirm how you performed the installation?
    The solution is to uninstall and re-install the reader using the standard location. We highly recommend that you install under /opt if it's a system-wide installation. Installing under /usr/lib32 seems strange given that the reader consists of more than just libraries.
    If that's not possible, you can fix it by tweaking the INSTALL script that is part of the language pack installer. Change line 198:
    from:
    198 if [ ! -d "$dir/Adobe/Reader8/Reader" -o ! -d "$dir/Adobe/Reader8/Resource" ]
    to:
    198 if [ ! -d "$dir/Acrobat/Reader8/Reader" -o ! -d "$dir/Acrobat/Reader8/Resource" ]
    and specify /usr/lib32 as the path of installation when prompted.
    Let us know how you progress.
    Gaurav

  • Can't install Forms and Reports under linux 8.7.1

    I try to install Forms and Reports i get this message
    UT60 is not available or _TK60 is not available
    Please help me

    I solved my problem... more by a system of trial-n-error than anything else. Here's how you go about it:
    1. BACKUP ALL YOUR DATA. I would suggest using time machine thrice on three different locations. Better safe than sorry, and when it comes to backing up data, Overkill is Underrated.
    2. Boot into Disk Utility mode.
    3. Locate, select erase the primary HDD/SSD. WARNING: YOU WILL LOSE EVERYTHING ON YOUR COMPUTER THAT HAS NO BEEN BACKED UP.
    4. Install OS X online.
    5. Select your preferred backup location and tranfer all your data to the freshly installed system. This should restore your computer to an "as was" state.
    6. Once the computer is done restoring our data, restart the system.
    7. While restarting press the following key combination:
         cmd+option+P+R (You have press the combo before the grey screen appears during the boot and let go as soon as you hear the boot up chime.
       This will reset your computer's PRAM.
    8. Boot into your system and re-install xquartz (latest version) from the source site.
    I am not saying this process is fool proof. It worked for me, and it usually tends to work when you are facing problems due to a missing system file.

  • How to blacklist a usb device in BSD?

    I am having trouble communicating with a usb device while running Virtualbox on my iMac (Lion).  Virtualbox is virtualization software which lets me run Windows XP as a guest OS.  I am trying to run Palm Desktop for Windows on the virtual computer and I have trouble getting the USB connected Palm device to sync to the Windows application.  It turns out the Palm device's use of the USB protocol is not quite conventional and so the virtual OS has trouble capturing it and presenting it to the Windows application.
    Others who run Virtualbox under linux have seen this same problem with Palm devices and have found a workaround by disabling the host linux USB driver so that the Virtualbox application has unfettered access to it.  This process is called "blacklisting" a USB device under linux, and involves editing the "/etc/modprobe.d/blacklist.conf" linux config file.  My question is can I perform a similar operation in MacOS?  The BSD I/O subsystem is different enough from linux to prevent me from knowing where to go in OSX to do a similar modification.

    I'm having the same problem.  I can't get OS X to ignore an SPI digital logic device (MCP2210) that I want to run from my Windows XP Virtual Box in order to control an experiment.   Virtual Box sees it but it's grayed out under the list of USB devices to mount in Windows XP, and I don't know how to get the Max OS X to released/unmount/ignore/blacklist it.

  • GPIB-USB-B and Linux

    Can I use my GPIB-USB-B device under Linux with C++ programs?

    Hello,
    Thank you for contacting National Instruments.
    Unfortunately, you cannot use your GPIB-USB-B device under Linux. You have a couple of options here. First, you can use the driver developer's kit DDK to make your own drivers for this platform. Second, you can contact NI sales to upgrade from USB to ENET, for GPIB-ENET can be run under Linux. If you'd like to upgrade to ENET, please call #(800)531-5066 to speak to a sales representative."
    I hope this helps. Please let me know if I can further assist you.
    Best Regards,
    Joe Des Rosier
    National Instruments

  • IPad2 on Windows 7 : MTP USB Device = This device cannot start. (Code 10)

    Hi Guys,
    I want to access to the Internal Storage of my iPad 2 on Windows 7.
    But I have an error with the MTP USB Device => This device cannot start. (Code 10)
    So I cannot see my iPad in Windows Explorer.
    I tried many actions from Forums :
    update the driver to the "Apple Mobile Device USB Driver" located in "C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers" 
    delete the upper and lower filters in REGEDIT : {36FC9E60-C465-11CF-8056-444553540000}.
    stop and restart the service "Apple Mobile Device"
    But as soon as I connect again the iPad there is the same error message after Installing device driver software => "Device driver software was not successfully installed" : MTP USB Device : Fail
    Is there someone who get the solution ?
    Thank you for you help
    Stephane

    I have a similar problem, only mine is Code 31 for the MTP USB Driver.  The Apple driver loads fine, and I'm able to sync with iTunes, but I can't connect to the device as a drive and copy the photos off of it.
    I've tried nearly everything at this point that has been suggested in other threads, and nothing has seemed to work.

  • How to use DAQ as a soundcard under linux

    Hi,
    My goal is to use a pci-4461 as a high accuracy replacement for a soundcard in a linux environment. The programming language should be C.
    I have already looked at the examples that come with the linux driver but my problem is how to exchange the audio data with other applications in real time.
    My other application is a softphone for IP-telephony that normally uses the /dev/dsp device under linux to exchange sound with the soundcard. (This can be changed to another device from within the softphone). Now, I want the softphone to read from and write to the DAQ instead of the soundcard. So the DAQ should be configured for continous analog input and output and give the data to the softphone in real time.
    Do you have any ideas how to do that with the nidaq-C-functions?
    Thank you for your help
    Fabian

    This example might help:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=EE91CE2098BB42C1E0340003BA230ECF&p_...

  • USB not recognized - even when there's no USB device at all (Windows 7, Pavilion dv7)

    Since a few days now I get the message
    'The USB-device was not recognized: One of the USB-devices connected to this computer does not work correclty. The device has not been recognized'.
    It keeps popping up from my right corner below, every 5 seconds if I don't click it. When I click the message, I get a list of USB devices (ports) there are available. There's one 'Unknown device'. Maybe it has something to do with the finger scan (biometric)? This hasn't been working very good lately..
    Even when there's no single USB device installed (normally I have a mouse and a Targus laptop chill mat installed as USB devices), it keeps popping up. I tried deleting the USB port from the list (or uninstall it) in Device control, but it seems it keeps happening.
    I suddenly got it, I did nothing specific of did not connect any strange devices (except for a projector on the external monitor exit, but that has nothing to do with USB). I also hear the sound for connecting and disconnecting USB devics randomly when I'm on my laptop.
    Anyone has any idea?
    Thanks
    HP Pavilion dv7 Notebook PC
    LE902EA#UUG
    Windows 7 64 bit
    This question was solved.
    View Solution.

    The solution can be found here

  • Usb device can't read

    hi, really need help.
    the error says ... 
        windows found driver software for your device but encountered an error while attemting to install it 
    this happened after bios upgrade to F.37. 
    i upgrade the bios to solve the battery issue. unfortunatelly, this issu occured ...
    i hv tried ...
    Fix It
    uninstall all the usb controller 
    re-install bios F37
    I m using HP G42-380TX
    thanks in advance.

    Hi ariffabdul,
    Welcome to the HP Community, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I saw your post regarding the problems installing a USB device. What device are you trying to connect? What operating system are you running? In your Device Manager do you have any USB devices with an exclamation marks? If you do can you let me know what the hardware ID is.
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

Maybe you are looking for