The following example demonstrates how to program the board using the C programming language under Windows. The example shows how to close or open a relay.
To run, Enter the following command line:
GXPIOEX <PciSlot> <specific_command>
Where:
<slot> |
PCI/PXI Explorer slot number where the board reside. |
<port | counter numbers> |
The digital i/o port number (0-6) or the counter number (0-3). |
<operation> |
Operation code:RD=read port directionWD=write port directionRP=read port valueWP=write port valueRC=read counterWC=write counter |
<direction | value | count> |
Direction for WP operation:0-15=for the port 4 groups. Each bit controls the direction of a byte of the port. 1 for output, 0 for input.Value for WP operation:0 - 0xFFFFFFFF for port valueCount for WC operation:0 - 255 for counter value |