Você está na página 1de 12

Analog Outputs Calibration

T-TN001 (v1.1) Feb 20, 2014

Abstract

This document provides information to the user who wants to calibrate his emulator for
more precise measurement purposes.
Typhoon HIL Analog Outputs Calibration

Table of Contents
1 Calibration Tool based procedure ........................................................................... 2
1.1 Calibration procedure ..................................................................................... 2
1.2 Viewing the stored calibration data ................................................................... 4
1.3 Erasing the calibration data ............................................................................. 5
1.4 Verifying the stored data................................................................................. 5
1.5 Manual calibration mode ................................................................................. 6
2 Calibration procedure for HIL400 devices ................................................................ 7
2.1 DC Offset Calibration ...................................................................................... 7
2.2 DC Gain Calibration ........................................................................................ 8
3 Revision history ................................................................................................. 11

www.typhoon-hil.com 1
Typhoon HIL Analog Outputs Calibration

1 Calibration Tool based procedure


The Calibration Card, along with its companion application HIL Calibration Tool, was
designed to enable a one-click calibration process, thus eliminating the need for time
consuming manual measurements and costly voltage references.

The calibration results are stored onto the device flash memory, and are applied during the
model loading phase.

1.1 Calibration procedure


Start the Typhoon HIL Control Center and click on HIL Calibration Tool, as shown on
Figure 1.

Figure 1: Test and Calibration app location

The Calibration Tool start screen will show up (Figure 2). To proceed, plug in the Calibration
Card, turn on the device and click on Next.

www.typhoon-hil.com 2
Typhoon HIL Analog Outputs Calibration

Figure 2: HIL Calibration Tool start screen

The main screen (Figure 3) will show up. To calibrate, click on the Test and Calibrate
button.

Figure 3: Main screen of the Calibration Tool

The outcome of a successful procedure is shown on Figure 4.

www.typhoon-hil.com 3
Typhoon HIL Analog Outputs Calibration

Figure 4: Successful calibration procedure

The calibration procedure will first check for errors on the analog and digital stages, such
as short to GND, short to VCC, or non-responsive channels. If any error is found, the
procedure is aborted.

1.2 Viewing the stored calibration data


To view the stored calibration data set, click on Actions -> View calibration data, as
shown on Figure 5.

Figure 5: Launching the calibration data viewer

www.typhoon-hil.com 4
Typhoon HIL Analog Outputs Calibration

A window with values for gain and offset coefficients will show up (Figure 6).

Figure 6: Calibration data set viewer

1.3 Erasing the calibration data


To erase the stored calibration constants (to set them to neutral state), click on Actions ->
Erase calibration data, as shown on Figure 7.

Figure 7: Erasing the calibration data set

1.4 Verifying the stored data


To manually verify that the device is correctly calibrated, a signal generator functionality is
provided. The signal generator is embedded onto the main app screen, as shown on Figure
8.

www.typhoon-hil.com 5
Typhoon HIL Analog Outputs Calibration

Figure 8: Signal generator

The generator will set the specified signal on all outputs. The user can then take a high
accuracy multimeter and measure the outputs, to ensure that it is within spec.

For verification, please use a multimeter that has sufficient accuracy spec (better than
0.1% + 2.44 mV at ±5 V range).

1.5 Manual calibration mode


A manual write-from-file function is provided, in case the user wants to calculate and write
the coefficients manually. The coefficients are read from the provided .txt file, and stored
onto the device flash.

To access this function, click on Actions -> Write from file…, as shown on Figure 9.

Figure 9: Write-from-file functionality

The encoding format of the expected file is UTF-8. A screenshot from Microsoft Notepad is
shown on Figure 10.

Figure 10: Setting the encoding format (screenshot from Microsoft Notepad)

www.typhoon-hil.com 6
Typhoon HIL Analog Outputs Calibration

The structure of the expected file is given in Table 1.

Table 1: Calibration file format

AI_GAIN[1] AI_GAIN[2] AI_GAIN[3] … AI_GAIN[N]


AI_OFFSET[1] AI_OFFSET[2] AI_OFFSET[3] … AI_OFFSET[N]
AO_GAIN[1] AO_GAIN[2] AO_GAIN[3] … AO_GAIN[N]
AO_OFFSET[1] AO_OFFSET[2] AO_OFFSET[3] … AO_OFFSET[N]

