PXIe-1209 User Manual
Publication No. 981050 REV. A
Operation 5-10
Astronics Test Systems
A skeleton program will look something like what is shown below.
#include <ri1209e.h>
int main(int argc, char *argv[])
{
ViSession
hdl1209e;
ViStatus
err;
// call the initialize function
err = ri1209e_init(“PXI32::15::INSTR”, VI_TRUE, VI_TRUE,
&hdl1209e);
// check the error code
if (err < 0)
{
// do something / report error
ViChar
errMsg[256];
ri1209e_error_message(hdl,
err,
errMsg);
printf(“ri1209e_init() returned error code %d\n”, err);
printf(“error message = ‘%s’\n”, errMsg);
return
err;
}
// use other functions of the driver
//
…
// done using the driver, call ri1209e_close()
err = ri1209e_close( hdl1209e );
}
The various functions in the driver allow you to configure the dual pulse generators
within the 1209e. They also provide a means to retrieve current status from these
pulse generators. For detailed information on the driver, consult the help
information in the help file “ri1209e.hlp” that is included with the driver.
Summary of Contents for PXIe-1209
Page 22: ......