background image

 

2. Setup 

 

 

 

AO-1616L-LPE, AO-1608L-LPE 

11

 

Step 1 Installing the Software 

This section describes how to install the Driver libraries. 

Before installing the hardware on your PC, install the Driver libraries from the bundled  
API-PAC(W32). 

Although some user interfaces are different depending on the OS used, the basic procedure is the 
same. 

About the Driver 

Two Analog I/O drivers are available : API-AIO(WDM) and API-AIO(98/PC). 

Please use the API-AIO(WDM) with this board.  API-AIO(98/PC) is not supported. 

Summary of Contents for AO-1608L-LPE

Page 1: ...PC HELPER 100KSPS 16 bit Analog Output Board for PCI Express Low Profile 16ch type AO 1616L LPE 8ch type AO 1608L LPE User s Guide CONTEC CO LTD ...

Page 2: ...items contact your retailer Product Configuration List Board One of the following 1 AO 1616L LPE or AO 1608L LPE First step guide 1 Disk 1 API PAC W32 1 Standard sized bracket 1 Warranty Certificate 1 Serial number label 1 1 Driver software and User s Guide this guide API PAC W32 XXXXXXXXXXXXX XXXXXXXXXXXXX Board First step guide Disk 1 First step guide Standard size bracket Warranty Certificate W...

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

Page 4: ...ling Precautions 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 than the Driver Library API PAC W32 9 Using the board under an OS other than Windows 10 Step 1 Installing the Software 11 About the Driver 11 Starting the Install Program 12 Step 2 Settin...

Page 5: ...ter signals and Control signals Connection 31 4 FUNCTIONS 33 Analog Output Function 33 1 Setting the Conversion Conditions 34 2 Starting Stopping Operation 41 3 Monitoring the Status and Acquiring Data 42 4 Reset 43 Counter Function 44 1 Setting the Operating Conditions 44 2 Starting Stopping Operation 45 3 Monitoring the Status and Acquiring Data 45 4 Reset 46 Digital Input Function 47 Digital Ou...

Page 6: ...0 6 ABOUT HARDWARE 61 For detailed technical information 61 Hardware specification 62 Block Diagram 64 Control Signal Timings 66 Control Signal Timings for Analog Output 66 Control Signal Timings for Counter 67 About Calibration 68 Difference from DA16 16 LPCI L DA16 8 LPCI L 69 ...

Page 7: ...vi AO 1616L LPE AO 1608L LPE ...

Page 8: ...L level counter 32 bit LVTTL level 1 channel The start end of sampling can be controlled by software an external trigger etc You can select from software an external trigger to control the start of sampling You can select from completion of sampling for a specified number of sessions an external trigger or software to control forcibly the end of sampling The sampling cycle can be selected from the...

Page 9: ...hipment additional adjustment information can be stored according to the use environment Windows Linux compatible driver libraries are attached Using the attached driver library API PAC W32 makes it possible to create applications of Window Linux In addition a diagnostic program by which the operations of hardware can be checked is provided MATLAB and LabVIEW is supported by a plug in of dedicated...

Page 10: ... the supported OS applicable language and new information please visit the CONTEC s Web site Data acquisition VI library for LabVIEW VI DAQ Available for downloading free of charge from the CONTEC web site This is a VI library to use in National Instruments LabVIEW VI DAQ is created with a function form similar to that of LabVIEW s Data Acquisition VI allowing you to use various devices without co...

Page 11: ...rned 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 This warranty is not applicable for scratches or normal wear but only for the electronic circuitry and original boards The warranty is not applicable if the device has been tampered with or damaged through abuse mistreatment negle...

Page 12: ... the destruction of equipment and resources Understand the meanings of these labels to operate the equipment safely 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...

Page 13: ...sion unit is still turned on Otherwise the board may malfunction overheat or cause a failure Be sure that the personal computer power is turned off Make sure that your PC or expansion unit can supply ample power to all the boards installed Insufficiently energized boards could malfunction overheat or cause a failure When the power supply is turned on the output voltage of all channels becomes 0 V ...

Page 14: ... storing this product keep it in its original packing form 1 Put the board 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 munic...

Page 15: ...1 Before Using the Product 8 AO 1616L LPE AO 1608L LPE ...

Page 16: ... software 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 Hardware Step 4 Initializing the Software Step 5 Checking Operations with the Diagnosis Program If Setup fails to be performed normally see the Setup Troubleshooting section at the end of this ch...

Page 17: ...arts of 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 the following parts of this manual This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware ...

Page 18: ...ng the hardware on your PC install the Driver libraries from the bundled API PAC W32 Although some user interfaces are different depending on the OS used the basic procedure is the same About the Driver Two Analog I O drivers are available API AIO WDM and API AIO 98 PC Please use the API AIO WDM with this board API AIO 98 PC is not supported ...

