5. About Software
CNT24-4(PCI)H
53
About Software for Linux
The Linux version of counter driver, API-CNT(LNX), provides functions that execute the following
features:
-
Pulse input mode setting
-
Count value acquisition
-
Count-match or time-based interrupt response
For details, refer to the help file. The help file provides various items of information such as “Function
Reference”, “Sample Programs”, and “FAQs”. Use them for program development and troubleshooting.
Driver Software Install Procedure
The Linux version of counter driver, API-CNT(LNX), is supplied as a compressed file
/linux/cnt/ccntXXX.tgz on the bundled API-PAC(W32)CD-ROM. (Note: XXX represents the driver
version.)
Mount the CD-ROM as shown below, copy the file to an arbitrary directory, and decompress the file to
install the driver.
For details on using the driver, refer to readme.txt and the help file in HTML format extracted by
installation.
To install the driver, log in as a super user.
Decompression and setup procedure
# cd
# mount /dev/cdrom /mnt/cdrom
Mount the CD-ROM.
# cp /mnt/cdrom/linux/dio/cdioXXX.tgz ./
Copy the compressed file.
# tar xvfz cdioXXX.tgz
Decompress the compressed file.
................
# cd contec/cdio
# make
Compile the file.
................
# make install
Install.
................
# cd config
# ./config
Set up the board to be used.
..... Set as follows.........
# ./contec_dio_start.sh
Start the driver.
# cd