Thank you for purchasing the CONTEC product.
The product consists of the items listed below.
Check, with the following l ist, that yo ur package is c omplete. If y ou discover dam aged or m issing item s,
contact your retailer.
Product Configuration List
- USB terminal [AIO-160802AY-USB]…1
- Interface connector plugs…2
- First step guide…1
- CD-ROM *1 [API-USBP(WDM)]…1
- USB Cable(1.8m)…1
- USB Cable Attachment…1
*1 The CD-ROM contains the driver software and User’s Guide (this guide)
USB terminal
First step guide
Interfac e
connector plug
AIO-160802AY-USB
x 2
USB Cable
(1.8m)
USB Cable
Attachment
CD-ROM
[API-USBP(WDM)]
i
Page 3
Copyright
Copyright 2006 CONTEC CO., LTD. ALL RIGHTS RESERVED.
No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD.
CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this
document. The information in this document is subject to change without notice.
All relevant issues have been considered in the preparation of this document. Should you notice an
omission or any questionable item in this document, please feel free to notify CONTEC CO., LTD.
Regardless of the foregoing statement, CONTEC assumes no responsibility for any errors that may
appear in this document or for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, Windows and Windows NT are trademarks of Microsoft Corporation. Other brand and
product names are trademarks of their respective holder.
AIO-160802AY-USB
ii
Page 4
Table of Contents
Check Your Packag e............................................................................................................................i
Trademarks ............................................................................................................................... .......... ii
Table of Contents ..............................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Product............................................................................................................................... 1
Control Signal Timings.................................................................................................................... 67
Control Signal Timings for Analog Input................................................................................. 67
Control Signal Timings for Analog Output............................................................................... 68
About Calibration............................................................................................................................. 69
AIO-160802AY-USB
v
Page 7
AIO-160802AY-USB
vi
Page 8
1. Before Using the Product
1. Before Using the Product
About the Product
This product is a USB2.0 compatible terminal module that extends the analog I/O function of USB port
of PCs. 8ch/16bits analog inputs and 2ch/16bits analog outputs are employed and signal lines can be
directly connected to the screw terminals in the system. Compact design to match Note PCs and
excellent in mobility as operation is powered by USB bus. This product accompanies Windows driver
and full-fledged data logger software “C-LOGGER”.
Possible to be used as a data recording device for MATLAB, with dedicated libraries.
Features
- Input 10μsec/ch, 8ch, output 10μsec, 2ch, 16bit resolution
Equipped with the analog input (10μsec/ch, 16bit, 8ch), analog output (10μsec, 16bit, 2ch) and digital
I/O (4ch each, LVTTL level)
- Compatible to USB1.1/USB2.0 and not necessary to power t his prod uct exter nally as t he bus po wer is
used.
Compatible to USB1.1/USB2.0 and capable to achieve high speed transfer at HighSpeed (480 Mbps).
Not necessary to power this product externally as the bus power of USB is used.
- Equipped with the buffer memory (1K data) which can be used in either FIFO or ring format
This product includes buffer memory (1K data each for analog input and output) which can be used in
either FIFO or ring form at. Y ou can per form analo g I/O i n the ba ckgroun d, in depende nt of s oftware a nd
the current status of the PC.
- Windows compatible driver libraries are attached.
Using the attached driver library API-USBP(WDM) makes it possible to create appl ications of Windows.
In addition, a diagnostic program by which the operations of hardware can be checked is provided.
- Sampling can be driven by a clock or by various triggers
Sampling can be started and stopped by software or by an external trigger (timing controlled by an
externally input control signal).
The sampling period can be contr olle d by t he inter nal cloc k (hi gh-preci sion t imer i ncluded on the board)
or by an external clock (externally input control signal).
- Terminal connector facilitating wiring
Wiring is easy as the terminal connector (screw type) is used.
- Software-based calibration function
Calibration of analog input/output can be all performed by software. Apart from the adjustment
information prepared bef ore sh ipm ent, additional adjustment inform ation ca n be st or ed acc or din g to t he
use environment.
AIO-160802AY-USB
1
Page 9
1. Before Using the Product
Support Software
You should use CONTEC support software accor d ing to your purpose and development environment.
Driver Library
It is the library software, and which supplies command of hardware produced by our company in the
form of standard Win32 API function(DLL). Using programming languages supporting Win32API
functions, such as Visual Basic and Visual C++ etc., you can develop high-speed application software
with feature of hardware produced by our company.
In addition, you can verify the operation of hardware using Diagno stic progra ms.
CONTEC provides download services (at http://www.contec.com/apiusbp/) to supply the updated
drivers and differential files.
Further details may be found in the help within supplied CD-ROM or the homepage of our company.
< Operating Environment >
OS Windows
Adaptation language Visual C++ .NET, Visual C# .NET, Visual Basic .NET, Visual C++, Visual
Data Logger Software
C-LOGGER is a data logger software program compatible with our analog I/O products. This program
enables the graph displa y of rec orded sig nal data, zoom observati on, fi le sa ving, a nd dynam ic trans fer to
the spreadsheet software “Excel”. No troublesome programming is required.
CONTEC provides download services (at http://www.contec.co.jp/clogger) to supply the updated
drivers.
For details, refer to the C-LOGGER Users Guide or our website.
< Operating Environment >
* Check the CONTEC’s Web site for more information on these options.
AIO-160802AY-USB
2
Page 10
1. Before Using the Product
Customer Support
CONTEC provides the following s upport services fo r you to use CONTEC products more efficiently and
comfortably.
Web Site
Japanese http://www.contec.co.jp/
English http://www.contec.com/
Chinese http://www.contec.com.cn/
Latest product information
CONTEC provides up-to-date information on products.
CONTEC also provides product manuals and various technical documents in the PDF.
Free download
You can download updated driver software a nd diff erenti al files as we ll as sample pr ograms available i n
several languages.
Note! For product information
Contact your retailer if you have any technical question about a CONTEC product or need its price,
delivery time, or estimate information.
Limited One-Year Warranty
CONTEC products are warranted by CONTEC CO., LTD. to be free from defects in material and
workmanship for up to one year from the date of purchase by the original purchaser.
Repair will be free of char ge only w hen thi s device is ret urned fr eight pr epaid with a c opy of t he origi nal
invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office, from
which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and
original products. The warranty is not applicable if the device has been tampered with or damaged
through abuse, mistreatment, neglect, or unreasonable use, or if the original invoice is not included, in
which case repairs will be considered beyond the warranty policy.
How to Obtain Service
For replacement or repair, return the device freight prepaid, with a copy of the original invoice. Please
obtain a Return Merchandise Authorization number (RMA) from the CONTEC group office where you
purchased before returning any product.
* No product will be accepted by CONTEC group without the RMA number.
Liability
The obligation of the warrantor is solely to repair or replace the product. In no event will the warrantor
be liable for any incidental or consequential damages due to s uch defec t or consequence s that arise from
inexperienced usage, misuse, or malfunction of this device.
AIO-160802AY-USB
3
Page 11
1. Before Using the Product
Safety Precautions
Understand the following definitions and precautions to use the product safely.
Safety Information
This document provides safety information u sing the foll owing sym bols to prevent a ccidents res ulting in
injury or death and the destruc tion of equi pment and res ources. Under stand the mean ings of these la bels
to operate the equipment safely.
DANGER
WAR NI NG
CAUTION
DANGER indicates an imminently hazardous situation which, if not avoided, will
result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could
result in death or serious injury.
CAUTION indicates a potentially hazardous situation which, if not avoided, may
result in minor or moderate injury or in property damage.
Handling Precautions
DANGER
Do not use the product wher e it is e xposed t o flam mable or corr osive ga s. Doi ng so m ay resu lt in a n
explosion, fire, electric shock, or failure.
CAUTION
- Do not strike or bend the converter.
Otherwise, the converter may malfunction, overheat, cause a failure or breakage.
- Do not touch the converter's pin parts (USB connector) with your hands.
Otherwise, the converter may malfunction, overheat, or cause a failure.
If the pin parts are touched by someone's hands, clean the parts with industrial alcohol.
- Do not touch the external connector (14 pin plug header) when the power is on.
Otherwise this may malfunction, overheat, cause a failure due to static electricity.
- Make sure that your PC or expansion unit can supply ample power to all the products installed.
Insufficiently energized products could malfunction, overheat, or cause a failure.
- The specifications of this product are subject to change without notice for enhancement and quality
improvement.
Even when using the product continuously, be sure to read the manual and understand the contents.
- Do not modify the product. CONTEC will bear no responsibility for any problems, etc., resulting
from modifying this product.
- Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever
(including damages for loss of business profits) arising out of the use or inability to use this
CONTEC product or the information contained herein.
AIO-160802AY-USB
4
Page 12
1. Before Using the Product
- It may cause a trouble in recognizing and operating the device according to the ki nd of USB hub. I f
you use the USB hub, we encourage you to take advantage of the CONTEC’s product loan ser vice to
confirm operation before purchasing.
FCC PART 15Class A Notice
NOTE
This equipment has been tested and found to comply with the limits for a Class A digital
device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable
protection against harmful interference when the equipment is operated in commercial
environment.
This equipment generates, uses, and can radiate radio frequency energy and, if not installed
and used in accordance with the instruction manual, may cause harmful interference to radio
communications. Operation of this equipment in a residential area is likely to cause harmful
interference at his own expense.
WARNING TO USER
Change or modifications not expressly approved the manufacturer can void the user's
authority to operate this equipment.
AIO-160802AY-USB
5
Page 13
1. Before Using the Product
Environment
Use this product in the following environment. If used in an unauthorized environment, the converter
may overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
Humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive
Inspection
Inspect the product periodically as follows to use it safely.
- Check that the
connector has no
dust or foreign matter
adhering.
Storage
When storing this product, keep it in its o r iginal packing form.
(1) Put the product in the storage bag.
(2) Wrap it in the packing material, then put it in the box.
(3) Store the package at room temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity.
Disposal
When disposing of the product, follow the disposal procedures stipulated under the relevant laws and
municipal ordinances.
AIO-160802AY-USB
6
Page 14
2. Setup
2. Setup
This chapter explains how to set up the product.
What is Setup?
Setup means a series of steps to take before the product can be used.
Different steps are required for software and hardware.
Installing the driver
This section enables you to prepare the software a nd hardware by operating in accordanc e with each s tep
in this chapter using the bundled CD-ROM. Taking the following steps sets up the software and
hardware. You can use the diagnosis program later to check whether the software and hardware function
normally.
Step 1 Setting the Hardware
Step 2 Installing the Software
Step 3 Installing the Hardware
Step 4 Checking Operations with the Diagnosis Program
Uninstall the driver and then set it up again if it cannot be set up properly.
AIO-160802AY-USB
7
Page 15
2. Setup
Step 1 Setting the Hardware
This section describes how to set up the product and how to connect it to a PC.
Name of each parts
LED indicator
LINK Status
Interface connector
USB TypeA
Figure 2.1. Name of each parts (Front side)
Table 2.1. List of Status LED Functions
Name Function Indicator colorLED indicator
ON : Communication established
OFF : Communication unestablished
ON : PC communication established
OFF : PC communication unestablished
LINK Status
USB communication status
GREEN
PC connection status
AIO-160802AY-USB
8
Page 16
2. Setup
Step 2 Initializing the Software
Install software.
The following description assumes the operating system as Windows XP. Although some user
interfaces are different depending on the OS used, the basic procedure is the same.
Points
- If you are using Windows XP or Windows 2000, please log on as Administrator (authorized
account) before proceeding to the following steps.
The following shows the basic flow for installing product.
Initializing the Software
- Installation of
API-USBP(WDM)
Development Environment
- C-LOGGER
Page 9
Connecting the Product
- Connecting the PC
Illustration of Menu Screen
Page 12
Install the Development Environment such
as sample programs and online help, etc.
Setting Properties Using
Device Manager
- Setting the Device Name.
Page 14
Install the utility.
Refer to the user’s gui de .
Refer to the description about CD-ROM.
Install the C-LOGGER.
Points
- Please set up the supplied CD-ROM if it has not been set up. The menu starts automatically.
- If the menu do not start, launch X:AUTORUN.EXE(X:CD-ROM drive) from [Run…] in Start
menu.
- The screen design may be different.
AIO-160802AY-USB
9
Page 17
2. Setup
Installation of API-USBP(WDM) Development Environment
Installation of development environment is namely installing supplied online help and sample program
in all language in order to use API function.
(1) Clicking on “Install Development or Execution Environment”.
[API-USBP(WDM) Installer] dialog box displays.
(2) Selecting “Advanced Analog I/O driver”.
(3) Clicking on “Install” Button.
Please perform installation following the directions on the screen. And thus the installation is
completed.
* The screen design may be different.
AIO-160802AY-USB
10
Page 18
2. Setup
Installing C-LOGGER
Install the data collection software.
(1) Clicking on “C-LOGGER”.
[Choose Setup Language] dialog box displays.
(2) Selecting “English”.
(3) Clicking on “OK” Button.
Please perform installation following the directions on the screen. And thus the installation is
completed.
* The screen design may be different.
AIO-160802AY-USB
11
Page 19
2. Setup
Step 3 Installing the Hardware
Under Windows, information about the converter needs to be detected by the OS. This is called
hardware installation .
To use more than one of this product, make sure to install them one by one, setting each unit after
completing the previous one.
Connecting the Product
(1) Turn on the power to the PC before connecting the product.
(2) When the PC has been up and running, plug the USB interface connector to a USB port in the PC.
The converter can also be connected to the PC via a USB hub.
Figure 2.2. Connecting the PC
CAUTION
It may cause a trouble in recognizing and operating the device accor di ng to the ki nd o f USB hub. I f
you use the USB hub, we encourage you to take advantage of the CONTEC’s product loan ser vice to
confirm operation before purchasing.
(3) USB cable can be attached firmly to the main unit by using a USB cable attachment.
Figure 2.3. Attaching a USB Attachment
CAUTION
The USB cable attachment cannot be used excluding an attached cable.
AIO-160802AY-USB
12
USB port
Page 20
2. Setup
Setting with the Found New Hardware Wizard
(1) The “Found New Hardware Wizard” will be started.
*In Windows Vista, Because the driver's installation is completed by "Installing the Software", it is
not necessary to operate it about the Hardware Wizard.
(2) Select “Install from a list or specific location”, then click on the [Next] button.
Detect setup information from supplied CD automatically for installing USB driver.
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
Point
Please specify the path for supplied CD as follows in the case of failure in detecting automatically.
X:\INF\WDM\AIO (X: CD-ROM drive)
(3) Click on [Finish] button to complete the installation of USB driver.
AIO-160802AY-USB
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
13
Page 21
2. Setup
Setting Properties Using Device Manager
After connecting product with a PC and completing driver installation, open Device Manager and set
properties.
(1) Starting Device Manager.
From [Start] menu, click on [Settings]-[Control Panel]-[System] and then click on [Device
Manager] button in [Hardware] tab.
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
- In the case of Windows 98
Right-click on [My Computer] and select [Properties] to start device manager.
AIO-160802AY-USB
14
Page 22
2. Setup
(2) Setting the Device Name.
Right-clicking on the product name and selecting [Properties] displays [Product Properties].
Open [Common Settings] tab and enter arbitrary name in the editing box for device name. (Default
name also can be used.)
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
* The product-specific number will be displayed as the serial number.
CAUTION
USB driver can not be used without settings. Settings must be performed.
(3) Clicking on [OK] button.
Device name is set by clicking [OK] button.
AIO-160802AY-USB
15
Page 23
2. Setup
Step 4 Checking Operations with the Diagnosis
Program
Use the diagnosis program to check that the product and driver software w ork normally, thereby you can
confirm that they have been set up correctly.
What is the Diagnosis Program?
The diagnosis program diagnoses the states of the product and driver software.
It can also be used as a si mple ch ec k er when an ex t ern al dev i ce i s actu all y co nn ect ed .
Using the “Diagnosis Report” feat ure reports the driver settings, the presence or absence of the product,
I/O status, and interrupt status.
Check Method
To check the analog I/O data, connect to an external signal source.
The figure below shows an example of checking by connecting to an external signal.
The analog input example illustrated below is an example of using analog input channel 0.
Connection diagram
< Analog Input >
- Single-Ended Input
Interface connector
AI00
Signal source
(e.g. Battery etc.)
AGND
CAUTION
Input data remains indeterminate when no input pin is connected. The input pin for the channel n ot
connected to the signal source must be connected to the analog ground.
For details, see “Chapter 3 External Connection”.
< Analog Output >
Interface connector
AO 00
e.g.Tester
AGND
AIO-160802AY-USB
16
Page 24
2. Setup
Using the Diagnosis Program
Starting the Diagnosis Program
Click [Diagnosis] on the Properties page to start the diagnosis program.
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
* You cannot use the counter function with this product.
AIO-160802AY-USB
17
Page 25
2. Setup
Analog input
Select the input channel and input type from the lists.
Input data is plotted on a graph.
Analog output
You can select the desired output channel from the lists.
You can select the DC (constant voltage), sine wave, or square wave as the output data.
Digital I/O
The upper row of circular lamps indicates the digital input states. Red indicates the bit is ON and
brown indicates OFF.
Clicking the lower row of sw itch es tu rns th e d igi tal ou tpu t b its ON or OF F.
AIO-160802AY-USB
18
Page 26
2. Setup
Diagnosis Report
(1) The diagnosis report saves detailed data, including the device settings and settings for each channel,
to a text file and displays the file for you to view.
Clicking [Diagnosis Report] prompts you to specify where to save the report text file.
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
AIO-160802AY-USB
19
Page 27
2. Setup
(2) The diagnosis report contains the following data.
- Version of OS
- Device Information
- File Information
- Initialization, interrupts, I/O state for each channel
Execution time measurement
Clicking [Execution Time Measurement] runs the program to measure API function execution speed.
The operation of this pro gram is expla ine d in " API f unct ion E xecut ion Sp eed M easurement Program" in
Chapter 4.
AIO-160802AY-USB
20
Page 28
3. External Connection
3. External Connection
This chapter describes the interface connectors on the product.
Check the information available here when connecting an external device.
Using the On-terminal Connectors
Connecting a terminal to a Connector
To connect an external device to t his terminal, pl ug the cable from the device i nto the interface connector
(CN1, CN2) shown below.
CN2CN1
Figure 3.1. Interface Connectors and Mating Connectors
AI00 - AI07 Analog input signal. The numbers correspond to channel numbers.
AO00 - AO01 Analog output signal. The numbers correspond to channel numbers.
AGND Common analog ground for analog I/O signals.
DI00 - Dl03 Digital input signal.
DO00 - DO03 Digital output signal.
DGND Common digital ground for digital I/O signals
AIO-160802AY-USB
22
Page 30
3. External Connection
Cable connection
When connecting the product to an external device, you can use the supplied connector plug.
For wiring, strip off approximately 9 - 10mm of the covered part of a wire rod and then insert it to the
opening. After the insertion, secure the wire rod with screws. Compatible wires are AWG 28 - 16.
CAUTION
Removing the connector plug by grasping the cable can break the wire.
Figure 3.4. Connecting an Interface Connector and Connectors That Can Be Used
Analog signal input types are divided into single-ended input and differential input. This produ ct uses
single-ended input fixe d. The followi ng exam ples sh ow how t o connect a nalog i nput sig nals usi ng a flat
cable and a shielded cable.
Single-ended Input
The following figure shows an example of flat cable connection.
Connect separate signal and ground wires for each analog input channel on CN2.
The following figure shows an example of shield cable connection. Use shielded cable if the distance
between the signal source and product is long or if you want to provide better protection from noise. For
each analog input chan nel , co nn ect the co re w ir e to the signal line and connect the shielding to ground.
- If the signal source contains over 1MHz signals, the signal may effect the cross-talk noise between
channels.
- If the product and the signal source receive noise or t he distance be twee n the product a nd t he signa l
source is too long, data may not be input properly.
- An input analog signal should not exceed the maximum input voltage (relate to the product analog
ground). If it exceeds the maximum voltage, the product may be damaged.
- Connect all the unused analog input channels to analog ground .
- The signal connected to an input channel may fluctuate after switching of the multiplexer. In this
case, the cable between this product and the signal source can be shortened or a buffer with a
high-speed amplifier can be placed between the product and the signal sour ce in order to reduce the
fluctuation.
AIO-160802AY-USB
24
Page 32
3. External Connection
Analog Output Signal Connection
This section shows how to connect the analog output signal by using a flat cable or a shielded cable.
The following figure shows an example of flat cable connection.
Connect the signal source and ground to the CN1 analog output.
Ter min al
AO00, AO01
AGND
CN1CableTarg et
Figure 3.7. Analog Output Connection (Flat Cable)
The following figure shows an example of shield cable connection. Use shielded cable if the distance
between the signal source and product is long or if you want to provide better protection from noise. For
each analog input chan nel o n CN1 , c onne ct th e co re wi re to th e sign al lin e and co nn ect th e sh ie ldin g to
ground.
Ter min al
AO00, AO01
AGND
CN1
Shield cable
Tar get
Figure 3.8. Analog Output Connection (Shielded Cable)
CAUTION
- If this product or the connected wire receives noise, or the distance between this product and the
target is long, data may not be outputted properly.
- For analog output signal, the current capacity is ±1mA (Max.). Check the specification of the
connected device before connecting this product.
- Do not short the analog output si gnal t o a nal og gro u nd, di gi tal gr ou nd, and /or p ower li ne. D oi ng s o
may damage this product.
- Do not connect an analog output signal to any other analog output, eith er on this product or on an
external device, as this may cause a fault on this product.
- When the USB cable is plugged, the analog output signal will be -10V.
AIO-160802AY-USB
25
Page 33
3. External Connection
Digital I/O signals Connection
The digital I/O signal can be used .a s the c ontr ol signa l (e xternal tri gger in put si gnal a nd sam pling cl ock
input signal, etc.), too. The following sections show examples.
All the digital I/O signals are LVTTL (3.3VDC) level signals.
Ter min al
10kΩ
Digital Input
Digital Ground
CN1CableTarge t
Figure 3.9. Digital Input Connection
Ter min al
Digital Output
I
=24mA
OL
Digital Ground
CN1CableTarge t
Figure 3.10. Digital Output Connection
CAUTION
Do not short the output signals to analog ground, digital ground, and/or power line. Doing so may
damage the terminal.
Each input accepts 5V TTL level signals.
Reference
For the operation timing when using it as control si gnal, see ”Control Signal Timings” in Chapter 7
“About Hardware - Control Signal Timings”.
CAUTION
The external trigger signal is fixed to the following signal location when using C-LOGGER.
DI00 : External start trigger signal input
* The external stop tripper and external clock cannot be used.
AIO-160802AY-USB
26
Page 34
4. Application Development
4. Application Development
Please reference to online help and sample program when developing applications.
Reference to Online Help
Click on [Programs]-[CONTEC API-USBP(WDM)]-[API-USBP(W32) Help] from [Start] menu.
The information for application development, such as function reference is provided in
[API-USBP(W32) Help].
Detailed introduction to search method for help should be found from [How to navigate Help] in the
help.
For basic usage, please reference to “Tutorial” for help.
Printing Function Reference
Clicking on Print button from
online help prints the page being
displayed. It can be printed
entirely as follows in the case of
referencing to printing function.
As figure shown on the right,
selecting
on Print button prints all the
topics under the mark selected at
a time.
mark and clicking
AIO-160802AY-USB
27
Page 35
4. Application Development
Sample Program
Sample programs are copied in
installation path. (The default path
is Program Files\CONTEC~)
Sample programs in all language
are provided here. To run a sample
program, click on [Programs][CONTEC
API-USBP(WDM)]-[AIO][Sample Name] from [Start] menu.
Distributing Developed Application
Please distribute the developed application with USB driver in supplied CD-ROM.
Created application (including driver) can be freely distributed.
AIO-160802AY-USB
28
Page 36
4. Application Development
Use of utility program
Program for Measuring the Executive Speed of Function
Program for measuring the executive speed of function is a program that can measure the executive time of
some main functions.
To use the program for measuring the executive speed of function, please click the button "Measure tool..."
from CONTEC DIAGNOSIS PROGRAM.
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
Step to use
(1) Select the device to be measured from the device list.
(2) Measure the executive speed of a function by clicking the button with the function name.
Select the number of channels for conversion from the list for AioMultiAi and AioMultiAo.
Input the size of data to be transferred for AioGetAiSamplingData and AioSetAoSamplingData.
Set the transfer data in "kByte".
(3) Terminate the application by clicking the button "Exit".
AIO-160802AY-USB
29
Page 37
4. Application Development
Measuring Analog Input tool
This is a utility that measuring Analog input with FIFO memory infinitely. Retrieves the data from
memory as the event is occurred be cause the number of c onversion data has ar rived at the max imum. The
data of FIFO memory is more visual displayed.
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
256K
Setting Channels, Internal/External Clock, Sampling Clock, Sampling Number that it makes event
occurring. After the sampling clock error event is occurred, setting all of conversion condition.
Step to use
(1) The device used is selected from the list of the device, and a set button is clicked.
(2) Setting the conversion condition on the form of [Setting Analog Input].
Retrieves the data from memory as the event is occurred be cause t he num ber of con version data ha s
arrived at the specified number. Return to original form, after clicked the button of [OK].
AIO-160802AY-USB
30
Page 38
4. Application Development
(3) The measuring is begun after clicked the button of [Start], the conversion' s information is dis played.
The sampling number within FIFO :
That is the conversion data is stored at memory, That is more visual displayed in [Memory
Image].
The sampling number when ev ent :
The event is occurred when the input sampling number within FIFO reach this number.
Total Input Sampling Number :
The total sampling number is stored at memory for this application.
The Measuring will stop when this error as follows.
Sampling clock error :
When the application is measuring with internal clock, sampling clock is too fast to process.
When the application is measuring with External clock, clock cycl e is too fast. Moreover, noise
is be considered .
Buffer overflow :
The memory has overflowed because the conversion speed is too fast compared with the speed
at which data is taken.
(4) The measuring is stopping after clicked the button of [Stop].
Measuring Analog Output tool
This is an analog output and measurement utility able to sample indefinitely using the FIFO memory.
An event is triggered when the remaining conversion data in memory reaches a specified level and this
causes the new output data to be loaded. The util ity also show s a vi sual re presentati on of the data in t he
FIFO memory.
The number of channels, whether to use an internal or external clock, conversion speed, number of times
to sample before generating an event, and number of samples to load at each event can be specified. As
an event is also generated if a sampling clock error occurs, you can use the utility to test the conversion
operation under a range of different conditions.
AIO-160802AY-USB
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
256K
31
Page 39
4. Application Development
Step to use
(1) Use the combo box at the top left of the window to select the device name of the device to use, then
click the [Set] button.
(2) Specify the conversion conditions in the analog input setu p windo w.
An event is triggered and the next block of data is loaded after the number of samples specified in
the settings have been output. Clicking the OK button saves the settings and returns to the previous
window.
(3) The measuring is begun after clicked the button of [Start], the conversion' s information is dis played.
The sampling number within F IF O :
This specifies the number of conversion data values remaining in memory (that have not yet been
output). This is shown visually in the "Memory Image".
Sampling count for triggering event :
An event is triggered when the number of samples remaining in the FIFO reaches the specified
value.
Number of samples to load :
The number of output data values (samples) to load at each event.
The Measuring will stop when this error as follows.
Sampling clock error :
When the application is measuring with internal clock, sampling clock is too fast to process.
When the application is measuring with External cloc k, clock cycle is too fast. moreover, noise is be
considered.
(4) The measuring is stopping after clicked the button of [Stop].
AIO-160802AY-USB
32
Page 40
4. Application Development
Returning to Initial State
This is the method of returning to initial state. It is suggested that you should return to initia l st ate and
perform installation again when the operation is losing stabilization.
Moreover, the method of returning to the initial state is different depending on OS. Please initialize it by
the method of suitable for OS used.
Step1 Uninstalling Driver and the development environment
- Uninstall procedure for Windows 7, Vista, Server 2008
<Uninstall of device driver>
1. Run Device Manager. From [My Computer] - [Control Panel], select [System] and then select the
[Device Manager] tab. (You can also open Device Manager by right clicking on My Computer and
selecting Properties .)
2. All of the hardware that uses the API-TOOL(WDM) driver is registered under the CONTEC
Devices tree.
Open the device tree, select the hardware to uninstall, and then right-click the hardware.
From the popup menu, select [Uninstall].
3. A dialog box opens asking you to confirm whether to uninstall. Select the [Delete the driver
software for this device] checkbox, and then click [OK].
AIO-160802AY-USB
33
Page 41
4. Application Development
<Uninstall of development environment >
Use [My Computer] - [Control Panel] - [Programs and Features] to uninstall the development
environment. Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click
[Uninstall].
* "***" contains the driver category name (AIO, CNT, DIO, etc.).
- Uninstall procedure for Windows XP and Windows 2003 Server
<Uninstall of device driver>
Use [My Computer] - [Control Panel] - [Add and Remove Programs] to uninstall the device driver.
Select [Windows driver package - CONTEC (****)] and then click [Change/Remove].
* "***" contains the driver category name (caio, ccnt, cdio, csmc, etc.).
<Uninstall of development environment>
Use [My Computer] - [Control Panel] - [Add and Remove Programs] to uninstall the development
environment. Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click
[Change/Remove].
* "***" contains the driver category name (AIO, CNT, DIO, etc.).
AIO-160802AY-USB
34
Page 42
4. Application Development
- Uninstall procedure for Windows Me
<Uninstall of device driver>
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the device driver.
Select [CONTEC API-***(WDM) driver] and then click [Add/Remove].
* "***" contains the driver category name (AIO, CNT, DIO, etc.).
<Uninstall of development environment>
Use [My Computer] - [Control Panel] - [Add and Remove Programs] to uninstall the development
environment.
Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click
[Add/Remove].
* "***" contains the driver category name (AIO, CNT, DIO, etc.).
- Uninstall procedure for Windows 98, 98SecondEdition
<Uninstall of device driver>
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the device driver.
Select [CONTEC API-***(WDM) driver] and then click [Add/Remove].
* "***" contains the driver category name (AIO, CNT, DIO, etc.).
<Uninstall of development environment>
Use [My Computer] - [Control Panel] - [Add and Remove Applications] to uninstall the development
environment.
Select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click
[Add/Remove].
* "***" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
Step2 Drawing USB cable from a PC
USB port
Step3 Restarting
AIO-160802AY-USB
35
Page 43
4. Application Development
AIO-160802AY-USB
36
Page 44
5. About C-LOGGER
5. About C-LOGGER
About C-LOGGER
C-LOGGER is a data logger software program compatible with our analog I/O products. This program
enables the graph displa y of rec orded sig nal data, zoom observati on, fi le sa ving, a nd dynam ic trans fer to
the spreadsheet software “Excel”. No troublesome programming is required.
The program is stored on the attached CD-ROM [Driver Library API-USBP (WDM)].
C-LOGGER offers the following functions .
- Sampling and displaying data with high-speed
- Supporting plural windows
- Sending to excel with high-speed
- Supporting 2 data (binary and csv) forms
- Setting acquirement conditions easily with wizard
- Operating intuitively with file viewer and property viewer
- Saving to file automatically for long-time and mass-data acquirement
- Displaying Graph in 2 Screens: Whole and Zoom
- Abundant Function for Customization
For details, refer to the C-LOGGER Users Guide.
AIO-160802AY-USB
37
Page 45
5. About C-LOGGER
AIO-160802AY-USB
38
Page 46
6. Functions
6. Functions
This chapter describes the different functions that can be implemented using the hardware and driver
together. Unless stat ed ot h erw is e, th e dr ive r is assu me d to be AP I-USB P(WD M).
Some of the functions may not be available when the data logger software (C-LOGGER) is in use.
*
Analog Input Function
This product converts analog signals to digital data according to the resolution and stores it in memory.
You can set a variety of conditions for analog input, inc luding the in put chan nel , sa mpli ng period , an d
sampling start/stop conditions.
Analog input processes are classified as follows:
1.Setting the Conversion
Condititions
Resolution
Input Mod e
Channel
Channel
conversion order
Data transfer method
Memory
Clock
Start Condition
Stop Condition
Event
Starting/Stopping Operation
2.
3.Monitoring the Status and
Acquiring Data
4.Reset
AIO-160802AY-USB
Start
Stop
Status
Sampling
Transfer
Data aquisition
Status
Memory
39
Page 47
6. Functions
1. Setting the Conversion Conditions
First, set the conditions for executing analog input.
Resolution
”Resolution” signifies the number of bits used by an analog input device to represent analog signals. The
higher the resolution, the more f ine ly th e vol tag e range is segmented, allowing the device to convert
analog values to digital equivalents more precisely.
A device with a resolution of 12-bit divides the range width into 4096 segments.
When the device covers the range of 0 - 10V, the minimum unit of converted voltages is
10÷4096 ≈ 2.44mV.
If the device has a resolution of 16-bit, it is 10÷65536 ≈ 0.153mV instead.
AIO-160802AY-USB :The resolution is 16-bit.
Input Mode
”Input Mode” indicates the method of connecting analog input signals.
The input modes available are single-ended input and differential input.
The single-ended input mode is suitable for the environment in which the potential difference between
the signal source and ground and noise components can be ignored. For the environment in which they
cannot be ignored, the differential input mode is suitable. The number of channels available in
differential input mode is half that in single-ended input mode.
Software setup of the input mode is not required as this product uses the single-ended input mode fixed.
Channel
”Channel” represents each point of analog input.
For individual channel numbers, see “Using the On-board Connectors” to “Connector Pin Assignment” in
Chapter 3 "External Connection".
You can specify an arbitrary number of points of analog input by setting the channels by means of software.
AIO-160802AY-USB
40
Page 48
6. Functions
Channel conversion order
Normally, when performing conversion for more than one channel at each sampling, conversion is
performed consecutively starting from channel 0.
Software setup is not required as this product uses a fixed channel conversion priority.
Range
”Range” means the range of voltages at which analog input can be performed.
Software setup of the range is not required as this product uses a fixed range of voltages.
AIO-160802AY-USB : ±10V
AIO-160802AY-USB
41
Page 49
6. Functions
Data transfer method
A device buffer mode is available, which uses the device's or driver's conversion data storage memory.
- Device buffer mode
When conversion starts, data is saved in the device buffer (memory on the device itself or in the
driver).
The device buffer can operate as FIFO or ring memory.
The application calls an API function at an appropriate timing and fetches the conversion data from
the device buffer.
The device buffer mode provides function that allows the number of items of conversion data using
the number of sampling times as a unit to obtain the number of items of conversion data directly
from the voltage.
Device buffer mode
AIO-160802AY-USB
42
Page 50
6. Functions
Memory format
This product uses device buffer tra nsf er m ode; it does not requ ire so ft ware set up o f the mem ory form at.
Device buffer mode
- FIFO format
In the FIFO (First In First Ou t) fo r mat, inp ut dat a ite ms a re read f ro m memory in th e sa me ord er in
which they were written to th e memory. Inpu t da ta items are fed out of the memory sequentially,
where the oldest one is always read from the memory. The status monitor and application
notification functions are provided, w hich check an d report the stat e in which the m emory has stor ed
a fixed amount of data or in which the memory has become full.
The FIFO memory is used to obtain all input data from analog input in a short or infinite period of
time.
- Ring format
In the ring format, the memory contains storage areas arranged in a ring. Input data items are written
to the memory sequentially. When it stores data exceeding the limit, it overwrites the area storing
the previous item of input data. The status monitor and application notification functions are
provided, which check and repor t the state in which data has been writte n to certain areas of m emory.
The ring memory is used to obtain data where conversion has stopped due to some event, usually
without obtaining data in the normal state.
Clock
The sampling clock controls the sampling frequency. You can select either the internal sampling clock,
external sampling clock.
- Internal sampling clock
The clock signal from the on-board clock generator is used.
- External sampling clock
The edge of the digital signal input from an external device is used for the sampling clock.
AIO-160802AY-USB
43
Page 51
6. Functions
Start Condition
The condition for controlling the start of sampling can be selected from among software, input data
comparison, an external trigger. The conditions for controlling the start and stop of sampling are
completely independent of each other; they can be set separately.
- Software
The product starts sampling and storing input data to memory immediately after the operation start
command is issued.
- Input data comparison
When the operation start command is issued, the product compares the analog signal input through a
specified channel to the value of the preset comparison level. If the analog signal satisfies the
condition, the product starts storing input data.
Level comparison conditions are set as two conditions: level and direction.
The above sketch shows that the level comparison condition is satisfied in the rising direction.
The start condition is satisfied when the analog signal at the specified c hannel passes the comparison
level in the rising direction. Input data item s are stored to mem ory, starting with those at solid dots.
The above sketch shows that the level comparison condition is satisfied in the falling direction.
The start condition is satisfied when the analog signal at the specified c hannel passes the comparison
level in the falling direction. Input data items are stored to memory, starting with those at solid dots.
If you set the level comparison dir ections t o both directi ons, the start c ondition is satis fied whe n the
analog signal passes the level both in the rising and falling directions.
- External trigger
This product starts waiting for an external control signal as soon as the operation start command is
output. Sampling and data transfer to memory start when the specified edge (rising edge or falling
edge) is input from the external control signal.
AIO-160802AY-USB
44
Page 52
6. Functions
Stop condition
The condition for controlling the stop of sampling can be selected from among the last sampling count,
input data comparison , an ex te rn al t rigg er , an d sof tw ar e abo rt .
The product stops sampling whenever an error occurs irrespective of the stop condition setting.
- Last sampling count
This product stops samplin g a fter st ori n g i nput dat a t o m em ory for the s peci fie d n um ber o f tim es of
sampling.
- Input data comparison
Once the product has started sampling, it compares the analog signal input through a specified
channel to the value of the preset comparison level. If the analog signal satisfies the condition, this
product stops sampling.
Level comparison conditions are set as two conditions: level and direction.
The above sketch shows that the level comparison condition is satisfied in the rising direction.
The stop condition is satisfied when the analog si gnal at the specified c hannel passes the c omparison
level in the rising direction. Input data items are stored to memory, ending until those at solid dots.
The above sketch shows that the level comparison condition is satisfied in the falling direction.
The stop condition is satisfied when the analog si gnal at the specified c hannel passes the c omparison
level in the falling direction. Input data items ar e stored to memory, ending until those at solid dots
If you set the level comparison dir ections t o both directi ons, the start c ondition is satis fied whe n the
analog signal passes the level both in the rising and falling directions.
- External trigger
This product starts waiting for an external control signal after the specified number of samples have
been performed. Sampling stops when the specified edge (rising edge or falling edge) is input from the
external control signal.
AIO-160802AY-USB
45
Page 53
6. Functions
Event
”Event” works as a function for reporting the occurrence of a certain product state to the application.
The following events can be used in combination depending on the specifications and purpose of the
application.
- “AD conversion start condition satisfied” event
This event occurs wh en th e AD con ve rsi on st a rt cond ition is satisfied. The event is nullified when
the conversion start condition is “software”.
- Device operation stop ev en t
This event occurs upon the completion of all the operation.
- “Stored specified sampling times” event
This event occurs when sampling has been performed for the number of times set by software.
This event can only be used in device buffer mode.
- Overflow event
This event occurs at an attempt to store input data with the memory full.
- Sampling clock error event
This event occurs when conversion stops as an error occurs due to a sampling clock period that is too
short.
- AD conversion error event
This event occurs when co nv ers io n stop s due to an AD con ve rs ion e rr o r.
2. Starting/Stopping Operation
Sampling is started by the software command.
Once started, sampling can be stopped by the software command at any timing.
3. Monitoring the Stat us and Ac qui ri ng Data
Software commands are used to monitor the operation status of t he device and to ac quire input da ta from
memory. Status monitoring and data acquisition can be performed even during sampling.
Status
The current state of the device can be checked by obtaining the device status.
The following types of device status are available:
- Device operating
The “device operating” status remains ON, after the execution of the sampling start command until
this product completes conversion, aborts operation due to an error, or stops sampling in response to
the command.
- Waiting for start trigger
This status remains ON, after this product starts sampling until the start trigger is input, if the
conversion start condition is an external trigger or level comparison. The status is set to OFF when
the input trigger is input to sta rt co n ver sion .
AIO-160802AY-USB
46
Page 54
6. Functions
- Specified sampling data stored
This status is set to ON when input data stored in memory has reached the amount corresponding to
the preset number of times of sampling.
If the memory format is FIFO, the status is set to OFF when the amount of input data in the memory
falls below the value corresponding to the preset number of times of sampling as data is acquired.
Once the status is set to ON when the memory format is ring, it remains ON until it is reset.
- Overflow
An overflow error occurs when an attempt is made to store input data to memory while it has been
full of input data.
When the memory format is FIFO, this product stops conversion.
When the memory format is ring, this produc t cont inues conversion while overwriting existing data
with new one.
- Sampling clock error
This error occurs when the sampling clock period is too short.
- AD conversion error
If the “device operating” status remains ON (without terminating conversion) for an extended
period of time, the driver regards that state as an operation error and sets this status to ON. This
error stops sampling.
Sampling
The number of sampled items of input data stored in memory can be obtaine d by the software command.
This command can only be used in device buffer mode.
Data acquisition
When using the device buffer, the conversion data stored in memory can be retrieved using a software
command.
The figure below shows the corresp ond ence betwe en th e sampling count and the conversion channel for
the conversion data stored in memory.
Input data is acquired differently depending on the memory format used.
AIO-160802AY-USB
47
Page 55
6. Functions
- Data acquisition in FIFO format
When FIFO memory is used, the oldest data is always read first.
The following sketch shows an image of data acquisition in FIFO format.
When data is acquired from the memory, the free memory space increases by that data size. When
data is acquired next, the oldest one of the e xisti ng data item s is t ake n from t he m emory i n the same
way.
The FIFO memory deletes data once that data is acquired.
- Data acquisition in ring format
When ring memory is used, data is read always with respect to the curre nt i nput dat a write posit ion.
The following sketch shows an image of data acquisition in ring format.
The sampling count obtained is always the number of times of sampling for up to the latest data
(shaded portion below).
The larger the number of samples taken, the older the data item acquired first.
As the ring memory retains data even after that data is acquired, you can fetch the same data any
number of times.
AIO-160802AY-USB
48
Page 56
6. Functions
Input data
The following equation represents the relationship between input data and voltage.
Voltage = Input data x (Max. range value – Min. range value) / Resolution + Min. range value
The value of resolution for the 16-bit device is 65 536 .
The table below shows the relationship between input data and voltage in the ±10V range.
Voltage Conversion data (16-bit)
+9.99970V 65535
: :
0.00030V 32769
0V 32768
-0.00030V 32767
: :
-10.000V 0
Ex.: When input data 49152 is input at a res olution of 16-bit in th e ± 10V range
Voltage = 49152 x (10 - (-10)) ÷ 65536 + (-10)
= 5.0
4.Reset
Various states can be reset by executing the following reset commands:
Status
This command resets the sampling clock error status and AD conversion error status.
Memory
This can only be used when the transfer mode is set to device buffer mode.
This command resets the following memory related states.
- Resets the conversion data in memory.
- Resets the sampling count to 0 when a stop trigger is input.
- Resets the buffer overflow status.
- Resets the status information for the specified data save count.
AIO-160802AY-USB
49
Page 57
6. Functions
n
Analog Output Function
This product converts digital data to analog signals according to the resolution.
You can set a variety of conditi ons for ana log outp ut, includi ng the output c hannel, sam pling peri od, and
sampling start/stop conditions.
Analog output processes are classified as follows:
1.Setting the Conversion
Condititions
Starting/Stopping Operation
2.
3.Monitoring the Status and
Acquiring Data
Resolution
Channel
Range
Output data
Data transfer method
Memory
Repeat
Setting data
Start
Stop
Status
Sampling
Repeat
Clock
Start Conditio
Stop Condition
Event
4.Reset
Status
Memory
AIO-160802AY-USB
50
Page 58
6. Functions
1. Setting the Conversion Conditions
First, set the conditions for executing analog output.
Resolution
"Resolution" signifies the number of bits used by an analog output device to represent analog signals.
The higher the resolution, the more finely the voltage range is segmented, allowing the device to convert
digital values to analog equivalents more precisely.
A device with a resolution of 12-bit divides the range width into 4096 segments.
When the device covers the range of 0 - 10V, the minimum unit of converted voltages is
10÷4096 ≈ 2.44mV.
If the device has a resolution of 16-bit, it is 10 ÷ 65536 ≈ 0.153mV instead.
AIO-160802AY-USB : The resolution is 16-bit.
Channel
"Channel" represents each point of analog output.
For individual channel numbers, see "Using the On-board Connectors" to "Connector Pin Assignment"
in Chapter 3 "External Connection".
You can specify an arbitrary number of points of analog output by setting the channels by means of
software.
Range
"Range" means the range of voltages at which analog output can be performed.
Software setup of the range is not required as this product uses a fixed range of voltages.
AIO-160802AY-USB : ±10V
AIO-160802AY-USB
51
Page 59
6. Functions
Output data
Output data = ((Voltage - Min. range value) x Resolution) / (Max. range value - Min. range value)
The value of resolution for the 16-bit device is 65 536 .
The table below shows the relationship between output data and voltage in the ±10-V range.
Voltage Output data(16-bit)
+9.99970V 65535
: :
0.00030V 32769
0V 32768
-0.00030V 32767
: :
-10.000V 0
Ex.: When 3V is output at a resolution of 16-bit in the ±10-V range
Output data = (3 - (-10))
65536 ÷ (10 - (-10))
x
= 42598.4 *
* The value that can be set as output data at this time is an integer. Select "42598" or "42599" as the
output data.
The analog signal corresponding to the output data contains an error as follows:
- Output data "42598" converted to: 2.9998 V
- Output data "42598" converted to: 3.0001 V
This error is a conse qu en tia l e rro r oc cu rrin g wh en outp ut da t a is obta in ed fro m an exp e ct ed an a log
value.
AIO-160802AY-USB
52
Page 60
6. Functions
Data transfer method
A device buffer mode is available, which uses the device's or driver's conversion data storage memory.
- Device buffer mode
The application output data is first store d in the device buffer (memory on the device itself or in the
driver).
When conversion starts , th e d evic e st arts outp utt ing th e outp ut d ata .
The device buffer can operate as FIFO or RING memory.
The device buffer mode provides a function that allows the number of items of conversion data
using the number of sampling times as a unit to set the number of items of conversion data directly
using the voltage.
Device buffer mode
AIO-160802AY-USB
53
Page 61
6. Functions
Memory format
This product uses device buffer tra nsf er m ode; it does not requ ire so ft ware set up o f the mem ory form at.
Device buffer mode
- FIFO format
Use FIFO format if you wish to output a continuous arbitrary analog ou tput like that sho wn below.
When using FIFO format, writing of conversion data to memory is always performed from after the
most recent data and DA conversion is performed on the oldest data in memory.
You can write to memory during analog output operation.
An error occurs if the volume of data exceeds the memory size. However, this error does not stop
analog output if it is in prog ress .
AIO-160802AY-USB
54
Page 62
6. Functions
- Ring format
Use ring format if you wish to output a repeated pattern like that shown below.
When using ring format, write the data for one complete cycle of the output waveform before
starting operation.
You cannot write to the memory during its operation of analog output.
DA conversion data is output continuously in the sequence in which the ring for mat data is stored.
* Although the figure shows a single analog output channel, output from multiple channels is als o
possible.
AIO-160802AY-USB
55
Page 63
6. Functions
Setting data
Use a software command to save the data in memory.
The figure below shows the relationship between the conversi on data stored in m emory and the sampling
count and conversion channels.
The procedure for setting the conversion data is different depending on the memory format being used.
- Procedure for FIFO format
When using FIFO format, setting data to memory is always performed from the most recent data.
New data can be added during conversion.
- Procedure for RING format
When using ring format, a ring memory area large enough for the data to be set is reserved.
Data cannot be modified during DA conversion.
AIO-160802AY-USB
56
Page 64
6. Functions
Clock
The sampling clock controls the sampling frequency. You can select either the internal sampling clock, or
external sampling clock. The sampling clock is selected by means of software.
- Internal sampling clock
The clock signal from the on-board clock generator is used.
- External sampling clock
The edge of the digital signal input from an external device is used for the sampling clock.
Start Condition
The condition for controlling the start of sampling can be selected from among s oftware, e xternal tri gger.
The conditions for controlling the start and stop of sampling are completely independent of each other;
they can be set separately.
- Software
This product starts sampling and storing input data to memory immediately after the operation start
command is issued.
- External trigger
This product starts waiting for an external control signal as soon as the operation start command is
output.
Sampling and data transfer from memory start when the specified edge (rising edge or falling edge)
is input from the external control signal.
Stop Condition
The condition for controlling the stop of sampling can be selected from among the last sampling count,
an external trigger, and software abort.
This product stops sampling whenever an error occurs irrespective of the stop condition setting.
- Last sampling count
This product stops samplin g a fter st ori n g i nput dat a t o m em ory for the s peci fie d n um ber o f tim es of
sampling.
- External trigger
This product starts waiting for an external control signal after t he spec ified n um ber of sam ple s have
been performed. Sampli n g sto p s whe n t he spe ci fie d edge (rising edge or falling edge) is input from
the external con tr ol sign al .
- Software
Sampling continues indefinitely in this mode. Sampling only stops in response to a software
command or an error.
AIO-160802AY-USB
57
Page 65
6. Functions
Event
“Event” works as a function for reporting the occurrence of a certain product state to the application.
The following events can be used in combination depending on the specifications and purpose of the
application.
- “DA conversion start condition satisfied” event
This event occurs wh en th e DA con ve rsi on st a rt cond ition is satisfied. The event is nullified when
the conversion start condition is “software”.
- “Repeat end” event
This even occurs whenever a repetition is completed.
- “End of device operation” event
This event occurs when the entire operation including repetitions is completed.
- “Specified number of output samples complete" event
This event occurs when the number of output samples specified by software have been completed.
This event is used when the device buffer mode is used for data transfer.
- Specified number of transfers event
This event occurs each time a specified number of samples (set by software) has been completed.
When FIFO format is used, the event occurs when the remaining number of samples falls below a
specified level. The event occurs repeatedly as long as this condition is satisfied.
When ring memory for mat is use d, the ev en t occu rs when th e number of samples output f ro m
memory reaches a specified value. The event occurs for the specified number of repetitions.
This event is used when the user buffer mode is used for data transfer.
- Sampling clock error event
This event occurs when conversion stops as an error occurs due to a sampling clock period that is too
short.
- DA conversion error event
This event occurs when co nv ers io n stop s due to an DA con ve rs ion e rr o r.
2. Starting/Stopping Operation
Analog output operation is started by a software command (the analog output start command).
Similarly, you can stop analog output at any time using a software command (the analog output stop
command).
AIO-160802AY-USB
58
Page 66
6. Functions
3. Monitoring the St at us and Ac qui ri ng Data
You can use a software command to check the status of analog output operation and of the output data
stored in memory.
The current state of the device can be checked by obtaining the device status.
The following types of device status are available:
- Device operating
The “device operating” status remains ON, after the execution of the sampling start command until
this product completes conversion, aborts operation due to an error, or stops sampling in response to
the command.
- Waiting for start trigger
This status remains ON, after this product starts sampling until the start trigger is input, if the
conversion start condition is an external trigger or level comparison. The status is set to OFF when
the input trigger is input to sta rt co n ver sion .
- Specified number of data outputs
This status turns ON when the output data set in memory has reached a predefined number of
samples.
- Sampling clock error
This error occurs when the sampling clock period is too short.
- DA conversion error
If the “device operating” status remains ON (without terminating conversion) for an extended
period of time, the driver regards that state as an operation error and sets this status to ON. This
error stops sampling.
Sampling
The number of sampled items of output data transferred from in memory can be obtained by the software
command.
This command can only be used in device buffer mode.
4.Reset
Various states can be reset by executing the following reset commands:
Status
This command resets the sampling clock error status and AD conversion error status.
Memory
This can only be used when the transfer mode is set to device buffer mode.
This command resets the following memory related states.
- Resets the conversion data in memory.
- Resets the repeat count to 0.
- Resets the sampling count to 0 when a stop trigger is input.
- Resets the status information for the specified data save count.
AIO-160802AY-USB
59
Page 67
6. Functions
Digital Input Function
Input bit
Individual digital input points are called input bits.
When the number of input points of a device is 4, the bits are determined as bit 0 - bit 3.
Bit 3
Bit 2 Bit 1
Bit 0
Input in Bits
The state 1 (ON) or 0 (OFF) of each input bit can be obtained by specifying the bit.
Input in Bytes
Individual input bits can be input in byte units.
When the number of input points of the device is 4, the individual input bits are arranged as shown below
and the byte data to be input is a value between 0 and 15 depending on the states of the bits.
EX. Input of bit 3 (OFF), bit 2 (ON), bit 1 (OFF), bit 0 (ON)
Byte data = 05(5H)
Bit 3Bit 2Bit 1Bit 0
0(OFF) 1(ON)1(ON)
0(OFF)
Digital filter
A digital filter can be used on the input bits.
The filter time can be set to "don't use", 1μs by software.
AIO-160802AY-USB
60
Page 68
6. Functions
Digital Output Function
Output bit
Individual digital output points are called output bits.
When the number of output points of a device is 4, the bits are determined as bit 0 - bit 3.
Bit 3
Bit 2 Bit 1
Bit 0
Output in Bits
The state of each output bit can be changed to ON or OFF by specifying the bit and setting it to 1 or 0.
Output in Bytes
Individual output bits can be output in byte units.
When the number of output points of the device is 4, the individual output bits are arranged as shown
below and byte data to be output is a value between 0 and 15.
Ex. Output of bit 3 (ON), bit 2 (OFF), bit 1 (ON), bit 0 (OFF)
Byte data = 10(AH)
Bit 3
Bit 2 Bit 1
1(ON) 0(OFF) 1(ON)
Bit 0
0(OFF)
AIO-160802AY-USB
61
Page 69
6. Functions
AIO-160802AY-USB
62
Page 70
7. About Hardware
7. About Hardware
Hardware specification
Table 7.1. Specification (1/2)
Item Specification
Analog input
Isolated specification Unisolated
Input type Single-Ended Input
Number of input
channels
Input range Bipolar ±10V
Maximum input
rating
Input impedance 1MΩ or more
Resolution 16bit
Non-Linearity error ±12LSB
Conversion speed 10μsec/ch (Max.) *3
Buffer memory 1K data *8
Conversion start
trigger
Conversion stop
trigger
External start signal
External stop signal
External clock signal LVTTL level (Selecting the rising / falling to the DI02-pin by the software)
Analog output
Isolated specification Unisolated
Number of output
channels
Output range Bipolar ±10V
Absolute max. output
Weight 90g (Not including the USB cable, attachment)
Attached cable USB cable 1.8m
Compatible wires AWG28 - 16
*1 The non-linearity error means an error of approximately 0.1% occurs over the maximum range at 0°C and 50°C
ambient temperature.
*2 When using the signal source equipped with the high-speed operational amplifier
*3 This numerical displays the conversion speed for A/D, D/A converter. The minimum executable sampling cycle
depends on the operating condition of the terminal.
*4 You cannot use both the DI00 / DI01 / DI02-pin of digital input feature and the external start / stop signal / external
clock input simultaneously.
*5 Each input accept TTL (5VDC) level signals.
*6 The USB transfer speed depends on the host PC environment used (OS and USB host controller).
*7 As a USB hub is also counted as one device, you cannot just connect 127 USB terminals.
*8 1K Data (1024 data) of buffer memory are implemented.
If (the number of channels) x (the number of samples)
rate of 10
μSEC/ch is availablel.
However, the actual amount of data that can be stored in the buffer memory will decrease: one unit of data of the
buffer memory is consumed per sampling as the internal status.
Unisolated input 4ch (LVTTL positive logic) *4*5
Unisolated output 4ch (LVTTL positive logic)
127 terminals (Max.) *7
5VDC 450mA
64(W) x 62(D) x 24(H) (exclusive of protrusions)
⊆ 1024 data, a sampling with an A/D converter’s conversion
AIO-160802AY-USB
64
Page 72
7. About Hardware
The following is an image of the buffer memory:
1K Data(1024 Data)
When the
number of
channels is
one
Status
data
Status
data
0ch
Status
data
0ch
0ch
Status
data
Status
data
0ch
0ch
When the
number of
channels is
two
When the
number of
channels is
three
Consequently, the relationship among the number of channels, the number of samplings, and the sampling clock
that can be sampled as described in the specification of the hardware is as follows:
Status
data
0ch
Status
data
0ch
Status
data
1ch
1ch
0ch
1ch
Status
data
2ch
0ch
Status
data
0ch
Status
data
0ch
Unused
1ch
1ch
2ch
Sampling channel number of channel number of sampling Sampling clock
In the driver data software, the buffer memory is expanded to a 256 x 1024 data.
However, if the number of samplings that exceeds the table above is specified, an adjustment of the sampling clock
is required for the data transfer process from the device to the PC, which may prevent a sampling with the
sampling clock above.
Physical dimensions
9
64
Figure 7.1. Physical dimensions
AIO-160802AY-USB
62
24
14
[mm]
9
65
Page 73
7. About Hardware
Block Diagram
8ch Single-end
Analog Inputs
CN2
Multiplexer
OP
Amplifer
A/D
Converter
USB Connector
Figure 7.2. Block Diagram
4 Digital Input / 4 Digital Output
2ch Anal og Outputs
CN1
OP
Amplifer
DA
Converter
FPGA
USB 2.0
Controller
&
CPU
Buffer
DC/DC
converter
AIO-160802AY-USB
66
Page 74
7. About Hardware
Control Signal Timings
Control Signal Timings for Analog Input
Figures 7.3, 7.4, 7.5, and Table 7.2 show the control signal timings for the analog input function.
External Smapling Clock Input
t
Sample / Hold
Conversion start
Figure 7.3. Timing Chart of External Sampling Clock
External Smapling Start Trigger Input
Figure 7.4. Timing Chart of Sampling Start Control Signal
External Smapling Stop Trigger Input
Figure 7.5. Timing Chart of Sampling Stop Control Signal
DEH
t
DEC
t
t
SRS
HRS
t
t
SFS
HFS
t
t
SRP
HRP
t
t
SFP
HFP
Table 7.2. Control Signal Timings
Parameter SymbolTimeUnit
Delay from external sampling clock cycle to first channel hold t
Delay from external sampling clock cycle to first channel A/D conversion start
pulse
Set up time of sampling start (Rising edge) t
Hold time of sampling start (Rising edge) t
Set up time of sampling start (Falling edge) t
Hold time of sampling start (Falling edge) t
Set up time of sampling stop (Rising edge) t
Hold time of sampling stop (Rising edge) t
Set up time of sampling stop (Falling edge) t
Hold time of sampling stop (Falling edge) t
CAUTION
The times listed in Table 7.2 are for standard operating conditions.
AIO-160802AY-USB
t
DEH
DEC
SRS
HRS
SFS
HFS
SRP
HRP
SFP
HFP
100 nsec
100 nsec
100 nsec
100 nsec
100 nsec
100 nsec
100 nsec
100 nsec
100 nsec
100 nsec
67
Page 75
7. About Hardware
Control Signal Timings for Analog Output
Figures 7.6, 7.7, 7.8, and Table 7.3 show the control signal timings for the analog output function.
External Smapling Clock Input
t
DEH
Conversion start
Figure 7.6. Timing Chart of External Sampling Clock (Analog output)
External Smapling Start Trigger Input
Figure 7.7. Timing Chart of Sampling Start Control Signal
External Smapling Stop Trigger Input
Figure 7.8. Timing Chart of Sampling Stop Control Signal
Table 7.3. Control Signal Timings
Parameter Symbol TimeUnit
Delay from external sampling clock to actual start t
Settling time tWS 10000nsec
Set up time of sampling start (Rising edge) t
Hold time of sampling start (Rising edge) t
Set up time of sampling start (Falling edge) t
Hold time of sampling start (Falling edge) t
Set up time of sampling stop (Rising edge) t
Hold time of sampling stop (Rising edge) t
Set up time of sampling stop (Falling edge) t
Hold time of sampling stop (Falling edge) t
CAUTION
The times listed in Table 7.3 are for standard operating conditions.
t
DEC
t
t
HRS
SRS
t
SFS
t
HFS
t
t
SRP
HRP
t
t
SFP
HFP
100 nsec
DCS
100 nsec
SRS
100 nsec
HRS
100 nsec
SFS
100 nsec
HFS
100 nsec
SRP
100 nsec
HRP
100 nsec
SFP
100 nsec
HFP
AIO-160802AY-USB
68
Page 76
7. About Hardware
About Calibration
This product is calibrat ed bef ore s hipp ing. If the factor y de fa ult acc uracy m ay not be a ccepta ble t o yo ur
usage environment, you can use the calibration program to calibrate analog input yourself.
Starting the calibration program
Click the [Calibration] button on the property page for the device to start the calibration program.
* The name of the connected
product will be displayed.
- AIO-160802AY-USB
* The product-specific number will be displayed as the serial number.
Proceed with connecting the calibration equipment and performing the calibration in accordance with
the instructions disp laye d by th e ca lib ra tion prog ra m.
Analog input calibration
Analog input calibration requires a reference voltage generator.
As the analog input has 16-bit resolu ti on, use a refer ence voltage generator with a precision of at least 5
digits after the decimal point.
Calibrate one channel only for each range that you use.
Analog output calibration
Analog output calibration requires a digital multimeter.
As the analog output has 16-bit resolution, use a multimeter with a precision of at least 5 digits after the
decimal point.
Calibrate each channel separately for each range that you use.
Factory setting
You can use the calibration program to restore the factory calibration settings.
If the prescribed performance cannot be achieved, contact your retailer.
AIO-160802AY-USB
69
Page 77
AIO-160802AY-USB
User’s Guide
CONTEC CO., LTD.December 2011 Edition
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan
Japanese http://www.contec.co.jp/
English http://www.contec.com/
Chinese http://www.contec.com.cn/
No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD. [12062011]
[07192006] Management No. A-51-248
[12062011_rev8] Parts No. LYGF038
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.