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.
-
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.
-
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
-
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.
-
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.
-
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
-
-
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