The file should contain four rows of constants. The values on each line should be TAB or
SPACE delimited.

In case of an invalid format, insufficient values, or invalid coefficients, the procedure will be
aborted.

2 Calibration procedure for HIL400 devices


The procedure for HIL400 devices involves creating a calibration schematic, measuring the
outputs and calculating the compensation values.

There are two parameters for calibration: DC offset and DC gain of the analog output stage.

Figure 11: Circuit used for calibration purposes

2.1 DC Offset Calibration


For DC offset calibration, please follow these steps:
1. Load the model shown in Figure 11 to the emulator.
2. Set the voltage source to be a zero voltage source (const_0.isg).

www.typhoon-hil.com 7
Typhoon HIL Analog Outputs Calibration

Figure 12: Setting the zero output voltage source

3. At analog outputs, which have to be calibrated, chose to view the zero voltage of the
voltage source (Figure 14).

Figure 13: Chose on analog outputs the zero value (V(Vzero))

4. Measure the output voltages on desired analog outputs. The measured voltages are
the offset voltages on the analog outputs.

Figure 14: Values of measured offsets on AO channels 1 and 2

5. Set the opposite of the measured value in the offset field for measured analog output
channel.

Figure 15: Compensating the offset voltage at AO channels 1 and 2

Figure 16: Values of measured offsets on AO channels 1 and 2 after calibration

2.2 DC Gain Calibration


To calibrate the DC gain follow these steps:
1. Finish the steps from chapter 1.1 (DC offset calibration).
2. Set the voltage source Vzero to be a non zero voltage source. For easier calculation
load 1000 V dc source (const_1000.isg).

www.typhoon-hil.com 8
Typhoon HIL Analog Outputs Calibration

Figure 17: Setting the 1000V dc voltage source

3. Chose at analog output channels the Vzero voltage source (they should be already
chosen in 3rd step of DC offset calibration process), set the gain to 1000 V/Vdac.
This should give 1V at analog outputs, Vexpected = 1V (1000V / 1000 V/Vdac). Make
sure that the offset value obtained in steps of chapter 1.1 is set in offset fields.

Figure 18: Setting the gain values at AO1 and AO2

4. Measure the output voltages. The values should be close to 1V. In this step you will
obtain VmeasuredCHx.

Figure 19: Measured voltages at AO1 and AO2

5. Calculate the gain coefficient KGCHx (this is the value that has to multiply the gain to
obtain correct value at the outputs).
V measuredCH
K GCHx 
x

V exp ected

Example:

Vin = 1000 V (const_1000.isg)


gain = 1000 V/Vdac

Expected voltage at analog output:


Vexpected = Vin/gain = 1 Vdac

Measured output voltage:


VmeasuredCH1 = 0.9715 Vdac
VmeasuredCH2 = 0.9687 Vdac

KGCH1 = 0.9715 /1 = 0.9715


KGCH2 = 0.9687 /1 = 0.9687

The gain has to be multiplied by KGCHx for each channel.

www.typhoon-hil.com 9
Typhoon HIL Analog Outputs Calibration

New Gain for CH1 = 1000 * 0.9715= 971.5


New Gain for CH2 = 1000 *0. 9687= 968.7

Figure 20: Fully calibrated analog output CH 1 and CH2

After calibration, the measured value is 1V. To obtain the value calculated by Typhoon
emulator, multiply the measured value with gain from before calibration, which is in our
example 1000 not 971.5 for CH1 and not 968.7 for CH2.

Figure 21: Measuring analog outputs CH1 and CH2 after full calibration

NOTE: When the gain coefficients are obtained (KGCHx) the value in gain field has to be
multiplied with KGCHx each time when it is changed! If some additional offset value is also
need it should be divided with KGCHx and than the obtained offset value added.

New Offset = Required_offset / KGCHx + Compensation_offset

www.typhoon-hil.com
10
Typhoon HIL Analog Outputs Calibration

3 Revision history

Date Version Revision

20-06-12 1.0 Initial release.


20-02-14 1.1 Added: Calibration Tool based procedure

www.typhoon-hil.com
11