background image

 

USB-DIO6400 Users Manual (Rev 1.1) 

 

 

                                                                  -

21-                                                     

http://www.daqsystem.com

 

5.    Sample Program   

 

5.1    Program Interface 

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. One of the execution file is 

“DIO6400.exe”

.   

Sample  program  is  provided  in  source  form  in  order  to  show  the  usage  of  API(Application 

Programming Interface) of the board and may be modified for custom

er’s own usage.   

 

[Figure 8-

1. When Sample program “DIO6400.exe’ is executed] 

 

To run the sample application program, you need to use API, it is a form of client DLL. To compile 

the  sample  source  to make  its  executable  file,  you  have  to  use  Import  Library  files  and  header  files. 

You can find them in the CDROM. To run the .exe file, the API DLL file 

(USB_DIO6400.DLL) 

must be 

in  the  same  directory  with  the  .exe  file  or  Windows  system  folder.  Another  method  is  to  add  the 

directory of API DLL file to PATH environmental variable.   

 

      5.2    Function Explanation 

            (1) Model No. 

 

Select the Model Name 

“USB-DIO6400”   

           

            (2) Board No. 

Select the Board Number (Board #0 ~ #3) 

     

Summary of Contents for USB-DIO6400

Page 1: ...AQ 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 result from its use No license is granted by implication or otherwise under any patent or copyrights of DAQ system The information in this document is subject to change without notice and no part of this doc...

Page 2: ...USB Connector JP4 3 2 2 JP1 Connector 3 2 3 D SUB 37Pin Socket J6 3 2 4 D SUB 37Pin Plug J2 3 3 Digital Input Circuit 3 4 Digital Output Circuit 3 5 Power Option Setup 3 5 1 JP2 Jumper Setup 3 5 2 J7 Jumper Setup 3 5 3 JP7 Jumper Setup 4 Installation 4 1 Confirm Product Contents 4 2 Driver Installation 5 Sample Program 5 1 Program Interface 5 2 Function Explanantion Reference ...

Page 3: ... Isolated Input PCI DIO6402 None 64 Isolated Output PCI DIO01 32 32 Software Configurable 1 1 TTL Level Input Output 32bit Counter Timer PCI DIO02 128 channels Software Configurable 1 1 16bit 8Group Read Write PCI DIO12 16 16 or 32 32 Software Configurable 128Mbyte DDR SDRAM Data transfer rate up to 400Mb s PCI MOT01 24 24 Isolated 2 Channel PWM 2 Channel Encoder 1 Channel ADC PCI PWM02 6 12 Isola...

Page 4: ...ts digital output for external interface It s device to exchange digital signal such as sensor or Actuator through USB 2 0 interface The product operation is controlled by API functions and the following picture is showing by a working together action Figure 1 1 USB DIO6400 Usage Figure 1 1 shows the USB DIO6400 don t use an external power separately because power supply to USB cable ...

Page 5: ...ctions perform to use the API at PC through USB interface The product gets from 5V power supply through USB connector Figure 2 1 USB DIO6400 Internal Block Diagram The USB DIO6400 is a board having the function of external interface with the isolated 32 Ch input ports and output ports like figure 2 1 GENERAL DESCRIPTION USB Full Speed device USB HID Interface 4ch Triggered PWM output Digital I O 4...

Page 6: ...e 0 1 5V Input Resistance 4 7Kohm 1 2W Isolation Voltage 2500Vrms Isolated input voltage up to 24V Data Transfer Programmed I O Isolated Digital Output Number of Channels 32 Output type Open collector Darlington transistor Sink Current 500mA for one channel 100 duty 500mA for all channel 20 duty Power Dissipation Max 2 36W per chip 8DO channels Supply Voltage 5V USB or isolated 5V inside equipped ...

Page 7: ...400 Rev A J7 JP7 J1 JP1 1 LED3 LED2 J6 U44 U46 U47 U45 U13 Y1 D2 P1 U41 U40 U36 12 00 1 2 15 16 U35 SW3 J2 JP2 U27 LED1 JP4 J3 J4 J5 Figure 3 1 USB DIO6400 Layout There is a USB B type connector at the bottom side to supply power and USB signals It can be 32 channels Digital Input through 37PIN D SUB PLUG J2 connector at the left top side Also it can use 32 channels Digital Output through 37PIN D ...

Page 8: ...JP4 is a USB B type connector for high speed USB connection Figure 3 2 and Table 1 shows the JP4 connector and its pin description USB B type Connector 1 2 3 4 Figure 3 2 JP4 Connector USB B type Front View Table 1 USB B Connector Description Pin Name Description Remark 1 VCC USB Power 5V 2 D USB Signal Minus Negative 3 D USB Signal Plus Positive 4 GND USB Power GND 3 2 2 JP1 Connector It is a mol...

Page 9: ...22 21 20 DOUT14 GROUND DOUT18 DOUT16 GROUND DOUT20 DOUT22 DOUT28 DOUT26 DOUT24 DOUT30 POWER DOUT13 DOUT15 GROUND OUT_VDD DOUT17 DOUT19 DOUT21 DOUT23 DOUT25 DOUT27 DOUT29 DOUT31 33 32 31 30 29 28 27 26 37 36 35 34 DOUT10 DOUT8 DOUT6 DOUT12 DOUT4 DOUT2 DOUT0 DOUT1 DOUT3 DOUT5 DOUT7 DOUT9 DOUT11 Figure 3 3 USB DIO6400 DSUB 37 Socket J6 Connector Pin Table 2 USB DIO6400 Digital OUTPUT Connector Pin De...

Page 10: ...OUT28 Isolated Digital Output 28 18 DOUT30 Isolated Digital Output 30 19 OUT_POWER Board Power Output 20 DOUT 1 Isolated Digital Output 1 21 DOUT 3 Isolated Digital Output 3 22 DOUT 5 Isolated Digital Output 5 23 DOUT 7 Isolated Digital Output 7 24 DOUT 9 Isolated Digital Output 9 25 DOUT 11 Isolated Digital Output 11 26 DOUT 13 Isolated Digital Output 13 27 DOUT 15 Isolated Digital Output 15 28 G...

Page 11: ...3 12 11 25 24 23 22 21 20 DIN14 IN_COM0 DIN18 DIN16 IN_COM2 DIN20 DIN22 DIN28 DIN26 DIN24 DIN30 N C DIN13 DIN15 IN_COM1 IN_COM3 DIN17 DIN19 DIN21 DIN23 DIN25 DIN27 DIN29 DIN31 33 32 31 30 29 28 27 26 37 36 35 34 DIN10 DIN8 DIN6 DIN12 DIN4 DIN2 DIN0 DIN1 DIN3 DIN5 DIN7 DIN9 DIN11 Figure 3 4 USB DIO6400 DSUB 37 Plug J2 Connector Pin Table 3 USB DIO6400 Digital INPUT Connector Pin Description Pin Pin...

Page 12: ...26 Isolated Digital Input 26 17 DIN28 Isolated Digital Input 28 18 DIN30 Isolated Digital Input 30 19 N C No Connection 20 DIN1 Isolated Digital Input 1 21 DIN3 Isolated Digital Input 3 22 DIN5 Isolated Digital Input 5 23 DIN7 Isolated Digital Input 7 24 DIN9 Isolated Digital Input 9 25 DIN11 Isolated Digital Input 11 26 DIN13 Isolated Digital Input 13 27 DIN15 Isolated Digital Input 15 28 IN_COM1...

Page 13: ...d applying minus voltage to digital input DIN0 DIN7 the current is flowing through diode in the inside to photo coupler and an output direction transistor is applied an electric current according to flow electric current There are 4 circuits as above picture to a board In other words there is a IN_COM signal each 8 photo couplers total IN_COM signals are 4 IN_COM0 IN_COM3 If you want completely is...

Page 14: ...t Figure 3 6 shows that the digital output is isolated by photo coupler The OUT_POWER is connected commonness to an output circuit The OUT_VDD works external power or 5V PCI of internal board or ISO 5V DC DC Output power according to connector JP2 jumper setting The OUT_VDD connects an anode of Clamp Diode for protecting board s circuits Generally it had better use the external power 5V ...

Page 15: ...xternal Connection OUTPUT can be used by selecting external power or internal power When using an external power supply the J1 s jumper must be disconnected before it is fully isolated In case of internal power supply DC DC converter power can be selected When DC DC converter is used J7 jumper setting 3 2 short is done When using external 5V power supply use J7 jumper setting 1 2 shots 1 Output po...

Page 16: ...al power for external I O composition it can use the board power At this time it can set up by jumper whether or not to use an isolated DC DC Converter power option or board internal power 5V J7 Jumper Setup External Power 5V Use DC DC converter Power 3 1 2 3 1 1 3 5 3 JP7 Jumper Setup Also the GROUND can select whether or not to use a DC DC Converter option GROUND or board GROUND through JP7 jump...

Page 17: ...as follows There isn t a jumper especially to set up for board installation because USB board is a Hot Plug and Plug Play device User Environment Windows 2000 SP4 over Windows XP SP1 over 1 First open the box and put the USB DIO6400 product on safe table 2 The USB DIO6400 board connects to PC through USB A B cable When the cable connect it will be install automatically drive searching at Windows O...

Page 18: ...ecific location Advanced and click Next as in the below figure After find a driver folder of the CD press next button ex F USB DIO6400 driver The driver folder includes a file of usb_dio6400 inf and usb_dio6400 sys that it is necessary fir driver installation A warning message appears during installation here press Continue Anyway button If the installation is completely finished you can show belo...

Page 19: ...y finished you can use the USB DIO6400 board But it confirm a driver normally installation in the following ways Do the following steps to show up the Device Manager window My Computer Properties Hardware Device Manager Universal serial Bus controllers DAQ system USB Digital Input Output Board ...

Page 20: ...USB DIO6400 Users Manual Rev 1 1 20 http www daqsystem com ...

Page 21: ...he board and may be modified for customer s own usage Figure 8 1 When Sample program DIO6400 exe is executed To run the sample application program you need to use API it is a form of client DLL To compile the sample source to make its executable file you have to use Import Library files and header files You can find them in the CDROM To run the exe file the API DLL file USB_DIO6400 DLL must be in ...

Page 22: ...n check Auto DIN Read you confirm it right now 7 DOUT Read button When click the button a value to read an output port is marked to hex number at a window beside DOUT 31 0 The DOUT 63 32 is a reservation window for future 8 DOUT Write button When click this button after a value will be written an output port at a window beside DOUT 31 0 a value of each bit will be display Example If it reads a 000...

Page 23: ...eferences 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 using APIs DAQ system 4 AN342 USB DIO6400 API VER1 0 DAQ system ...

Reviews: