PCI.212 Manual
31.03.2004
Page 24 of 25
Example of Driver use
This example is written for a C or C++ compiler. It reads out the information of the PCI.212, sets the parameters and starts the board once.
This file is also found in the example directory on the driver disk.
3&,:LQ6RIWZDUHGULYHUH[DPSOHF6SHFWUXP*PE+
7KLVH[DPSOHZLOORQO\ZRUNFRUUHFWLIMXVWRQH3&,LVLQVWDOOHG
LQWKHV\VWHPDQGQRRWKHU6SHFWUXPERDUGV
LQFOXGHVWGLRK!
LQFOXGH'//7<3+
LQFOXGH63(&7580+
LQFOXGH(55256+
LQFOXGH5(*6+
LQW3$6&$/:,167$1&(+,167$1&(/3675LQW
^
LQW&RXQW3&,9HUVLRQ
LQW7\S9HUVLRQ'DWH6WDWXV,5&RXQWL5DQJH5DQJH
LQW'DWD>O@'DWD>O@
,QLWLDOLVDWLRQRI3&,%XV
LI6SF,QLW3&,%RDUGV &RXQW 3&,9HUVLRQ (55B2.UHWXUQ
LI&RXQW UHWXUQ
7HVWIRU3&,VWERDUGLVERDUGQXPEHU
6SF*HW3DUDP63&B3&,7<3 7\S
LI7\S 7<3B3&,
UHWXUQ
*HWVRPH3&,3DUDPHWHUVIURPGULYHUDQGSULQWWKHP
6SF*HW3DUDP63&B3&,9(56,21 9HUVLRQ
6SF*HW3DUDP63&B3&,'$7( 'DWH
SULQWIV3&,9[[SURGXFHGGG?QLQW9HUVLRQ!! [))LQW
9HUVLRQ [))LQW'DWH [))LQW'DWH!!
6HW3DUDPHWHUVIRU5HFRUGLQJ
6SF6HW3DUDP63&B&200$1'63&B126<1&1R6\QFKURQLVDWLRQ
6SF6HW3DUDP63&B2+0O&KDQQHO02KP
6SF6HW3DUDP63&B2+0O&KDQQHO02KP
6SF6HW3DUDP63&B6$03/(5$7(O6DPS]
6SF6HW3DUDP63&B6$03/(5$7(O6DPS]
6SF6HW3DUDP63&B0(06,=(O0HPVL]HN6DPSOH
6SF6HW3DUDP63&B326775,**(5O3RVWWULJJHU6DPSOH
6SF6HW3DUDP63&B(;7(51$/&/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