Page 19: ...e API PAC W32 Installer window appears automatically If the panel does not appear run CD ROM drive letter AUTORUN exe 3 Click on the Install Development or Execution Environment button Before installing the software in Windows Vista XP Server 2003 2000 or NT log in as a user with administrator privileges CAUTION ...

Page 20: ...t the High Functionality WDM Analog I O driver 3 Click on the Install button Clicking the Detail button displays detailed information about API AIO WDM and API AIO 98 PC Executing the Installation 1 Complete the installation by following the instructions on the screen 2 The Readme file appears when the installation is complete You have now finished installing the software ...

Page 21: ...ctory defaults untouched You can change board settings later Replacing the Bracket This board is shipped with a Low Profile size bracket mounted To plug the board into a standard size slot replace the bracket with the bundled standard sized bracket The replacing method is as follows Figure 2 1 Replacing the Bracket Use a flathead screwdriver or hexagonal spanner to undo and tighten the screws Stan...

Page 22: ... each of the boards to distinguish them The 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 switch on the board Turn the SW1 knob to set the board ID as shown below Figure 2 3 Board ID Settings SW1 SW1 BOARD ID SW1 BOARD ID SW1 0 1 2 3 4 5 6 7 9 A B ...

Page 23: ... Otherwise the board may malfunction overheat or cause a failure If the terminals are touched by someone s hands clean the terminals with industrial alcohol Do not install or remove the board to or from the slot while the computer s power is turned on Otherwise the board may malfunction overheat or cause a failure Doing so could cause trouble Be sure that the personal computer or the I O expansion...

Page 24: ...rmine 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 the board itself If you remove two or more boards that have already been installed and then remount one of them on the computer it is unknown that which one of the sets of resources previously assigned to the two boards is assigned to the remounted board In this case you mu...

Page 25: ...g Windows 98 or Windows Me specify the folder that contains the setup information INF file from the CD ROM Source folder The setup information file INF is contained in the following folder on the bundled CD ROM INF WDM AIO You have now finished installing the software INF WDM AIO ...

Page 26: ...procedure described in Step 4 To change the device name follow the setting procedure shown below Setting the device name 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 The installed hardware appears under the CONTEC Devices node Open the CONTEC Devi...

Page 27: ... name you set here is used later when programming The initial device name that appears is a default 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 You have now finished installing the initial setting of Software The name of the board you have just added is displayed AO 1616L LPE AO 1608L LPE ...

Page 28: ...evice is actually connected Using the Diagnosis Report feature reports the driver settings the presence or absence of the board I O status and interrupt status Check Method To check the analog output data connect to an external signal source The figure below shows an example of checking by connecting to an external signal The analog output example illustrated below is an example of using analog ou...

Page 29: ...ng the Diagnosis Program Click the Diagnosis button on the device property page to start the diagnosis program The name of the board you have just added is displayed AO 1616L LPE AO 1608L LPE The name of the board you have just added is displayed AO 1616L LPE AO 1608L LPE ...

Page 30: ...wave or square wave 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 switches turns the digital output bits ON or OFF Counter input Selecting a counter channel displays the count value and state of that counter channel Clicking the zero clear button resets the count to zero ...

Page 31: ...nd displays the file for you to view Clicking Diagnosis Report prompts you to specify where to save the report text file 2 The diagnosis report contains the following data Version of OS Device Information File Information Initialization interrupts current input or output state for each channel The name of the board you have just added is displayed AO 1616L LPE AO 1608L LPE ...

Page 32: ...he 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 applications as well In such cases review your program while paying attention to the following points Check the return values of the API functions Refer to the source code for the sample programs The OS won t no...

Page 33: ...2 Setup 26 AO 1616L LPE AO 1608L LPE ...

Page 34: ...ce How to connect the connectors Connector shape To connect an external device to this board plug the cable from the device into the interface connector CN1 shown below Please refer to chapter 1 for more information on the supported cable and accessories Figure 3 1 Interface Connector CN1 Shape CN1 Interface connector CN1 Connector used 50 pin mini ribbon connector 10250 52A2JL mfd by 3M connector...

Page 35: ...ut 02 Digital Output 03 DO 03 29 4 DI 03 Digital Input 03 Digital Ground DGND 28 3 DGND Digital Ground Counter Clock Input CNT CKI 27 2 CNT GCI Counter Gate Control Input Reserved Counter Input Reserved 26 1 CNT CPO Counter Count up Pulse Output Analog Output00 Analog Output15 Analog output signal The numbers correspond to channel numbers Analog Ground Common analog ground for analog I O signals A...

