USB-AIO10 User’s Manual (Rev 1.1)
-
18-
http://www.daqsystem.com
5.
Sample Program
DAQ system provides a sample program to make the user be familiar with the board operation
and to make the program development easier. You can find the sample program in the CDROM
accompanying with the board. The execution file is “usb_aio10_app.exe” and
“usb_aio10_app2.exe for USB and RS-232 interface.
Sample program is provided in source form(Visual C++ 6.0) in order to show the usage of API
(Application Programming Interface) of the board and may be modified for customer’s own usage.
5.1 USB Interface Sample Program
The USB-AIO10 should be connected to the system through USB cable. The power can
use the USB power or external power. T
he execution file is “usb_aio10_app.exe”.
1
2
3
4
5
6
7
8
9
10
11
14
15
16
17
18
19
20
21
12
13
[Figure 5-1. USB Interface Sample Program]
[Table 6. Sample Program Function Description]
No.
Name
Description
1
Open
Open the USB-AIO10 device. When USB device opens, stop the
RS-232 data transmission.
2
Close
Close the USB device. You can use the RS-232 interface
function.
3
Start
Start the continuous Analog input data acquisition.
4
Stop
Stop the continuous Analog input data acquisition.
5
Set
Set up the selected sampling rate.