Create the .inf File Using the NI-VISA Driver Wizard

To use NI-VISA, you first must tell Windows to use NI-VISA as default driver for the device. In the Windows environment, you can do this with a .inf file. NI-VISA includes the NI-VISA Driver Wizard to create a .inf file for your USB device. Complete the following steps to create the .inf file.

  1. To open the DDW, run the NI-VISA Driver Wizard, available via the Start menu under National Instruments»VISA. The following figure shows the open screen.

    VISA DDW Hardware Bus Window

    You can use this wizard to create a .inf file for a PXI/PCI or USB device. Because you are creating the driver for a USB device, click USB and Next. If one or more devices currently is connected to your system, the VISA DDW USB Device Selection opens as shown in the following figure.

    VISA DDW USB Device Selection Window

    1. Select your USB device from the Device List. The USB vendor ID (VID) and product ID (PID) for your instrument are displayed, along with standard descriptor information obtained from the device. The VID and PID are numbers that identify your USB device when you install it and address your device when you want to communicate with it. According to the USB specification, both numbers are 16-bit hexadecimal numbers, and the device manufacturer should provide them. Click Next to proceed to the Output File Generation window (proceed to step 3).
    2. If your USB instrument is not connected to your system, you can connect it and click the refresh button to repopulate the active Device List. If you cannot connect your device at this time, you can select Other from the Device List to enter your device information manually. Click Next. The USB Device Information window is displayed as shown in the following figure.

  2. For this step, you must know the USB vendor ID and product ID for your USB instrument.

    If you do not know the USB vendor ID and product ID, follow these steps to get them:
    1. Plug the device into the computer and allow the computer to recognize the new device. Cancel out of the Found New Hardware Wizard if it starts.
    2. Open the Device Manager from the Control Panel and find your device on the list, usually under Other Devices. It may show a yellow exclamation mark, indicating it is an unknown device.
    3. Double-click the device to open the properties.
    4. Select the Details tab and ensure that Device Instance Id shows in the attribute drop-down list. A string of characters is displayed similar to the following figure. The four characters to the right of VID_ and PID_ are your vendor ID and product ID, respectively.
    5. Write down the characters for your device, close the Device Manager, and unplug the device from the computer.
    Alternately, you can contact your device vendor to obtain this information.

    Finding the Vendor ID and Product ID from the Device Manager

    For the USB-6008, the vendor ID and product ID are 0x3923 and 0x717A, respectively. The vendor ID and product ID are different for your device if it is not a National Instruments USB-6008.

    Enter the vendor ID, product ID, manufacturer name, and model name for your device in their respective fields.
  3. The Output Files Generation window is displayed as shown in the following figure.

    VISA DDW Output Files Generation Window

    The USB instrument prefix is a descriptor for identifying the files used for this device. Enter a USB instrument prefix, select the desired directory in which to place these files, and click Next. The next window displays installation options. The default selection is to install the setup information for the operating system and is usually the best option. Once you select an option, click Finish to exit the wizard. The .inf file is created in the directory you specified in the output file directory field in the previous window.

    Note Note  There are two .inf files. Choosing the Install the generated file(s) on this computer option in the next topic installs the correct file based on the OS. However, if you are installing the file manually, be sure to choose the correct file. For more information, refer to Using LabWindows/CVI to Install Your Device .inf Files.

Proceed to the next step, Installation Options.