10
Data Acquisition Data Acquisition Software Integration Software Integration and ADC and ADC Characterisation Characterisation Jack Hobbs Jack Hobbs 4 4 th th August 2009 August 2009 1

Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

Embed Size (px)

Citation preview

Page 1: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

Data Acquisition Software Data Acquisition Software Integration and ADC Integration and ADC

CharacterisationCharacterisation

Jack HobbsJack Hobbs

44thth August 2009 August 2009

1

Page 2: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

The Original AimsThe Original Aims

We should have the ability to operate the We should have the ability to operate the Analogue to Digital ConverterAnalogue to Digital Converter (ADC) from (ADC) from a LabVIEW data acquisition program.a LabVIEW data acquisition program.

This program should be able to set up and This program should be able to set up and alter any settings the ADC has.alter any settings the ADC has.

Ideally this could then be extended to the Ideally this could then be extended to the eventual full setup of 6 ADCs planned.eventual full setup of 6 ADCs planned.

2

Page 3: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

What This MeansWhat This Means

Write a collection of Write a collection of Dynamic Link Dynamic Link LibrariesLibraries (.dll) using the (.dll) using the CC programming programming language.language.These will sit on top of the Jungo libraries These will sit on top of the Jungo libraries and USB drivers and make the operation and USB drivers and make the operation of the ADC simple for any user or program of the ADC simple for any user or program that uses them.that uses them.Write a LabVIEW program referencing Write a LabVIEW program referencing these DLLs to operate the ADC.these DLLs to operate the ADC.

3

Page 4: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

USB FunctionsUSB Functions

Initialise CommunicationInitialise Communication Establish a connectionEstablish a connection Get the device parametersGet the device parameters Transfer the “HEX file”Transfer the “HEX file” Create a “Device Handle”Create a “Device Handle”

End CommunicationEnd Communication

4

Page 5: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

ADC FunctionsADC Functions

16 channels of with individual settings:16 channels of with individual settings: ActiveActive GainGain AverageAverage AC/DCAC/DC Sample rateSample rate

TriggeringTriggering

ResettingResetting

5

Page 6: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

ADC FunctionsADC Functions

Direct altering of registry valuesDirect altering of registry valuesContinuous Mode (FFI)Continuous Mode (FFI)Burst Mode (FSI)Burst Mode (FSI)Test ModeTest ModeStart acquisitionStart acquisitionStop acquisitionStop acquisitionAcquire error flagsAcquire error flags

(Decode data)(Decode data)

6

Page 7: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

What Has Been DoneWhat Has Been Done

Everything with a tick has been written.Everything with a tick has been written.

Only the initialisation has been tested. It Only the initialisation has been tested. It works.works.

A centralised error code header file has A centralised error code header file has been written.been written.

7

Page 8: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

What Is Left To DoWhat Is Left To Do

All the crosses need to change to ticks.All the crosses need to change to ticks.

Decoding the output binary file should be Decoding the output binary file should be easy. It is a separate task.easy. It is a separate task.

I think it will be harder to implement the I think it will be harder to implement the processes that surround actual data processes that surround actual data acquisition.acquisition.

A LabVIEW program must then be written.A LabVIEW program must then be written.

8

Page 9: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

Data AcquisitionData Acquisition

Will require more thought than the rest of Will require more thought than the rest of the code.the code.

The C++ code and older DAQ software The C++ code and older DAQ software encounters problems with continuous encounters problems with continuous mode.mode.

These are fundamental problems that These are fundamental problems that have to be addressed before the C code is have to be addressed before the C code is written.written.

9

Page 10: Data Acquisition Software Integration and ADC Characterisation Jack Hobbs 4 th August 2009 1

SummarySummary

We should be able to set up the ADC We should be able to set up the ADC soon.soon.

Next the ADC needs to be triggered for Next the ADC needs to be triggered for operation and transfer of data. This will operation and transfer of data. This will take longer.take longer.

Finally a LabVIEW program will be written Finally a LabVIEW program will be written to control every aspect of the ADC’s to control every aspect of the ADC’s operation.operation.

10