4. Programming Interfaces
Giga-tronics 2400/2500 Microwave Synthesizer Series
18
Programming Manual, Part Number 34783, Rev A, July 2009
4.3.3.1 DLL Function; GT2400_FindInstruments
GT2400_FindInstruments
Purpose
Find the addresses of instruments, either through GPIB or RS232, connected to PC.
Syntax
STATUS
GT2400_FindInstruments(
const short
connectionType,
short
addresses[],
short
*pCount)
Parameter
Description
connectionType
Input: Connection type.
0 = GPIB,
1 = RS232
2,3 = SPECIAL (NOT FOR COMMON USE)
4 = GPIB Connection via remote SERVER PC (TCP/IP)
addresses
Output: Array of GPIB addresses or COM port numbers of all the Giga-tronics
instruments connected.
(Note: In case the RS232 connection interface is selected, the first element returned
in this array is the first serial port that is connected to a Giga-tronics instrument
followed by the remaining serial port numbers on the PC.)
Example 1:
There are total of 4 COM ports on a PC, and only COM port 1
is connected to a Giga-
tronics instrument, the returned result will be
addresses[0] = 1
addresses[1] = 2
addresses[2] = 3
addresses[3] = 4
Example 2:
There are total of 4 COM ports on a PC, and only COM port 3 is connected to a Giga-
tronics instrument, the returned result will be
addresses[0] = 3
addresses[1] = 4
pCount
Output: Total number of instruments connected to PC through the specified
interface.