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

Similar Messages

  • 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

  • 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

  • How to install and run USB device application without NI-VISA environment?

    Hi everyone:
          I develop a LabWindows/CVI8.5 application that uses a driver for a USB device created using the NI-VISA 4.6.2. The application is ok when the NI-VISA  environment is installed in PC. But the  NI-VISA 4.6.2 is too big(326M).  Can be the USB device successfully installed in non-development machine without NI-VISA 4.6.2?  Just need some files, such as INF, NiViUsbK.sys and ni-visa32.dll, the device will be installed and run.   If the way is feasible, please tell me how to do. Which files are necessary to the device is installed in non-development machine without NI-VISA 4.6.2 environment? It is so big, I need a minimum NI-VISA system.
          I need your help.

    Personally I use the open source LibUSB. It links without difficulty with
    CVI. And it works both on Linux and Windows, which is a big plus. Haven't
    touched it in 2 years though.
    Guillaume Dargaud
    http://www.gdargaud.net/

  • Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Hello,
    Exactly which USB device are you referring to? Is the device a NI product?
    The Product ID for National Instruments DAQPad-6020E is 0x12C0. The USB vendor ID is 0x3923. This is a 16-bit hexadecimal number(1093) (that is decimal 4243).
    Also, here's a document on our website that will help you in configuring NI-VISA to control your USB device:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument
    Swapnil P.
    National Instruments Engineer

  • Unknown USB Device in Windows - VISA does not see it

    Hello,
    I'm trying to connect my STM microcontroller to my computer using USB protocol and VISA software. When I plug STM USB device into USB port Windows sees it as unknown device and can not find any driver for it. I assume that this is situation VISA was created for. So I want to use a driver wizard to create driver for this device, but VISA does not display it in a device list. I tried to create and install driver for my device as if it was not connected, and installed created driver manually but it did not work.
    Is it possible that Windows detects a USB device and VISA can't see it?

    It actually depends what sort of USB device it should be. If it is a COMM USB class device, Windows should be able to pick it up directly as serial port, if it is some proprietary USB class, then you either have to get a driver installed and access that driver somehow, or create an INF file with the VISA driver wizard for it and write the driver yourself in LabVIEW using the VISA USB Raw interface. Without a very good description of the low level USB protocol however this last option is a complete no go.
    If the VISA driver wizard doesn't display the device in the list then Windows has already claimed it somehow.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Why I cannot get response from my USB device through VISA raw using VISAWrite.vi and VISARead.vi?

    I am sure VISA has been assigned as the driver for my USB device (ADC USB FIFO Evaluation Kit). I tried to simply use VISAWrite.vi to send out a word to USB device and want to read the digitalized data from it using VISARead.vi. However, though it seems there are data points flowing, they are all 0-valued coming out from VISARead.vi (I keep reading for N times). Could you comment on my wiring and help me out? I am familiar with LabVIEW but not the real-time and driver things. Many thanks!

    Have you been able to confirm that the ADC is connected to a voltage source. What are you expecting to return? I would suggest connecting something like a good 9V battery to the input and reference. Also make sure the reference is either internally connected to ground or you might want to connect a resistor (100kOhm) between the reference and ground.
    You might want to try to see what raw data is being returned from the device. Try something like USB Monitor (http://www.hhdsoftware.com/usbmon.html) to see what information is being transmitted between the computer and the instrument.
    Did you write the firmware for the device or do you know if the device is suppose to be returning the data from a bulk, interrupt, or control transfer. Also, what is it that
    you are trying to create.
    -Josh

  • Is there a way to Comunicate with USB device other than VISA using LABView

    I have a manufacturer-supplied driver   to control my USB device.
    Can you show a example of how to talk to my device using the call library function node.
    I have a DLL that contains a whole bunch of useful functions that someone else already designed to talk to my device.
    I have tried Visa and this just gives errors trying to talk to the device.

    Hello,
    If you're looking for device information including vendor and product ID, and how windows see's the device, try using USB View - you should be able to download it from http://www.srigc.com/PeakSimple.htm (search the page for usbview and you'll find it quickly).
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How to get USB device in the list of VISA resource Name field of VISA Open VI

    I have followed the below tutorial to communicate with my device using USB port. But i didn't get the name of the USB port in Measurement & Automation Explorer devices list. How to get it? Can anyone suggest something?
    http://zone.ni.com/devzone/cda/tut/p/id/4478
    Solved!
    Go to Solution.

    Hi kimhyun,
                     I have attempted this.But succeeded.I used pendrive as my USB device.my sugesstion is you don't disconnect your device at any point of your work.Check the device is connected properly.IF your system has recognized your device,you can view the device in control panel>>Device Manager>>Then open your particular device from the list of connected device then Details>>device description>>Hardware Ids>>Then you can find your vendor id there.
    Try this.I think your device is loosly connected.Which USB device are you using??Also you must install THE DRIVER OF YOUR USB DEVICE.
    GOOD LUCK
    Thanks as kudos only

  • How can I see my USB device in the measuremen​t&automati​on explorer?

    I'm trying to use an USB-device with LabView7.0.
    I followed the manual "using NI-VISA3.0 to control your USB device" which I found on the NI-webpage.
    I generated an .inf file using the VISA driver developement wizard and installed it in the INV folder of my system (I'm using Win2000).
    The following problems occured: after I connect my USB device the "add new hardware wizard" pops up and aks for a driver for the new hardware. when I direct it to the folder with the generated .inf file it doesn't accept this file as a driver.
    second: the USB device doesn't appear in the measurement&automation explorer. I assume that as long as my device doen't appear there it is not recognized by NI-VISA and the comm
    unication from LV wouldn't work?
    How can a make my USB device visible in the meas.&aut. explorer?
    Regards
    Tobias

    Tobias,
    In the VISA Driver Development Wizard, you are required to specify the Vendor and Product ID. These numbers are what Windows will use to determine whether a specific driver is appropriate for a given device. If these numbers do not match between your device and the Windows driver (INF file) that you generate, you will see the behavior that you describe. Check to make sure that you are using the appropriate values. Also, did you right click on the INF file and install it as directed in step 2.2.2?
    Page 5-87 of the VISA Programmer's reference manual specifies how to do a viOpen to a USB device in RAW mode, but you still need the same sorts of Product ID and Mfg ID that you needed for the INF file generation. Furthermore, if you are communicating with
    your instrument directly, you will need to know exactly what command set it expects, so make sure you get that from the manufacturer as well. Finally, I want to mention that if this device complies with the USBTMC standard, then none of this is necessary--the steps above are for setting up a RAW USB connection. See this link for information.
    Scott

  • USB device drawing too much power...

    I have a Mac Pro 1,1 that until this last software update (10.6.7) was running fine. After the download and reboot, my computer is now riddled with the same error message: "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."
    To give further understanding of my set up, I am running an ATI Radeon 5770 video card with three monitors attached: on the DVI port is a 32" Samsung flat panel TV, and attached to the two mini DVI ports were two 20" Apple Cinema Displays connected via dual link DVI connectors (each of which was connected to two of the three USB ports on the hub in the back of the Mac Pro tower).
    So, after the software updated and the computer rebooted, the Apple Cinema Displays did not come back on (obvisously because the USB hub in the back of the tower was shut down).
    I have tried repairing permissions. I have reset the PRAM and I have reset the SMC. None of these have thus far worked.
    After a visit to Apple, the Genius told me that it was because there was some discrepancy with the other third pary PCIe cards that have in slots one, two and three. So I confirmed with him that if I pull the cards and reboot, the error message should go away. I pulled all third party cards from the slots and I'm still experiencing the same problem.
    I realize that this sounds like a logic board replacement. But I'm hoping there's someone else out there in the community who may have had a similar problem and may be able to offer any other kinds of work around.
    Just for the record, I am running an RME HDSPe card in slot 1, UAD 1 in slot 2 and UAD 2 in slot three. Slots four and five are occupied by the ATI Radeon 5770.
    Any advice would be appreciated.
    Thank you.

    If you don't have any USB devices plugged in, then your Mac may just be confused. Try an SMC Reset:
    HT3964- Intel-based Macs: Resetting the System Management Controller (SMC)

  • Using USB device with Virtual Com port

    I have an actisys IR USB device that creates a virtual serial port. I can read from it using VISA, however it will not write. I have the same setup working on LV 6.1 running windows 2000. I need to make it work on my system running XP and LV 7.1.

    Hello,
    Does your Windows 2000/LabVIEW 6.1 system work correctly or do you see the same behavior?  It sounds like there may be something wrong with the termination of the command.  What termination method are you using?  Is your instrument set for that method?  You may also want to try using the NI-488.2 Interactive Control.  A tutorial on how to use it is located here if needed.  This will bypass VISA and LabVIEW.  If this works, you may want to update to the latest version of VISA (if you don't already have it) to see if that fixes the issue.
    Chris R.
    Chris R.
    Applications Engineer
    National Instruments

  • How to develop dll towards VB and Delphi for vi's of a third-part usb device

    Hello, dear lv'ers:
    Recently i am evolved in a project where i want to reuse my developed ac measurement modules (certainly in .vi format) in target computers. The related information has been collected below:
    0) Develope machine: win7, lv2010 sp1 development suite bought last year, third-part usb devices (Rigol DG1022 for instance, recognized in MAX as USB0::0x0957::0x0407::MY44012174::INSTR), ac measurement vi's with VISA function calling.
    1) Target computer A: MultiVu for squid vsm from QD(quantum design) bought in 2009, allowing third-part extension script written in visual basic .bas format. MAX was installed by QD, but our third-part usb devices could unfortunately not be recognized and assigned a visa resource name.
    2) Target computer B: MultiVu for squid-xl from QD bought 2007, allowing third-part extension script writen in Delphi .dpr format. Its MAX has the same problem.
    i have got familiar with extending such two MultiVu's for dc measurement based on Keithley 2400 & 2182, successfully using VB and Delphi, respectively.  Such dc module has nothing to do with labview and has already installed with GPIB interface in MAX.
    i have already overviewed some related posts here for dll building for VB and Delphi, and i could build my hellow-world dll for vb(simply following reversstring one in ni knowledgebase). However, at the moment, my main concerning is how to build dll's installation package for our two target computers, so that they can use the third-part usb devices as in my development machine?
    Your answers, direct or indirectly, would be quite appreciated.
    Faithfully
    Jun Lu
    Member of Technical Staff in State Key Laboratory of Magnetism
    Beijing National Laboratory for Condensed Matter Physics
    Institute of Physics, Chinese Academy of Sciences
    100190 Beijing, P.R. China
    http://www.instrument.com.cn/ilog/handsomeland/

    Probably, i have just got a solution for this problem.
    The way seems  quite simple: what i need to do, before importing dll or exe files, is installing a VISA  4.0 (http://download.ni.com/support/softlib/visa/NI-VISA/4.0/win32/visa400full.exe) in target computers, which can communicate fine with our devices.
    Afterwards, you know, everthing goes ok as does in the development computer.
    When i got further problems, i shall return here. :-).

  • VISA USB not configuring correctly.

    I’ve used Labview in the past but I am no expert and often find myself going around in circles until I eventually find an answer!
    I have written software before that captures data using rs232 serial port. I now have a new device which uses USB. I’d like to put an option in so that I can simply click from USB to serial depending on what device is connected. I realised I will have to mask the strings coming out along with device options to make this work but that should be simple.
    The new device comes with basic software and has a Silabs Driver. So what I’ve done so far is;
    Located the VID and PID codes and confirmed they are correct when looking at the USB list within the driver wizard.
    Used the VISA driver wizard to create a new driver for my device and confirmed its installed within the device manager.
    Found an example which uses USB raw data control to try to get information from the machine but with no luck.
    Problems I am seeing on my PC
    A restart seems to lose the driver, or it takes a long time for it to show in device manager.
    The NI-VISA device in device manager disappears and then reappears as and when it pleases. Usually in 5 second intervals.
    The device is sometimes present in MAX, and sometimes not.
    When I look at VISA interactive control in MAX the USB device is sometimes there and some time not, a refresh sometimes helps.
    I get a bubble in the corner of XP screen saying there is a device malfunction but it disappears and everything goes back to normal.
    As I said I’m no expert and if you were able to give me some guidance on this, so I can communicate correctly I can get on with the rest of the project. It seems like the string has a time limit leaving the machine and the driver is only valid during this time period.
    OR, can i locate the orginal dll and control the device from the original software driver? If this is the best route, how do i locate the correct dll?
    Thanks

    Hi DelEngUK,
    I'm having a bit of a stab in the dar here but:
    It wouldn't be anything to do with your VID/PID combination not being unique? If the silicon labs driver is already installed, could there be a conflict if the Vendor ID and Product ID is the same for each?
    And just as a minor point: Windows ins't being clever and trying to disable your USB ports to be more power friendly is it? I've seen Windows doing this with USB scopes when there hasn't been communications over the port in a few minutes. this link addresses that issue in Windows XP:
    http://www.himsa.com/Support/NOAHlinkKnowledgebase/Howto/turnoffaUSBportspowersaveoption/tabid/492/l...
    I searched through our internal records of past problems, but I wasn't able to come up with anything immediately useful or similar sorry. I shall continue to look around though.
    Lets treat my post as a bit of a bump too. If anyone else out there can add their 2 cence then that would be great.
    Thanks!
    Rhys
    Applications Engineer
    National Instruments

  • USB Devices with DLL librairies

    Hello,
    I am working on a project that uses a custom made USB device. I use a USB serial converter chip that emulates a serial port on my computer. The problem is that I need to use some of the functions included in the DLL that came with the device and I also want to monitor interrupts on the device. I was wondering if it was possible to monitor the USB using an interrupt from Windows or to monitor the interrupts from the device using VISA, but be able to talk to the USB device using the Windows driver.
    Thanks,
    Benjamin

    You can also charge your iPod Shuffle...
    iPod shuffle: Using AirPort Express to charge
    http://docs.info.apple.com/article.html?artnum=300872
    iFelix

Maybe you are looking for

  • Proximity Sensor Doesn´t Work. How to fix it?

    I´am experiencieng a problem that many other iphone users may either. The proximity sensor doesn´t work. When i answer a phone call, the display doesn´t turn off, and everytime i keep dialing numbers, endind calls and a lot of other little things tha

  • No HDMI sound to my TV with my g6 notebook with HDMI Codec drivers installed.

    No HDMI sound to my TV with my g6 notebook with HDMI Codec drivers installed using Windows 7.

  • Int main() not issuing warning with no return statement

    Does anyone know why Visual C++ (2010, in my case), doesn't issue a C4715 waning (not all control paths return a value) for the main() function? If you do this: #include <iostream> using namespace std; int main() cout << "Testing.\n"; you get no warn

  • Export to jpeg issue: ROES can't preview the files

    We are using InDesign to create album layouts which we then order from our lab using their ROES software. Annoyingly, the jpegs created by InDesign cannot be previewed by the ROES software. I have to open them all in Photoshop and resave, which is ve

  • ZipCode validation based on locale

    Hello All. I'm currently developing an application and i kind of ran into some problems that i'm trying to find a possible solution. This app will be used for many users spread out into Europe, Asia and Americas and one requirement is to validate a g