9: LabVIEW Drivers
Giga-tronics 2400/2500 Microwave Synthesizer Series
182
Programming Manual, Part Number 34783, Rev A, July 2009
LabVIEW function call VIs contain the GT2400 DLL functions. The function call VIs have the same name
as the associated DLL functions except the prefix is GT2XXX instead of GT2400. Also, all the input,
output parameters and the return value of the functions have the same equivalent variable type, and in
most cases the variable names are kept the same.
The VIs includes ErrorIn and ErrorOut clusters (similar to a structure in C). These clusters hold three
pieces of information regarding VI error
•
Error state
•
Error code
•
Error origination.
The VIs are designed to update the ErrorOut cluster based on the status returned by the DLL functions.
Additionally, if an error is received through ErrorIn, the VI simply passes the error to its ErrorOut cluster
without performing the core functionality.
There are two types of VI names:
•
GT2XXX followed by an underscore, “GT2XXX_”. These are VIs that call the corresponding DLL
function.
•
GT2XXX followed by a space, “GT2XXX “. These do not call DLL functions.
NOTE:
An exception to this categorization is the naming for VI GT2XXX_Initialize.vi. This VI is
categorized as a function call VI, but the function it wraps is not GT2400_Initialize function, but instead it
is GT2400_OpenConnection function.
The tables on the following pages list the LabVIEW drivers for the 2400C.