Page 36: ...tal Ground Counter Clock Input CNT CKI 27 2 CNT GCI Counter Gate Control Input Reserved Counter Input Reserved 26 1 CNT CPO Counter Count up Pulse Output Analog Output00 Analog Output07 Analog output signal The numbers correspond to channel numbers Analog Ground Common analog ground for analog I O signals AO External Start Trigger Input External trigger input for starting analog output sampling AO...

Page 37: ...t Connection Shield Cable 1 The number of channels depends on each board The AO 1616L LPE has 16 channels the AO 1608L LPE has 8 channels When the power supply is turned on the output voltage of all channels becomes 0 V If the board or the connected wire receives noise or the distance between the board and the target is long data may not be outputted properly For analog output signal the current c...

Page 38: ...to be enabled and disabled This function can be used to control the input of the external clock for the counter When the input level is High the input of the external clock for the counter is enabled It is on the other hand disabled when the input level is Low Note that when it is not connected the input level is set to High as the board card pins are pulled up Therefore the input of the external ...

Page 39: ...3 External Connection 32 AO 1616L LPE AO 1608L LPE ...

Page 40: ... according to the resolution You can set a variety of conditions for analog output including the output channel sampling period and sampling start stop conditions Analog output processes are classified as follows 1 Setting the Conversion Condititions 3 Monitoring the Status and Acquiring Data 4 Reset Resolution Channel Range Output data Data transfer method Memory Repeat Setting data Clock Start C...

Page 41: ...nimum 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 AO 1616L LPE The resolution is 16 bit AO 1608L LPE The resolution is 16 bit Channel Channel represents each channel No of analog output signal For channel numbers see How to connect the connectors to Connector Pin Assignment in Chapter 3 External Connection The channel selecti...

Page 42: ...00030V 32769 0V 32768 0 00030V 32767 10 000V 0 Ex When 3V is output at a resolution of 16 bit in the 10V range Output data 3 10 x 65536 10 10 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 con...

Page 43: ...ored in the device buffer memory on the device itself or in the driver When conversion starts the device starts outputting the output data 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 volt...

Page 44: ...tput a continuous arbitrary analog output like that shown 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 ...

Page 45: ... the memory during its operation of analog output DA conversion data is output continuously in the sequence in which the ring format data is stored Although the figure shows a single analog output channel output from multiple channels is also possible Repeat You can specify a repeat count to perform sampling for a specified number of times Output Data Analog output as Data0 DataN Time Voltage curr...

Page 46: ...tput stop command by software Setting data Use a software command to save the data in memory The figure below shows the relationship between the conversion data stored in memory 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...

Page 47: ...ued External trigger The board 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 trigge...

Page 48: ...or 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 format is used the event occurs when the number of samples ou...

Page 49: ...nversion start condition is an external trigger or level comparison The status is set to OFF when the input trigger is input to start conversion The status is set to ON whenever the board enters the conversion start wait status even when repeated operation has been set Specified number of data outputs This status turns ON when the output data set in memory has reached a predefined number of sample...

Page 50: ...ror 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 ...

Page 51: ... shows an example of using the compare count load function After the counter starts the first count match occurs when the count reaches 1000 When the count reaches 1000 the counter value at which the second compare count match is to occur 2000 is set This continues with the next value from the array being set each time a count match occurs After the final value from the array is loaded operation c...

Page 52: ...the counter is running Status The current state of the device can be checked by obtaining the device status The following types of device status are available Counter operating The device operating status is ON from the time the operation start command is executed until operation stops due to a stop command or error Compare count match The compare count match status turns ON when a count match occ...

Page 53: ...8L LPE 4 Reset Various states can be reset by executing the following reset commands Counter reset Resets the counter This restores the counter to its state after power on Status Resets the compare count match status and overrun status ...

Page 54: ...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 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 Digital filter A digital filter can be used on the input bits The filter ti...

Page 55: ...h 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 0 Bit 3 Bit ...

Page 56: ...meu html Version information on each API TOOL 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 dio Readme Readme file for each driver Release Driver file on each API TOOL API_NT For creation of a user specific install program API_W95 UsersGuide Hardware User s Guide PDF files ...

Page 57: ...og input sampling buffer memory usage and interrupt events such as occurrences of errors Driver option check using a demo driver even without the board installed For details refer to the help file The help file provides various items of information such as Function Reference Sample Programs Tutorial FAQs and Troubleshooting Use them for program development and troubleshooting Accessing the Help Fi...

Page 58: ...s a reference 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 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 AIOWDM SAMPLE 3 A sample program is invoked ...

Page 59: ...g Perform analog input using an external trigger to start and stop operation AiLevel1 Use a level trigger to start analog input AiLevel2 Use a level trigger to stop analog input Ai2 Perform standard analog input using more than one device AiCall Perform analog input using a callback routine AiSync1 Perform multi channel analog input using two devices User buffer AiUser1 Perform analog input for a ...

