background image

 

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 

Open 

Open the USB-AIO10 device. When USB device opens, stop the 

RS-232 data transmission. 

Close 

Close  the  USB  device.  You  can  use  the  RS-232  interface 

function. 

Start 

Start the continuous Analog input data acquisition. 

Stop 

Stop the continuous Analog input data acquisition. 

Set 

Set up the selected sampling rate. 

Summary of Contents for USB-AIO10

Page 1: ...by DAQ system is believed to be accurate and reliable However no responsibility is assumed by DAQ system for its use nor for any infringements of patents or other rights of third parties which may res...

Page 2: ...2 Installation Sequence 4 Hardware Device 4 1 Reset Switch SW1 4 2 USB Connector CN1 4 3 Power Selection Connector J1 4 4 External Power Connector J2 4 5 RS 232 Connector J16 4 6 Digital Input Output...

Page 3: ...ogram References Caution The board and external input output signals of the device have to connect the common ground Frame to protect the board and peripheral devices The board operates in a safe loca...

Page 4: ...use 5VDC external power and optionally you can use USB power 1 1 Function 4 Ch 16 Bit Analog Input 4 Ch 16 Bit Analog Output Support Analog Voltage Current Mode Isolated 24 Bit Digital Input Output US...

Page 5: ...aximum Set Time 10usec Voltage Current Mode Setup Digital Input Channel 24 Input Input Signal Level 12 24VDC Isolated No polarity Input Digital Output Channel 24 Output Output Signal Level 12 24VDC Is...

Page 6: ...USB AIO10 User s Manual Rev 1 1 6 http www daqsystem com output for external power supply 5VDC over 500mA is required...

Page 7: ...oard in your environment do the following steps The USB AIP10 board is completely Hot Plug and Plug Play Therefore you can install it easily The required PC operating system for the USB AIO10 is Windo...

Page 8: ...our computer R and press the Next button The following driver search screen will appear In the figure above click the Browse button on the Driver folder of the CD that contains the driver specify the...

Page 9: ...1 1 9 http www daqsystem com 5 If the board that is found has the appropriate driver click Install this driver software to start the installation 6 When the installation is completed normally the foll...

Page 10: ...Device Manager window My Computer properties Hardware Device Manager Universal Serial Bus Controller DAQ System Analog Input Output Board If you can see the DAQ System USB2 0 Multi Function Board at U...

Page 11: ...The board initialization switch is done to reconnect USB initialize the functional behavior 4 2 USB Connector CN1 B type USB connector is connected to a PC as data transmission and reception USB B ty...

Page 12: ...Vdc input the number 1 is polarity 1 J2 DC 005 Internal 2 Figure 4 3 J2 External Power Connector Front View 4 5 RS 232 Connector J16 It is a D Sub Connector is for RS 232 interface data transmission T...

Page 13: ...the Emitter 12V 24V input voltage controls the current to less than 20mA DINx DIN_COM BINx 3 3V BOUTx DOUT0 3 3V 22 330 2 4K DOUT_COM DIN Isolation DOUT Isolation Figure 4 5 Digital IO Circuit 4 7 Ou...

Page 14: ...log Output 2 Negative O 18 AOUT3_N Analog Output 3 Negative O 19 AGND Analog Ground Power 20 DOUT0 Digital Out 0 O 21 DOUT2 Digital Out 2 O 22 DOUT4 Digital Out 4 O 23 DOUT6 Digital Out 6 O 24 DOUT8 D...

Page 15: ...IN3 Digital In 3 I 4 DIN5 Digital In 5 I 5 DIN7 Digital In 7 I 6 DIN9 Digital In 9 I 7 DIN11 Digital In 11 I 8 DIN13 Digital In 13 I 9 DIN15 Digital In 15 I 10 DIN17 Digital In 17 I 11 DIN19 Digital I...

Page 16: ...tive I 35 AIN2_P Analog Input 2 Posiative I 36 AIN3_P Analog Input 3 Posiative I 37 5V 5V Power Power 4 9 Analog Signal Selection Connector Explains the voltage and current mode selection the jumper c...

Page 17: ...umber Initially it is set to voltage mode J5 AIN1 J4 AIN0 J8 AIN3 J6 AIN2 Figure 4 9 Analog Input Mode Selection Connector 4 9 2 Analog Output Mode Selection Analog Output Signal Voltage Current Mode...

Page 18: ...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 The e...

Page 19: ...display part 11 Voltage CH1 Display the converted to a voltage level of analog input channel CH1 12 Display the collected data for each channel 13 Single Read Current Analog Input data read once It ca...

Page 20: ...ace Sample Program Table 7 RS 232 Sample Program Function Description No Name Description 1 COM1 Select the number of RS 232 port 2 OPEN Open the RS 232 port for USB AIO10 interface 3 CLOSE Close the...

Page 21: ...rences 1 USB 2 0 System Architecture Don Anderson USB SIG www usb org 2 Universal Serial Bus Specification Compaq Intel Microsoft NEC MindShare Inc Addison Wesley 3 AN201 How to build application usin...

Reviews: