background image

5. About Software 

 

 

64 

AO-1604CI2-PCI 

Using Sample Programs 

Sample programs have been prepared for specific basic applications. 

To use each sample program, enter its device name set by API-TOOL Configuration. 

Use these sample programs as references for program development and operation check. 

The sample programs are stored in \Program Files\CONTEC\API-PAC(W32)\Aio\Samples. 

 

Running a Sample Program 

(1)  Click on the [Start] button on the Windows taskbar. 

(2)  From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “Aio” – “SAMPLE…”. 

(3)  A sample program is invoked. 

Summary of Contents for AO-1604CI2-PCI

Page 1: ...PC HELPER Isolated Analog Output Board for PCI AO 1604CI2 PCI User s Guide CONTEC CO LTD...

Page 2: ...discover damaged or missing items contact your retailer Product Configuration List Board AO 1604CI2 PCI 1 First step guide 1 CD ROM 1 API PAC W32 1 Warranty Certificate 1 Serial number label 1 1 The C...

Page 3: ...ge 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...

Page 4: ...ons 6 Environment 7 Inspection 7 Storage 7 Disposal 7 2 SETUP 9 What is Setup 9 Using the Board under Windows Using the Driver Library API PAC W32 9 Using the Board under Windows Using Software Other...

Page 5: ...mptoms and Actions 34 If your problem cannot be resolved 34 3 EXTERNAL CONNECTION 35 How to connect the connectors 35 Connector shape 35 Connector Pin Assignment 36 Analog Output Signal Connection 37...

Page 6: ...69 Accessing the Help File 70 Using Sample Programs 70 Uninstalling the driver 70 6 ABOUT HARDWARE 71 For detailed technical information 71 Hardware specification 72 Block Diagram 74 Timing of Sampli...

Page 7: ...vi AO 1604CI2 PCI...

Page 8: ...channel provide electric isolation between channels as well as between the inside of the board PC and output pins Simultaneous output of voltage to a specified channel or all channels This product can...

Page 9: ...on the supported OS applicable language and new information please visit the CONTEC s Web site Linux version of analog I O driver API AIO LNX Stored on the bundled CD ROM driver library API PAC W32 T...

Page 10: ...wo 37 pin D SUB Connectors PCB37PS 0 5P 0 5m PCB37PS 1 5P 1 5m D SUB37P Male Connector Set 5pieses CN5 D37M Accessories Option Screw Terminal M3 x 37P EPD 37A 1 2 Screw Terminal M3 5 x 37P EPD 37 1 Ge...

Page 11: ...nly when this device is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office from which it was purchased Th...

Page 12: ...estruction of equipment and resources Understand the meanings of these labels to operate the equipment safely DANGER DANGER indicates an imminently hazardous situation which if not avoided will result...

Page 13: ...s hands clean the terminals with industrial alcohol Do not install or remove this product to or from the slot while the computer s power is turned on Otherwise this product may malfunction overheat or...

Page 14: ...rd has no dust or foreign matter adhering Check that the bus connector of the board and its cable have been plugged correctly The gold plated leads of the bus connector have no stain or corrosion Stor...

Page 15: ...1 Before Using the Product 8 AO 1604CI2 PCI...

Page 16: ...are and hardware You can use the diagnosis program later to check whether the software and hardware function normally Step 1 Installing the Software Step 2 Setting the Hardware Step 3 Installing the H...

Page 17: ...f this manual This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 5 About Software Chapter 6 About Hardware For using the board under an OS other than Windows and Linux see...

Page 18: ...ove the conventional product version of API AIO 98 PC in the ease of use and functionality It is advisable to use API AIO WDM for you to use an analog I O device API AIO WDM will support new OS and de...

Page 19: ...rs automatically If the panel does not appear run CD ROM drive letter AUTORUN exe 3 Click on the Install Development or Execution Environment button When using the Windows Vista driver is automaticall...

Page 20: ...ption Usage of driver library 2 Select the Advanced Analog I O driver 3 Click on the Install button Clicking the API AIO button displays detailed information about API AIO WDM and API AIO 98 PC Run th...

Page 21: ...98 PC 1 The following dialog box appears to select Driver to install and Install option Usage of driver library 2 Select Classic Analog I O driver 3 Click on the Install button Clicking on the API AI...

Page 22: ...Show readme file check boxes are displayed When you are installing the software or hardware for the first time 1 Uncheck Perform a hardware setup now 2 Click on the Finish button Go to Step 2 to set a...

Page 23: ...oard can be set up even with the factory defaults untouched You can change board settings later Parts of the Board and Factory Defaults CN1 ch3 ch2 ch1 ch0 Analog output setting JP1 JP12 JP1 JP2 JP3 1...

Page 24: ...e board IDs can be set from 0 Fh to identify up to sixteen boards If only one board is used the original factory setting Board ID 0 should be used Setting Procedure To set the board ID use the rotary...

Page 25: ...5 JP6 1 3 1 3 1 3 Voltage output bipolar 10V 10V Voltage output unipolar 0V 10V Current output 0mA 20mA Voltage output bipolar 10V 10V Voltage output unipolar 0V 10V Current output 0mA 20mA ch2 settin...

Page 26: ...CI bus slot A B Slit for 5 V PCI bus slot Slit for 3 3 V PCI bus slot CAUTION Do not touch the board s metal plated terminals edge connector with your hands Otherwise the board may malfunction overhea...

Page 27: ...e board can be allocated Before attempting to install the board first determine what PC resources are free to use The resources used by each board do not depend on the location of the PCI bus slot or...

Page 28: ...16 4C PCI even though you have installed this board There is no problem in operation even if the board name is displayed as DAI16 4C PCI Source folder The setup information file INF is contained in th...

Page 29: ...using Windows NT 4 0 the Add New Hardware Wizard is not started Go to Step 4 Initializing the Software 2 Specify that folder on the CD ROM which contains the setup information file INF to register th...

Page 30: ...p information INF file is contained in the following folder on the bundled CD ROM Windows Vista XP Server 2003 2000 INF Win2000 Aio PCI Windows Me 98 95 INF Win95 Aio PCI Example of specifying the fol...

Page 31: ...testing and it can be ignored without developing any problem with the operation of the board In this case click on the Continue Anyway button Note that the displayed board name is DAI16 4C PCI even t...

Page 32: ...ger tab You can also open Device Manager by right clicking on My Computer and selecting Properties CAUTION Note that the displayed board name is DAI16 4C PCI even though you have installed this board...

Page 33: ...efault value You can use this default name if you wish Make sure that you do not use the same name for more than one device CAUTION Note that the displayed board name is DAI16 4C PCI even though you h...

Page 34: ...t Menu then select Programs CONTEC API PAC W32 API TOOL Configuration 2 API TOOL Configuration detects boards automatically The detected boards are listed Updating the Settings 1 Select Save setting t...

Page 35: ...check analog I O data connect the signal The diagrams below show examples of using channel 0 on the AO 1604CI2 PCI For details on the connections see Chapter 3 External Connection Check the board wit...

Page 36: ...sis button on the device property page to start the diagnosis program CAUTION Note that the displayed board name is DAI16 4C PCI even though you have installed this board There is no problem in operat...

Page 37: ...evice 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 CAUTION Note that...

Page 38: ...lained in API function Execution Speed Measurement Program in Chapter 5 Using the Diagnosis Program for Use of API AIO 98 PC Starting the Diagnosis Program After selecting the board in API TOOL Config...

Page 39: ...2 Setup 32 AO 1604CI2 PCI Checking the Analog Output Analog output You can select the output channel and output range from the lists...

Page 40: ...diagnosis results while saving them in text format The results are saved and displayed as a text file AioRep txt in the install folder CONTEC CONTECW95 The Diagnosis Program performs board presence a...

Page 41: ...h the Diagnosis Program but not with an application The Diagnosis Program is coded with API TOOL functions As long as the board operates with the Diagnosis Program it is to operate with other applicat...

Page 42: ...connect the connectors Connector shape The on board interface connector CN1 is used when connecting this product and the external devices CN1 37 20 19 1 Interface connector CN1 Connector used 37 pin D...

Page 43: ...t 3 Analog current output signal The numbers correspond to channel numbers Analog Ground 0 Analog Ground 3 Analog grounds for identically numbered output signals External Trigger Input External trigge...

Page 44: ...o the input of the external device and use the shield braid to connect the CN1 s analog ground to the external device s ground CN1 Target Coaxial cable Voltage Output 0 3 Analog Ground 0 3 BOARD MOSFE...

Page 45: ...e each current output of CN1 to the register load in the core wire of shielded cable and connect the each analog ground of CN1 to the register load in the shielding of shielded cable CN1 Target Coaxia...

Page 46: ...uit is as follows An external power supply is required to drive the input circuit The power capacity required at this time is about 11 mA per input channel at 24 VDC or about 5 5 mA at 12 VDC Common E...

Page 47: ...r supply Internal circuit Input pin Figure 3 9 Connection example with mechanical contact point The relation of the data internal logic seen from the input signal and the PC side as an example of the...

Page 48: ...l The output transistor is not associated with a surge voltage protection circuit When the output signal is used to drive the inductive load to a relay or lamp apply surge protection to the load side...

Page 49: ...ply Plus common Board Internal circuit Input Figure 3 11 Connection example with current sink corresponding input Vcc 12V 24VDC 5V Common Common TTL level input Ground Board External power supply Exte...

Page 50: ...e the transistor to gradually deteriorate or even completely damage the transistor Therefore when driving an induction load such as a relay coil you should always connect a surge absorbing device The...

Page 51: ...3 External Connection 44 AO 1604CI2 PCI...

Page 52: ...op Conversion start 0ch 1ch 2ch 0ch analog output change Analog output finalized Settling time Analog output operating 0ch Analog output from a specified one channel Conversion start Analog output fin...

Page 53: ...12 bit divides the range width into 4096 segments When the device covers the range of 0 to 10V the minimum unit of converted voltages is 10 4096 2 44mV If the device has a resolution of 16 bit it is...

Page 54: ...00V 0 10 000V 0 Ex When 3V is output at a resolution of 12 bit in the 10 V range Output data 3 10 x 4096 10 10 2662 4 The value that can be set as output data at this time is an integer Select 2662 or...

Page 55: ...1229 converted to 3 0005 V This error is a consequential error occurring when output data is obtained from an expected analog value Channel Channel represents individual channel No for analog output s...

Page 56: ...op condition satisfied Sampling count 2 Sampling count 3 Sampling is defined as a series of operations performed from when the sampling start condition is met to when the sampling stop condition is me...

Page 57: ...In First Out format Use FIFO format if you wish to output a continuous arbitrary analog output like that shown below When using FIFO format writing of conversion data to memory is always performed fr...

Page 58: ...board starts sampling upon execution of the analog output start command External trigger The board starts waiting for an external control signal as soon as the analog output start command is output Sa...

Page 59: ...lified when the sampling conversion start condition is software Sampling stop condition satisfied event This event occurs whenever the sampling stop condition is met if the number of repetitions has b...

Page 60: ...rt condition is satisfied if the sampling start condition is an external trigger The status is set to OFF when the external trigger is input to start sampling This status is set to ON whenever the boa...

Page 61: ...ce thereby initializing the device Status This command resets the sampling clock error status and AD conversion error status Memory This command resets the following memory related states Resets the c...

Page 62: ...ml Version information on each driver English APIPAC Each installer AIO DISK1 DISK2 DISKN AioWdm CNT DIO HELP HELP file Aio Cnt INF Each INF file for OS WDM Win2000 Win95 linux Linux driver file cnt d...

Page 63: ...s using the internal or external sampling clock Simultaneous monitoring of the termination of analog input sampling buffer memory usage and interrupt events such as occurrences of errors Driver option...

Page 64: ...4CI2 PCI 57 When using the API AIO WDM Accessing the Help File 1 Click on the Start button on the Windows taskbar 2 From the Start Menu select Programs CONTEC API PAC W32 AIOWDM API AIO WDM HELP to di...

