Sample Programs

The following example demonstrates how to program the board using the C programming language under Windows. The example shows how to apply certain voltage to a specified rail.

To run, Enter the following command line:

GxPdoExample  <PciSlot> <operation> <channel | dac | rail> <rail_number | voltage | rail_source>

Where:

<PciSlot>
PCI/PXI Explorer slot number where the board resides.
<operation>
Operation code:
SCR=Set Channel Rail
GCR=Get Channel Rail
SDV=Set Dac Voltage
GDV=Get Dac Voltage
SRS=Set Rail Source
< channel | dac | rail >
Depends on the operation:
Channel number: 0-7 for SCR/GCR operations
DAC number: 0-2 for SDV/GDV operations
Rail number: 0-2 for SRS/GRS operations
<rail_numbe|voltage|rail_source>
Depends on operation:
Rail_number: 0 to 2
Voltage: -10V to 32V
Rail_source: 0 to 4