Digitizers User Manual
Total Page:16
File Type:pdf, Size:1020Kb
XZ130 ACQIRIS PROGRAMMER’S GUIDE Programmer’s Guide ZM020130E Rev.B January 2006 The information in this document is subject to change without notice and may not be construed in any way as a commitment by Acqiris. While Acqiris makes every effort to ensure the accuracy and contents of the document it assumes no responsibility for any errors that may appear. All software described in the document is furnished under license. The software may only be used and copied in accordance with the terms of license. Instrumentation firmware is thoroughly tested and thought to be functional but it is supplied “as is” with no warranty for specified performance. No responsibility is assumed for the use or the reliability of software, firmware or any equipment that is not supplied by Acqiris SA or its affiliated companies. Any versions of this manual which are supplied with a purchased product will be replaced at your request with the latest revision in electronic format. At Acqiris we appreciate and encourage customer input. If you have a suggestion related to the content of this manual or the presentation of information, please contact your local Acqiris representative or Acqiris Technical Support ([email protected]) or come visit our web site at http://www.acqiris.com. Trademarks: product and company names listed are trademarks or trade names of their respective companies Acqiris Headquarters: Acqiris USA: Acqiris Asia-Pacific: Acqiris SA Acqiris LLC Acqiris Pty Ltd 18, chemin des Aulx 234 Cromwell Hill Rd. Suite 7, Level 1 CH-1228 Plan-les-Ouates P.O. Box 2203 407 Canterbury Road, Geneva Monroe, NY 10950-1430 P.O. Box 13 Switzerland USA Surrey Hills 3127 Australia Tel: +41 22 884 33 90 Tel: 845 782 6544 Tel: +61 3 9888 4586 Fax: +41 22 884 33 99 Fax: 845 782 4745 Fax: +61 3 9849 0861 © Copyright January 2006, Acqiris SA. All rights reserved. Programmer’s Guide Page 2 of 107 CONTENTS 1. INTRODUCTION..............................................................................................................................7 1.1. Message to the User......................................................................................................................7 1.2. Using this Manual.........................................................................................................................7 1.3. Conventions Used in This Manual ...............................................................................................8 1.4. Warning Regarding Medical Use .................................................................................................8 1.5. Warranty.......................................................................................................................................8 1.6. Warranty and Repair Return Procedure, Assistance and Support.................................................8 1.7. System Requirements ...................................................................................................................8 2. PROGRAMMING ENVIRONMENTS & GETTING STARTED ................................................9 2.1. Visual C++ ...................................................................................................................................9 2.2. LabWindows/CVI.........................................................................................................................9 2.3. LabVIEW .....................................................................................................................................9 2.3.1. Getting Started VI...........................................................................................................10 2.3.2. Example Scope VI ..........................................................................................................10 2.3.3. Accumulated Waveform Example VI.............................................................................11 2.4. Visual Basic................................................................................................................................11 2.5. MATLAB ...................................................................................................................................12 2.5.1. Data Acquisition Toolbox...............................................................................................12 Single Acquisition .......................................................................................................................................... 12 Multiple Acquisition....................................................................................................................................... 12 Mode Live....................................................................................................................................................... 12 Manipulating Attributes.................................................................................................................................. 13 Loading and Saving a Setup ........................................................................................................................... 13 Calibration ...................................................................................................................................................... 13 Create the AnalogInput object ........................................................................................................................ 14 View the Instrument Information.................................................................................................................... 14 Configure and Add Channels.......................................................................................................................... 14 Start an Acquisition ........................................................................................................................................ 14 Read the Data.................................................................................................................................................. 14 Free Resources................................................................................................................................................ 16 2.5.2. MEX Interface ................................................................................................................16 GetStarted ....................................................................................................................................................... 16 2.6. Phar Lap ETS .............................................................................................................................16 2.7. Wind River VxWorks (Tornado)................................................................................................17 2.7.1. Compiling .......................................................................................................................17 2.7.2. Loading...........................................................................................................................17 2.7.3. Running the Program......................................................................................................17 2.8. Linux ..........................................................................................................................................17 3. PROGRAMMING AN ACQIRIS DIGITIZER.............................................................................18 3.1. Programming Hints.....................................................................................................................18 3.2. Device Initialization ...................................................................................................................18 3.2.1. PCI & VXI Identification by Order Found.....................................................................19 3.2.2. PCI Identification by Serial Number ..............................................................................19 3.2.3. PCI Identification by Bus/Slot Number..........................................................................19 3.2.4. VXI Identification...........................................................................................................20 3.2.5. Firmware initialization (AP-FAMILY/12-bit-FAMILY/ACxxx /SCxxx)......................20 3.2.6. Automatic Definition of MultiInstruments .....................................................................21 3.2.7. Manual Definition of MultiInstruments..........................................................................21 3.2.8. AqGeo.map file positioning............................................................................................22 3.2.9. Simulated Devices ..........................................................................................................23 3.2.10. Terminating an Application............................................................................................23 3.3. Device Configuration .................................................................................................................23 3.4. Configuring Averagers ...............................................................................................................25 3.4.1. Basic configuration.........................................................................................................25 Programmer’s Guide Page 3 of 107 3.4.2. Dithering.........................................................................................................................26