Page 65: ...erence when writing your own programs To use the sample programs specify the device name in the property page for the program The sample programs are stored in Program Files CONTEC API PAC W32 AIOWDM...

Page 66: ...Perform standard analog input using more than one board Analog output SingleAo Perform single analog output from specified channel MultiAo Perform single analog output from multiple channels Ao Perfor...

Page 67: ...me is DAI16 4C PCI There is no problem in operation even if the board name is displayed as DAI16 4C PCI Procedure 1 Chose the measure device from device list 2 Click the button written with the functi...

Page 68: ...CAUTION Even if this product is installed the displayed board name is DAI16 4C PCI There is no problem in operation even if the board name is displayed as DAI16 4C PCI This program is made with Visua...

Page 69: ...ersion are displayed The number of the samplings in FIFO is It is conversion data set in the memory This can be visually checked in a memory image Event generation sampling frequency When the number o...

Page 70: ...1604CI2 PCI 63 When using the API AIO 98 PC Accessing the Help File 1 Click on the Start button on the Windows taskbar 2 From the Start Menu select Programs CONTEC API PAC W32 Aio API AIO HELP to disp...

Page 71: ...me set by API TOOL Configuration Use these sample programs as references for program development and operation check The sample programs are stored in Program Files CONTEC API PAC W32 Aio Samples Runn...

Page 72: ...uses AioInpBdMem and AioDO to perform simultaneous sampling of two memory mounted boards AioInp Sample console application that uses AioOpenEx and AioInp Analog output AO Uses AioOut to perform analo...

Page 73: ...eAioInp AioInpBack AioInpBdMem AioOut AioOutBack AioDo and AioDi functions Invoke the tool by selecting the Start Menu CONTEC API PAC W32 AIO SAMPLE Analog Main screen Analog input AioInp Simple analo...

Page 74: ...5 About Software AO 1604CI2 PCI 67 Analog output Digital input and output...

Page 75: ...l Panel 2 Double click on Add Remove Programs in the Control Panel 3 If the API AIO WDM select CONTEC API AIO WDM driver and CONTEC API AIO WDM VerX XX Development from the displayed application If th...

Page 76: ...ocedure The Linux version for digital I O driver API AIO LNX is supplied as a compressed file linux aio caioXXX tgz on the bundled API PAC W32 CD ROM Note XXX represents the driver version Mount the C...

Page 77: ...e Programs Sample programs have been prepared for specific basic applications Sample programs for each language are contained in the contec caio samples directory For compiling them refer to the manua...

Page 78: ...ions and hardware related supplementary information For detailed technical information For further detailed technical information Technical Reference including the information such as an I O map confi...

Page 79: ...able timer Setting frequency 500 1 073 741 824 000nsec Can be set in 250n sec units Timer output signal Opto coupler isolated open collector output current sink type External trigger input External tr...

Page 80: ...6 About Hardware AO 1604CI2 PCI 73 Board dimension mm 176 41 L 106 68 H The standard outside dimension L is the distance from the end of the board to the outer surface of the slot cover...

Page 81: ...ge Output 1 Current Output 1 Analog Ground 1 Voltage Output 0 Current Output 0 Analog Ground 0 Optocoupler Optocoupler Optocoupler Optocoupler D A Converter DC DC Converter MOS FET Relay V I Converter...

Page 82: ...Table 6 2 Details on each part Parameter Symbol Min Input circuit OFF Setup time of ON tSFT 2 5 sec Input circuit OFF Hold time of ON tHFT 2 5 sec Input circuit ON Setup time of OFF tSRT 2 5 sec Input...

Page 83: ...Symbol Min Max Input delay time tDI 5 sec Settling time tWS 20 sec Output delay time tDO 2 5 sec Timing of Timer Output Timer Output Programmable timer count up tPW tDO1 tDO2 tPWO Figure 6 5 Timing o...

Page 84: ...of the previous model DAI16 4C PCI So you can use the same operating procedures as DAI16 4C PCI AO 1604CI2 PCI DAI16 4C PCI About the display of the mounted board name DAI16 4C PCI 1 DAI16 4C PCI Envi...

Page 85: ...5 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 writt...

Reviews: