How to Install and Test PCI Industrol Control Card on Linux


(1)Instalation : Download driver from as follows:

Kernel 2.4.18

Download the driver to /tmp


(2) Please follow as follows to install:
This sample is under REDHAT 8.0 KERNEL 2.4.18-14.


Step1: Extract the file



Step 2: Execute the install file to install



Step 3: Please use "lsmod" command to check




(3)Please edit /etc/rc.local to add a command line as follows:





(4)Please reboot systems.


(5)Please use 'lsmod' to check after system restarted. You can find PCI 16 Photo/16 Relay.



2.About uninstall



3.About Test:

You can use 8 Photo /8 Relay board , 16 photo board or 16 relay board to test.

Please connect it to port1 of PCI INDUSTRAL CARD.


(1) 8 Photo /8 Relay Board
The device driver already includes three test programs.
1.8photo_8relay_test.c: It auto tests Relay Output ON/OFF of Decision Industial card.
2.8photo_8relay_test1.c: Tests Relay Output and Photo Input.
3.8photo_8relay_test2.c: Manuly tests Output.


Step 1: Please compile the '8photo_8relay_test.c' '8photo_8relay_test1.c' '8photo_8relay_test2' files

as following step:
Then it will create the '8photo_8relay_test' '8photo_8relay_test1' '8photo_8relay_test2' file.



Step 2: Please execute the '8photo_8relay_test' file to test Relay output. You will see Led light from

L3 to L10 Auto ON and OFF on the 8 Photo /8 Relay board .



The 8photo_8relay_test.c's content is as follows:



Step 3: Please execute '8photo_8relay_test1' to test Relay and Photo. You can short JP0 ~ JP7 of 8

Photo /8 Relay board .You can see number in ' I read .....' line and led3 led5 led8 led9 lights are on.



The 8photo_8relay_test1.c's content is as follows:



Step 4: Please execute '8photo_8relay_test2' to manuly test Relay . The result is as follows:



The 8photo_8relay_test2.c's content is as follows:





(2) 16 Relay Board
The device driver already includes three programs.
1.16relay_test.c: It auto tests Relay Output ON/OFF of Decision Industial card.
2.16relay_test1.c: Tests Relay Output and Photo Input.
3.16relay_test2.c: Manuly tests Output.


Step 1: Please compile the '16relay_test.c' '16relay_test1.c' '16relay_test2' files

as following step:
Then it will create the '16relay_test' '16relay_test1' '16relay_test2' file.



Step 2: Please execute the '16relay_test' file to test Relay output. You will see Led light from L5 to

L20 Auto ON and OFF on the 16 Relay board .



The 16relay_test.c's content is as follows:



Step 3: Please execute '16relay_test1' to test Relay . You can see number in ' I read 0x1234' line and

led13(1), led7(2), led14 led16(3),led10(4) lights are on.



The 16relay_test1.c's content is as follows:



Step 4: Please execute '16relay_test2' to manuly test Relay . The result is as follows:



The 16relay_test2.c's content is as follows:





3.16 Photo Board

Step 1: Please compile the '16photo_test.c' ' files as following step:



Step 2: Please execute the '16photo_test' file to test Relay output. You can choose 2 in J18 and J19

and short JP10 to JP17 and JP20 to JP27.Then you can see number in 'I read .....' line.



The 16photo_test.c's content is as follows: