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 RailGCR=Get Channel RailSDV=Set Dac VoltageGDV=Get Dac VoltageSRS=Set Rail Source |
< channel | dac | rail > |
Depends on the operation:Channel number: 0-7 for SCR/GCR operationsDAC number: 0-2 for SDV/GDV operationsRail number: 0-2 for SRS/GRS operations |
<rail_numbe|voltage|rail_source> |
Depends on operation:Rail_number: 0 to 2Voltage: -10V to 32VRail_source: 0 to 4 |