Preview only show first 10 pages with watermark. For full document please download

Sa Instrumentation Limited Data Acquisition System

   EMBED


Share

Transcript

2015 SA Instrumentation Limited Data Acquisition System RWB. GW, DG SA Instrumentation Limited 9/1/2015 This page is intentionally blank VAT reg. No. GB 607 6064 48 St Andrews Instrumentation is a limited company registered in Scotland, Registered Number: 296937 Registered Office: 5 Atholl Crescent, Edinburgh EH3 8EJ DAQ User Guide Beta version C 2.00 Project Name: DAQ Client: n/a Project reference number: n/a Lead Engineer: Graham Weatherup Project Manager: Richard Baggaley Drafted by: GW/AGA/RWB Engineering QA: Doug Gillespie/Richard Baggaley Date: 01-09-15 VAT reg. No. GB 607 6064 48 St Andrews Instrumentation is a limited company registered in Scotland, Registered Number: 296937 Registered Office: 5 Atholl Crescent, Edinburgh EH3 8EJ DAQ User Guide 1 Contents 2 Abbreviations ................................................................................................................................ 3 3 Overview........................................................................................................................................ 4 4 IO ..................................................................................................................................................... 9 4.1 Analog Front End .................................................................................................................. 10 4.2 Channel 0 – 3A input stage ................................................................................................... 11 4.3 Channel 3B input stage ......................................................................................................... 12 4.4 Input impedance and optional gain modification locations ................................................... 13 4.5 Line out connection ............................................................................................................... 14 5 Power ............................................................................................................................................ 16 6 Software ....................................................................................................................................... 17 6.1 Drivers ................................................................................................................................... 17 6.2 PAMGuard............................................................................................................................. 17 6.3 Python ................................................................................................................................... 18 6.4 Matlab .................................................................................................................................... 18 6.5 C++ ........................................................................................................................................ 18 6.6 USB packet format ................................................................................................................ 18 6.6.1 7 2 CRC 16 .............................................................................................................................. 19 Installation Instructions doc 18 Abbreviations Abbreviation Description HW Hardware SW Software FW Firmware SA Instrumentation Limited Copyright©2014 Page 3 of 22 February 2015 DAQ User Guide 3 Overview The DAQ is a high performance data acquisition card. A single card is capable of sampling up to four channels simultaneously at up to 1MHz, outputting the data over a USB 2.0 connection. Multiple cards may be stacked together to give up to 12 channels all sampling simultaneously. Parameter Description Min Typical Max Unit Operating systems OS Support Software drivers Windows7 Environmental Operational Temp - -20 - 60 °C DC Supply - 11.8** 12 20 V - 2 3 W 4 - Average Power Technical Channels Sampling channels Sampling rate Channel sampling rate Bit depth 0 62.5 250/500 1000 kHz Channel data word width - 16 - bits Anti-aliasing*** Single pole LP - 200 - kHz Channel Gain Applied per channel, SW selectable - 0/6/12/18/24/30 - dB Channel filters Channel signal filters(2 pole), SW selectable - Butterworth HP:10/100/2k/20k - Hz ** Electrical noise is introduced into the system if the input voltage drops below 11.5V ***Note each channel is oversampled at a x16 rate allowing for a single pole anti alias filter, with additional filtering inside the Analogue front end SA Instrumentation Limited Copyright©2014 Page 4 of 22 February 2015 DAQ User Guide 3.1 Case & Connector panel layout The SA Instrumentation Data Acquisition Cards can be installed into a metal case, described here is a typical three card form Rear Panel Power Input and USB Data Outputs/Side Panel Outputs Front Panel Inputs/Side Panel Outputs SA Instrumentation Limited Copyright©2014 Page 5 of 22 February 2015 DAQ User Guide SA Instrumentation Limited Copyright©2014 Page 6 of 22 February 2015 DAQ User Guide SA Instrumentation Limited Copyright©2014 Page 7 of 22 February 2015 DAQ User Guide Power Connection A universal power supply & cord is included with the DAQ cased version. This uses a Neutrik power plug attached to 1.5 meters of cable a suitable 5amp fuse should be used to protect the device. The separate cable should be used to connect the DAQ system to a suitable 12v DC power supply preferably a battery that can be re-charged when not in use. When the power cable is connected to the suitable source the system can be switched on by pressing and the lockable power on switch to the ON position. The OFF position is LOCKED by the button. The Green power on LED will indicate power 12v DC is supplied to the DAQ card.(not polarity though) To switch off the system press and slide the Power switch to release it to the OFF position. Input connections (Hydrophones) Connections to the inputs of the DAQ card are made using the small plug in IMO connectors (4 way Green) located at the end of the case. The connection layout map on the case indicates each card by the letter A, B and C vertically and inputs 0, 1, 2,3a and 3b (a 6 way IMO). The number of installed cards will determine the number of available inputs To connect a suitable Hydrophone remove Input 0, edge connector and connect as follows. a. Terminal one of the 4 way connector provides a 12vDC output for the Hydrophone. b. Terminal two of the 4 way connector is for Signal + from the Hydrophone c. Terminal three of the 4 way connector is for Signal – from the Hydrophone d. Terminal four of the 4 way connector is Ground (0v) with respect to 12vDC of the Hydrophone The same can be repeated for inputs to channels 1, 2 and 3a and 3b Output connections 3.5mm Mono jacks Four 3.5mm output mono jacks are provided on the side of the DAQ case, These are marked as Card A, B, and C for the relevant card installed and channel 0, 1, 2, 3, The Audio out connections are buffered and have an output impedance of 1 KOhm. Signal levels are only suitable for driving the line input of a sound card or headphone amplifier and are pre filtering and not amplified in any way at the output jack sockets on the DAQ case. SA Instrumentation Limited Copyright©2014 Page 8 of 22 February 2015 DAQ User Guide Output connections USB A, B, C (rear panel) The USB connections on the rear panel are used to connect the DAQ cards to the host computer that has version 1.13.05 Beta or later of PAMGuard software installed. USB A is the connection from card A in the 4 channel boxed version of the DAQ USB B is the connection from card B in the 8 channel boxed version of the DAQ USB C is the connection from card C in the 12 channel boxed version of the DAQ When more than one card is required to connect to a host PC then a USB Hub device may be used, allowing multiple cards to be connected to a single host. The PAMGuard software should automatically enumerate the cards in the correct order. Sequence of operation 1. Make all necessary connections to the DAQ box but do not switch on 2. Power on the Host PC but do not start the PAMGuard software 3. Power on the SAIL DAQ using the power switch on the rear panel, after a few seconds the Red and Green Audio LEDs should flash briefly 4. Connect the USB cable to the host, usually the device connected tone can be heard from the host PC 5. Start the PAMGuard software 4 IO Only the headers labelled in the diagram are user configurable. Attempts to connect to other on board headers may result in permanent damage and failure of the card. Chan0 +12 out SigIn+ SigIn – GND USB2.0 Chan1 Line out Chan2 Chan3A Power In GND +12 out Chan3B +out +7V in 7V out -7V in GND SigIn SA Instrumentation Limited Copyright©2014 Select Chan3A or Chan3B (Shown configuration is Chan3A) Card synchronization Connector Page 9 of 22 February 2015 DAQ User Guide 4.1 Analog Front End The AFE has several signal conditioning elements that are selectable, via the USB controller, on a per channel basis. The signal flow is as follows. 1. 2. 3. 4. 5. Unity gain buffer, +-4V input (2.8VRMS) High pass Butterworth filter, 0/10/100/2k/20kHz Gain stage 0/6/12/18/24/30 dB Anti-aliasing filter, single pole 3dB @ 200kHz ADC, input voltage is 5.6V Peak to Peak Chan0-3A +12 out SigIn+ SigIn – GND SA Instrumentation Limited Copyright©2014 Page 10 of 22 February 2015 DAQ User Guide 4.2 Channel 0 – 3A input stage Chan0-3A +12 out SigIn+ SigIn – GND All channels have differential input and input impedance on both the inverting and non-inverting inputs of 100 kOhm. The input stage is set up in a unity gain configuration; however an optional gain resistor may be added. Please refer to the TI user manual for the ina128. SAIL takes no responsibility for any damage arising from modifying these values. Power out is provided on the uppermost connector as shown above. This level will be a direct reflection of the voltage at the input of the card. Audio monitor Digital control Hydrophone differential input with 12V supply out Unity gain Instrumentation Amplifier 200kHz Anti-aliasing filter/differential amplifier Adjustable High Pass filter: 10, 100, 2000, 20000Hz Programmable Amplifier Serial data output 16 bit ADC Reference, clock, power control SA Instrumentation Limited Copyright©2014 Page 11 of 22 February 2015 DAQ User Guide 4.3 Channel 3B input stage This channel contains a high impedance unity gain buffer on the input path. It has a 101MΩ input resistance and is suitable for directional connection to hydrophones and similar transducers. The input capacitance can be in the range 100pF to 5000pF. The input stage can be viewed in the datasheet for the LT1113. Hydrophone single-ended input and supply input with ±7V supply out Unity gain High impedance Preamplifier Select by link Hydrophone differential input with 12V supply out Unity gain Instrumentation Amplifier 200kHz Anti-aliasing filter/differential amplifier Audio monitor Digital control Adjustable High Pass filter: 10, 100, 2000, 20000Hz Programmable Amplifier Serial data output 16 bit ADC Reference, clock, power control Pin Name 1 AMP_PWR_OUTP +7V from DAQ power supply 2 AMP_PWRP +Ve supply to the preamp, generally connect to AMP_PWR_OUTP 3 AMP_PWR_OUTN -7V from DAQ power supply 4 AMP_PWRN -Ve supply to the preamp, generally connect to AMP_PWR_OUTN 5 GND Ground 6 AMP_IN Signal input SA Instrumentation Limited Copyright©2014 Description Page 12 of 22 February 2015 DAQ User Guide 4.4 Input impedance and optional gain modification locations The R3 and R7 component sites are unpopulated on card delivery. The user can choose to populate if required for a specific application. The site for each channel is highlighted with the yellow circle. SAIL takes no responsibility for any damage arising from modifying these values. SA Instrumentation Limited Copyright©2014 Page 13 of 22 February 2015 DAQ User Guide 4.5 Line out connection The Audio Monitor connector is an 8-pin 0.1” right-angle box header, J30. This gives access to four audio monitor outputs and two LED control outputs. The LED control outputs are 3.3V logic level signals suitable to turning on an external LED driver transistor. The audio connections are buffered and have an output impedance of 1kOhm. The output buffers are connected to the output of the input buffer of the card, before signals are filtered are amplified in any way. Signal levels are suitable for driving the line input of a sound card or headphone amplifier. Note that the audio out signals are ±7V, while only 0-5V is available on J30. Suitable ranging and DC-blocking is required on the amplifier board. Pin Function Function Pin 1 +5V power out GND 2 3 LED out 1 LED out 2 4 5 Audio channel 0 Audio channel 1 6 7 Audio channel 2 Audio channel 3 8 Upper Lower Pin1 Pin3 Pin5 Pin7 Pin2 Pin4 Pin6 Pin8 http://uk.farnell.com/amphenol/t812108a100ceu/socket-idc-2-54mm-8way/dp/2215231 SA Instrumentation Limited Copyright©2014 Page 14 of 22 February 2015 DAQ User Guide Diff In Signal to gain/filters +-7V supply 1k The diagram above depicts the signal path from the DAQ input to the line out header. All buffers in the signal path are of unity gain. SA Instrumentation Limited Copyright©2014 Page 15 of 22 February 2015 DAQ User Guide 5 Power The design goal is 1W typical, 3W maximum. Based on measurements from the prototype with no hydrophone while sampling: Speed 62.5ksps 250ksps 500ksps 1Msps 1 0.9 0.9 0.9 1.0 Channels 2 1.2 1.2 1.3 1.5 3 1.5 1.5 1.6 2.0 4 1.8 1.8 2.0 2.4 The above table shows in Watts, with unused channels unpowered (by link removal) Speed 62.5ksps 250ksps 500ksps 1Msps 1 1.3 1.3 1.3 1.4 Channels 2 1.4 1.5 1.5 1.8 3 1.6 1.7 1.8 2.1 4 1.8 1.8 2.0 2.4 The above table shows Power in Watts, with unused channels powered SA Instrumentation Limited Copyright©2014 Page 16 of 22 February 2015 DAQ User Guide 6 Software Documents and drivers are supplied on the Decimus USB Memory stick provided. 6.1 Drivers The SAIL DAQ is shipped with Windows 7 drivers that may be installed from the device manager. 6.2 PAMGuard The SAIL DAQ Card SA Instrumentation Limited Copyright©2014 Page 17 of 22 February 2015 DAQ User Guide 6.3 Python Not yet implemented, timeline upon request 6.4 Matlab Not yet implemented, timeline upon request 6.5 C++ The DAQ has a basic test C++ program, showing the user how to configure the card and acquire data from it. This can be incorporated into the user’s end application. Details upon request 6.6 USB packet format This section is only applicable to software developers who are integrating the DAQ card into their greater system. Data version 1 is defined by bits 7:4 of the Channels byte being 0001. D15:8 D7:0 D15:8 D7:0 0x7F nd 2 byte sent 0x7F 1st byte sent 0x7F nd 2 byte sent 0x7F 1st byte sent Length 0x40 0x7F rd 3 byte sent 64 samples Length 0x80 0x7F rd 3 byte sent 128 samples Sequence number Channels 0b00011111 Channels 3,2,1,0 Sequence number Channels 0b00011010 Channels 3&1 Channel 0 data Sample 1 Channel 1 data Sample 1 Channel 1 data Sample 2 Channel 3 data Sample 2 Channel 2 data Sample 3 Channel 1 data Sample 3 Channel 3 data Sample 4 Channel 3 data Sample 4 Channel 0 data Sample 5 Channel 1 data Sample 5 Channel 1 data Sample 6 Channel 3 data Sample 6 Channel 2 data Sample 7 Channel 1 data Sample 7 Channel 3 data Sample 8 Channel 3 data Sample 8 … … Channel 0 data Sample 61 Channel 1 data Sample 125 Channel 1 data Sample 62 Channel 3 data Sample 126 Channel 2 data Sample 63 Channel 1 data Sample 127 Channel 3 data Sample 64 Channel 3 data Sample 128 CRC (never 7F7F) Total length 136 bytes SA Instrumentation Limited Copyright©2014 CRC CRC (never 7F7F) CRC Total length 264 bytes Page 18 of 22 February 2015 DAQ User Guide 6.6.1 CRC 16 The CRC is a CCITT CRC with a polynomial of 0x1021, here reversed to 0x8408 by the implementation. The CRC is calculated on header and data fields, least significant byte first. The implementation is equivalent to this C function #define POLY 0x8408 unsigned short crc16(unsigned char *data_p, unsigned short length) { unsigned char i; unsigned int data; unsigned int crc; crc = 0xffff; if (length == 0) return (~crc); do { for (i = 0, data = (unsigned int)0xff & *data_p++; i < 8; i++, data >>= 1) { if ((crc & 0x0001) ^ (data & 0x0001)) crc = (crc >> 1) ^ POLY; else crc >>= 1; } } while (--length); crc = ~crc; data = crc; crc = (crc << 8) | (data >> 8 & 0xFF); // line added for SMRU: never return 0x7F7F - that's a flag if(crc == 0x7F7F) crc = 0x7F7E; return (crc); } SA Instrumentation Limited Copyright©2014 Page 19 of 22 February 2015 DAQ User Guide 7.0.0 Installation instructions doc. 1. To use the Add Hardware Wizard, the user must be a member of the Administrators group on the test computer and run the Add Hardware Wizard from an elevated command prompt. To open an elevated Command Prompt window, create a desktop shortcut to Cmd.exe, right-click the Cmd.exe shortcut, and select Run as administrator 2. From the elevated command prompt, do one of the following: o In Windows 7 and later versions of Windows, run Hdwwiz.exe to start the Add Hardware Wizard, and then click Next Note Starting with Windows 7, the Add Hardware Wizard can no longer be started from the Control Panel o In Windows Vista and earlier versions of Windows, run Hdwwiz.cpl to start the Add Hardware Wizard, and then click Next 3. Select Advanced Option, and then click Next SA Instrumentation Limited Copyright©2014 Page 20 of 22 February 2015 DAQ User Guide 4. Click Show all devices in the list box, and then click Next 5. Click Have Disk. 6. Browse to Install Packages\SMRU_Install.inf on the USB Stick provided extracted driver folder if downloaded 7. Click Open. 8. Click OK. 9. Click Next on the next two wizard pages, and then click Finish to complete the installation. Click Install this driver software anyway if such a message appears [Modified from http://msdn.microsoft.com/en-us/library/windows/hardware/ff553639] SA Instrumentation Limited Copyright©2014 Page 21 of 22 February 2015 DAQ User Guide SA Instrumentation Limited Copyright©2014 Page 22 of 22 February 2015