Page 60: ... diagnostic program Procedure 1 Chose the measure device from device list 2 Click the button written with the function name to measure the execution speed of the function Please choose from a list the number of channels used for conversion in function AioMultiAi and AioMultiAo Input the transmission data size in function AioGetAiSamplingData and AioSetAoSamplingData The transmission data is set by...

Page 61: ...s added Data in the FIFO memory can be confirmed visually The number of channels used the internal external clock the conversion speed the sampling frequency at which an event generates and number of the samplings to be added can be set Since the notification of a sampling clock error event is sent please make use of it for the conversion spec measurement under various conversion conditions 1k The...

Page 62: ...he conversion 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 of unoutput sampling in FIFO reaches this frequency the event generates Adding sampling frequency It is the number of samplings of output data to be added during the event Measurement may stop b...

Page 63: ...nel 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...

Page 64: ...dows XP and Windows 2003 Server Uninstall the 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 the development environment Use My Computer Control Panel Add and Remove Programs to uninstall the development environmen...

Page 65: ...M VerX XX development environment and then click Add Remove contains the driver category name AIO CNT DIO SMC etc Uninstall procedure for Windows 98 98SecondEdition Uninstall the 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 SMC etc Uninstall...

Page 66: ...re The Linux version for analog 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 CD ROM as shown below copy the file to an arbitrary directory and decompress the file to install the driver For details on using the driver refer to readme txt and the help file in HTML format extracted by i...

Page 67: ...g Sample 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 manual for the desired language Uninstalling the driver To uninstall the driver use the uninstall shell script contained in the contec caio directory For details check the contents of the script ...

Page 68: ...s hardware specifications 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 configuration register etc visit the Contec s web site to call for it ...

Page 69: ...Digital I O Number of input channels Unisolated input 4ch LVTTL level positive logic Number of output channels Unisolated output 4ch LVTTL level positive logic Counter Number of channels 1ch Counting system Up count Max count FFFFFFFFh Binary data 32bit Number of external inputs 2 LVTTL level Gate Up ch Gate High level Up Rising edge Number of external outputs LVTTL level Count match output positi...

Page 70: ...Number of input channels Unisolated input 4ch LVTTL level positive logic Number of output channels Unisolated output 4ch LVTTL level positive logic Counter Number of channels 1ch Counting system Up count Max count FFFFFFFFh Binary data 32bit Number of external inputs 2 LVTTL level Gate Up ch Gate High level Up Rising edge Number of external outputs LVTTL level Count match output positive logic pul...

Page 71: ...a circuit block diagram of this board AO 1616L LPE Figure 6 1 Block Diagram AO 1616L LPE PCI Express bus External Trigger Inputs Counter Input Output CN1 FPGA DC DC converter 16 Analog Outputs DA Converter DA Converter DA Converter DA Converter 4 Digital Inputs 4 Digital Outputs ...

Page 72: ... 65 AO 1608L LPE Figure 6 2 Block Diagram AO 1608L LPE PCI Express bus External Trigger Inputs Counter Input Output CN1 FPGA DC DC converter 8 Analog Outputs DA Converter DA Converter DA Converter DA Converter 4 Digital Inputs 4 Digital Outputs ...

Page 73: ...Settling time tWS 10000 nsec Set up time of sampling start Rising edge tSRS 100 nsec Hold time of sampling start Rising edge tHRS 100 nsec Set up time of sampling start Falling edge tSFS 100 nsec Hold time of sampling start Falling edge tHFS 100 nsec Set up time of sampling stop Rising edge tSRP 100 nsec Hold time of sampling stop Rising edge tHRP 100 nsec Set up time of sampling stop Falling edge...

Page 74: ...e 6 7 Timing Chart of Counter Output Signal Pulse output Table 6 4 Control Signal Timings Parameter Symbol Time Unit Set up time of counter input signal Rising edge tSRC 100 nsec Hold time of counter input signal Rising edge tHRC 100 nsec Pulse width of counter output signal tPSC 1000 nsec The times listed in Table 6 4 are for standard operating conditions Counter Up Pulse Input tHRC tSRC Counter ...

Page 75: ...ation equipment and performing the calibration in accordance with the instructions displayed by the calibration program 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 settin...

Page 76: ...logic TTL level positive logic External Counter Input Output LVTTL level TTL level Dimension mm 121 69 L x 67 90 H 121 69 L x 63 41 H Weight 70g 60g AO 1608L LPE DA16 8 LPCI L The functions same with conventional product of DA16 8 LPCI L are provided with the AO 1608L LPE In addition as there is compatibility in terms of connector shape and pin assignments it is easy to migrate from the existing s...

Page 77: ...on 3 9 31 Himesato Nishiyodogawa ku Osaka 555 0025 Japan https www contec com No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO LTD 12252017 09022015 Management No A 51 549 12252017_rev4 Parts No LYJA404 ...

Reviews: