SC5312A Operating & Programming Manual
Rev 1.0.2
22
Type Definitions
typedef
struct
{
unsigned
int
productSerialNumber;
unsigned
int
rfModuleSerialNumber;
float
firmwareRevision;
float
hardwareRevision;
unsigned
int
calDate;
// year, month, day, hour:&(0xFF000000,0xFF0000,0xFF00,0xFF)
unsigned
int
manDate;
// year, month, day, hour:&(0xFF000000,0xFF0000,0xFF00,0xFF)
}
deviceInfo_t;
typedef
struct
{
bool
rfAmp1Enable;
bool
rfAmp2Enable;
bool
rfPath;
bool
loEnable;
bool
deviceAccess;
}
deviceStatus_t;
Function Definitions and Usage
The functions listed below are found in the
sc5312a.dll
dynamic linked library for the Windows
TM
operating system. These functions are also provided in the LabVIEW library,
sc5312a.llb
. The LabVIEW
functions contain context-sensitive help (Ctrl-H) to assist with understanding the input and output
parameters.
Function:
sc5312a_ListResources
Definition:
int
sc5312a_ListResources(
char
**visaResource,
unsigned
int
*size)
Output:
char
**visaResource
(pointer list to device resources)
Description:
sc5312a_ListResources
searches for SignalCore SC5312A devices connected to the host
computer and return an array containing their unique VISA resource ID. This information
can be used to open the device(s) using IDs as unique identifiers in the system. See
sc5312a_OpenDevice
function on how to open a device.
Function:
sc5312a_OpenDevice
Definition:
int
sc5312a_OpenDevice(
char
*visaResource,
unsigned
int
*deviceHandle)
Input:
char
*visaResource
(Resource ID)
Output:
unsigned
int
*deviceHandle
(unsigned integer number for the deviceHandle)
Description:
sc5312a_OpenDevice
opens the device and turns the
front panel “active”
LED on if it is
successful. It returns a handle to the device for other function calls.