Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Distributed GPIB-ENET/100 Sample 2

0 ratings | 0.00 out of 5
Print

Downloads

Filename: sample2.txt
Requirements: View

This sample program is included in the application note, Developing Distributed GPIB Test Systems Using GPIB-ENET/100 and Existing Ethernet Networks. Refer to the application note to fully utilize this sample code.

This code assumes that we have configured the driver to associate the interface name GPIB0 with the IP address of a GPIB-ENET/100 connected to two instruments and the interface name GPIB1 with the IP address of another GPIB-ENET/100 connected to two instruments.

All C applications that call NI-488.2 must include a header file and must link in an object. For this example, we will suppose that we are on the Windows XP platform. So, we must include ni488.h located in subdirectories of the install directory. Lastly, for the code below to work with the XP driver, the 32-bit object file Gpib-32.obj must be linked into the project. For more details on using the language interface files specific to your platform, see the documentation included with your NI-488.2.

Requirements


Filename: sample2.txt

Software Requirements


Language(s): C++, C

Hardware Requirements


Hardware Group: GPIB
Hardware Model: GPIB-ENET/100

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).