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

How Can I Use My ENET Device as a TCP/IP Resource?

Hardware: PXI/CompactPCI>>Controllers

Problem:
I want to create an application which is to be run on a platform that does not support NI Serial or NI 488.2 (like a touch panel device running Windows CE), and want to use my ENET device as a VISA TCP/IP resource for serial or GPIB communication. How can I do this?


Solution:
In order to use your ENET device as a VISA TCP/IP resource, you must first check KB2QDASEPG: Supported NI-VISA Operating Systems and Features to make sure that your device is supported as a VISA resource. For example, ENET Serial devices are supported by VISA on Windows CE, but GPIB devices are not. Therefore the GPIB-ENET/100 cannot be used on a platform running Windows CE, but the ENET-232/x and ENET-485/x can be used on a platform running Windows CE. To use a serial ENET device as a VISA TCP resource, follow the steps below.
 
Get IP Address/Hostname of ENET Device
  1. Connect the device to a platform with an operating system that supports NI Serial.
  2. Open up Measurement & Automation Explorer(MAX) by going to Start » Programs » National Instruments » Measurement & Automation.
  3. Select the ENET device on the Configuration tab under My System » Devices and Interfaces, and take note of the value in the IP address/hostname category.

Use ENET Serial Ports on Other Platform

Once you have the IP Address or Hostname of your serial ENET device, you can use the device on the platform which does not support NI Serial by addressing the ports on the serial ENET device by their complete VISA resource names. When using the VISA Open function to open a connection to the port, use the following string to access one of the ENET ports:

ASRL::IP Address or Hostname::Port Number::INSTR

For example, the ENET-232/4 has four RS-232 serial ports, numbered 1-4. If your ENET-232/4 had an IP address of 10.0.0.1, and you were attempting to access port 2 of it, your VISA resource name would be:

ASRL::10.0.0.1::2::INSTR

Related Links:
KnowledgeBase 2QDASEPG: Supported NI-VISA Operating Systems and Features
KnowledgeBase 2MH8GVSJ: Syntax : VISA Resource Name (Instrument Descriptor)
KnowledgeBase 23E7KUR4: Which Operating Systems Are Supported by the GPIB-ENET/100?
KnowledgeBase 2Z0EDREW: Can I Use the ENET-232 or ENET-485 in LabVIEW Real-Time?

Attachments:

ENETResourceMAX3.jpg
ENETResourceMAX2.jpg






Report Date: 02/09/2009
Last Updated: 03/06/2009
Document ID: 4U8H4G1V

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