Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Can My [c]FP 2xxx Controller Use a VISA TCP/IP Resource to Communicate With an LXI Instrument?

Hardware: Compact FieldPoint>>Controllers

Problem:
I am using a [c]FP 2xxx controller and I am trying to communicate with an LXI instrument. I am using the correct VISA TCP/IP Resource string, but I get error message Error -1073807343: Insufficient location information or the device or resource is not present in the system.

Solution:


The [c]FP 2xxx controllers cannot use VISA TCP/IP Resources unless you manually install the VISA Enet Passport.  The following steps will walk you through manually adding the VISA Enet Passport to your [c]FP controller.

  1. Use FTP to move the file NiViEnet.dll file from C:\Program Files\National Instruments\RT Images\NI-VISA\4.1 on the host PC to /ni-rt/system/vxipnp/winnt/bin/ on the controller.
  2. Add the following lines to the visaconf.ini file which is located at /ni-rt/system/vxipnp/winnt/NIvisa/.

    [TCPIP-RSRCS]
    SynchronizeAllSocket = 0
    SynchronizeAllVxi11 = 1
    NumOfResources = 0
  3. Add the following lines to the nivisa.ini file which is located at /ni-rt/system/vxipnp/winnt/NIvisa/Passport/.

    passportEnabled2 = 1
    LibName2 = NiViEnet.dll
    LibDescription2 = "NI-VISA Passport for TCPIP and VXI-11"


    Also in the nivisa.ini file at /ni-rt/system/vxipnp/winnt/NIvisa/Passport/, increment the argument for NumberOfPassports = X.
  4. After rebooting the [c]FP controller, the VISA Enet Passport should show up in the passport list.

    You can find the passport list by opening Measurement and Automation Explorer on the host PC.  Under the [c]FP controller, expand the software directory and the FieldPoint directory and click on NI-VISA.  Click on the VISA Options tab at the bottom and then click on passports to see all of the passports.
  5. To access the LXI instrument from a VI on the [c]FP controller, use one of the following string formats.

    TCPIPboard::host address::LAN device name::INSTR
    Example: TCPIP0::MyInstrumentHostName::inst0::INSTR
  6. To determine the VISA TCP/IP Resource string of the LXI instrument, you could use a host other than the [c]FP controller, and add it to MAX there by creating a new TCP/IP device.  For instructions on how to do this, see the document How Do I Configure an Instrument to Communicate via TCP/IP in MAX?
  7. The VISA TCP/IP Resource string can be used with the viOpen function, but the viFindRsrc function requires that the resource has been added to the visaconf.ini file.  This file is located at /ni-rt/system/vxipnp/winnt/NIvisa/.

    In the [TCPIP-RSRCS] section, add the following lines (making sure you use the appropriate arguments):

    Name0 = "TCPIP0::10.0.0.1::inst0::INSTR"
    Enabled0 = 1
    NumOfResources = 1


Related Links:


KnowledgeBase 2YIFKEN1: How Do I Configure an Instrument to Communicate via TCP/IP in MAX?



Attachments:





Report Date: 12/04/2007
Last Updated: 12/17/2007
Document ID: 4G3KHSQN

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit