Giga-tronics 2400/2500 Microwave Synthesizer Series
4. Programming Interfaces
Programming Manual, Part Number 34783, Rev A, July 2009
19
4.3.3.2 DLL Function; GT2400_OpenConnection
GT2400_OpenConnection
Purpose
Establish the communication between the PC and the 2400/2500 with the specified connection interface
and address. For an Ethernet connection, call GT2400_SetIPAddress function first to establish the
TCP/IP address of the instrument.
Syntax
STATUS
GT2400_OpenConnection(
const short
connectionType,
const short
address,
const short
resetDevice
unsigned long
*instrumentHandle)
Parameter
Description
connectionType
Input: Connection interface:
0 = GPIB
1 = RS232
2,3 = SPECIAL (NOT FOR COMMON USE)
4 = GPIB Connection via remote SERVER PC (TCP/IP) (not supported after Revision
3.3)
5 = reserved
6 = Ethernet (TCP/IP) (supported from Rev 3.3)
address
Input: GPIB address number if ConnectionType = 0
or COM port number if ConnectionType = 1
Note
: GPIB communication board index can be set if GPIB interface is selected. The
2 byte (SHORT) “address” contains GPIB board index and address. The most
significant byte is used to set GPIB board index and the least significant byte is used
to set GPIB address. The default GPIB board index is 0.
Example: GPIB board index = 1; GPIB address = 6
Parameter, address = 0x100 | 0x6 =
0x106 (in Hex.) or 262 (in Decimal)
resetDevice
Input:
1 = Reset instrument in start up
0 = No reset
instrumentHandle Output: The unique identification of the connected instrument. This handle can be
used later to operate on multiple instruments.