IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

28
WWW.RACALINSTRUMENTSGROUP.CO.UK IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe

Transcript of IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

Page 1: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

IEEE1641Signal & Test Definition

A Quick TutorialChris Gorringe

Page 2: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Signals (and Waveforms)

• Within STD a signal definition is used to define the signal (set of waveforms) that have the particular characteristics required.– The term signal is used to represent a definition

• e.g. bsc:Trapezoid

– A waveform is an instance, implementation or manifestation of a signal.

– A signal may be represented by many waveforms. • E.g. Sinusoidal signal

– Sine Wave

– Cosine Wave

Page 3: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

‘Real’ Signals

• In order for a signal to be realisable (produced by a test system) the signal definition must contain…– Where the signal is required (Connection To UUT)– When the signal is applied (Events)– What are signal types & attributes values

Source

Event

ConnectionConditioning

Page 4: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

‘Real’ Tests

• In order for a test to be realisable (produced by a test system) the test definition must have contain…– Where the test is made (Connection from UUT)– When the measurement is made (Events)– What limits/pass criteria is to be applied– What are signal types & attributes values

SensorConnection

Event

Conditioning

Page 5: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Signals Types

• Signals characteristics are defined as the relationship between one property (dependent type, ordinates) and another property (independent type, abscissa)– How voltage varies with time– How temperature varies with distance– How pressure should remain constant over time

• Can define characteristics as multiple signal types– Need to make sure the properties are orthogonal.

• Voltage over time, Temperature over time• Bad Example - Voltage 2V, Current 2mA

– Since these are related (V=IR)– Implies change the impedance to get desired effect.

Page 6: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Examples

Temperature(C)

Distance (m)

0

20

40

60

80

Pink NoiseExponential Temperature decay

Page 7: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Different Ways of thinking of a Sinusoidal Signal

Voltage

Time

-0.2

-0.4

-0.6

-0.8

-1.0

0.0

0.2

0.4

0.6

0.8

1.0

Time

Power

0.0

0.2

0.4

0.6

0.8

1.0

Voltage

Frequency

0.0

0.2

0.4

0.6

0.8

1.0

Frequency

Time

0

200

400

600

800

1000

0 1 2 3 4 5 6 7 8 9 10 11 12 131415 161718192021222324 252627 282930 31

Page 8: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Signal COTS Support (Techi-Bit)

• Language Interfaces through IDL (Interface Definition Language)– Resource Manager class– IDispatch for scripts and test executives– Support Co-classes for Visual Basic– Support Dual Interfaces for C++, Visual Studio, .NET

• XML Signal Schemas– Define Signals and Tests in XML– XML Signal definitions are used by the Resource

Manager to create the signal• XML Definition of Library Components (TSFs)

Page 9: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Basic Signal Components

Carrier

In

Sinusoid

amplitude = 1.1Vfrequency = 90Hz

phase = 0

AM

modIndex = 0.2

In

Sinusoid

amplitude = 1Vfrequency = 108MHz

phase = 0

Sinusoid

amplitude = 0.9Vfrequency = 150Hz

phase = 0

AM

modIndex = 0.2

Carrier

Sum

In

In

Source

Conditioner

default Value

Key: -

Signal

Out

•Basic building blocks to create any signal

•Attributes configure individual BSCs

•Default values and units simplify use

•Signal passed through In connection

Page 10: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Events

Source

Conditioner

default Value

Signal

Key: -

Sinusoid

amplitude = 1Vfrequency = 1kHz

phase = 0

Exponential

dampingFactor = 1000.0

In

Clock

clockRate = 100Hz

Sync

Event

ProbabilityBasedEvent

prob = 50

Gate

EventIn

Event Conditioner

Out

•Event sources

•Event conditioners

•Provide Sync and Gate

Page 11: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Measurement

MaxInstantaneous

condition = GTlimit = 0.9V

SingleRamp

amplitude = 1VriseTime = 1sstartTime = 0

In

Sinusoid

amplitude = 1Vfrequency = 1080kHz

phase = 0

Gate

Sinusoid

amplitude = 1Vfrequency = 1080kHz

phase = 0

RMSInSource

Conditioner

Default Value

Signal

Key: -

Event

Out

•Direct measurements can be made; e.g. RMS

•Monitor signals for certain trigger conditions; e.g. Greater Than

•Raise Events when trigger conditions are met

•Sequence measurements for analysis; e.g. Find Next Peak

•IEEE 1641 achieves program sequencing though other languages

Page 12: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

BSC ListingSignal Sources

Signal Conditioners

Event Sources & Conditioners

Measurement

List is not 100% correct

Page 13: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

XML•XML template is included in IEEE 1641 Annex I

•BSC names & attributes and physical types are mapped onto XML tags

•Sinusoid XSD example : -

Page 14: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

ILS example

Carrier

In

Sinusoid(SinusoidalVoltage19)

amplitude = 1.1Vfrequency = 90Hz

phase = 0AM

(AM5)

modIndex = 0.2

In

Sinusoid(SinusoidalVoltage20)

amplitude = 1Vfrequency = 108MHz

phase = 0

Sinusoid(SinusoidalVoltage21)

amplitude = 0.9Vfrequency = 150Hz

phase = 0

AM(AM6)

modIndex = 0.2

Carrier

Sum(Sum10)

In

In

Out

Page 15: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Test Signal Framework (TSF)•Build your own re-useable signal definitions

•Framework enables mapping external attributes to internal attributes via formulae and event behaviour

•Popular ATLAS signal definitions carried into STD as TSFs

ThreePhaseSynchro

ThreePhaseSynchro

S1

Product

S2

Product

S3

Product

Field 1

Sinusoid

Field 2

Sinusoid

Field 3

Sinusoid

Rotor

Sinusoid

angle

ampl

freq

SYNCHRO

trans_ratio

angle_rate

channelWidth =

3

phase = angleamplitude = trans_ratiofrquency = angle_rate

phase = angle + (2π /3)amplitude = trans_ratiofrquency = angle_rate

phase = angle - (2π /3)amplitude = trans_ratiofrquency = angle_rate

SML provides functional behavioural model

Page 16: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Types of TSF Attributes• Control Attributes

– An interface attribute is mapped onto a model property, • Expressions or formulae

– An interface attribute is mapped onto a model property via an expression

• Period = 1/freq• delay= range/c -- where c is constant speed of light

• Capability Attributes– An interface attribute that is not mapped onto any signal model is

regarded as a capability attribute. It holds information as to capability of the resource to supply the signal.

• e.g. current 2A - the resource must be capable of supplying a signal which may draw up to 2A

• Value Attributes– A value attribute represents a value from the TSF, as such they tend to

be read only attributes.• When a interface attribute is mapped on to a model measurement attribute

Page 17: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Generic Measure & TSFs• The concept of the generic measurement is that it provides an

inverse function, or demodulating function, for any library component (TSF) or basic signal component (BSC) to measure any of their control attributes.

• Since users can define TSFs, the generic measurement is naturally extended and can be used to measure any control attribute of such a TSF signal.

– As an example of this principle: reading back an RS232 message• <Measure As=”rs232” attribute=”data_word” In=… />

– To read back a list of pulses from a PULSED_AC_TRAIN• <Measure As=“PULSED_AC_TRAIN” attritute=”pulse_train” In=… />

– Measure the rise time of a square(ish) wave• <Measure As=“Trapezoid” attritute=”riseTime” In=… />

– The use of the generic measure is not restricted to measuring single attributes, an example of performing multiple measurements is

• <Measure As=”Sinusoid” attribute=”ac_ampl phase” In=… />

Page 18: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Waveform Aberration

• The generic measure selects the reference waveform described by the reference signal that contains the least error (best match) with respect to the input waveform. The attributes of the reference signal that produce the least error (best match) become the measured attributes.

Exponential Vs Square Wave

Vol

tage

Time

0.0

0.2

0.4

0.6

0.8

1.0

Error Abberation

Vol

tage

Time

-0.2

-0.4

-0.6

-0.8

0.0

0.2

0.4

0.6

0.8

1.0

Page 19: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Measuring Waveform Aberration

• The generic measure can also be used to measure the actual waveform aberration by measuring the error (difference) between this reference waveform and the input waveform. – Example measure the ‘best match’ value or

rms error between the input signal and reference signal

• <Measure As=”Trapezoid” nominal=’trms’ In=… />

Page 20: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Summary

• Given we thought we had a square wave (Green) but what we actually have to measure has some unexpected components (Blue)

Square Wave Example

Vol

tage

Time

0.0

0.5

1.0

1.5

Square Wave Abberration with RMSError

Vol

tage

Time

-0.1

-0.2

-0.3

-0.4

-0.5

-0.6

0.0

0.1

0.2

0.3

0.4

Page 21: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Definition Of TermsV

olta

ge

Time

0 . 0

0 . 1

0 . 2

0 . 3

0 . 4

0 . 5

0 . 6

0 . 7

0 . 8

0 . 9

1 . 0

1 . 1

1 . 2

1 . 3

1 . 4

1 . 5

Average (av)

MaxInstantaneous (inst_min)

MaxInstantaneous (inst_max)

Peak

(pk)P

eakPos

(pk_pos)

PeakN

eg(pk_neg)

nominal

pk_pk amplitude

PeakT

oPeak

(pk_pk)

RMS (trms)nom

inalam

plitudenom

inalam

plitude

DC

offset

Page 22: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Period 1s <Measure As=”SQUARE_WAVE” attribute=”period” />

Duty Cycle 75% <Measure As=”SQUARE_WAVE” attribute=”duty cycle” />

Waveform Aberration trms 0.08467V <Measure As=”SQUARE_WAVE” nominal=”trms” />

Level 0 0.23V1

0.24931V2

<Instantaneous Gate=”State0” In… /><Instantaneous name=”State0” Condition=’LE’ nominal=”0%” In=…/>

Level 1 1.21V1

1.190972

<Instantaneous Gate=”State1” In… /><Instantaneous name=”State1” Condition=’GE’ nominal=”100%” In=…/>

nominal pk_pk ampl nominal pk_pk amplpk_pk amplitude

pk_pk 0.98V1

pk_pk 0.941772

pk_pk 0.95648V

Level 1 – level 0

<Measure As=”SQUARE_WAVE” attribute=”ampl” />

nominal amplitudenominal amplitudeamplitude

0.49V1

0.47083V2

0.47824V

(Level 1 – level 0)/2

<Measure As=”SQUARE_WAVE” attribute=”ampl” />

DC Offset 0.72V1

0.72014V2

0.73098V

(Level 1 + Level 0)/2

<Measure As=”SQUARE_WAVE” attribute=”dc_offset” />

Max Instantaneous 1.46446V <MaxInstantaneous In…/>

Min Instantaneous 0.16765V <Mainnstantaneous In…/>

Peak To Peak pk_pk 1.29681V <PeakToPeak In… />

Average av 0.97027V <Average In… />

RMS trms 1.05444V <RMS In…/>

Peak (Peak Pos) pk_pos 0.49319V <Peak In… />

Negative Peak pk_neg 0.80262V <PeakNeg In… />

Page 23: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

IEEE 1641 - STD

• Defines Signals and Tests• Highlights the need to know measurement

methods, in order to quote meaningful limits and therefore by implication portable tests

• Allows user defined signals and tests that are portable across systems, through TSFs

• Provides an integrated XML and IDL interface for using the standard, across different platforms and technologies.

Page 24: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

End

Page 25: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK IEEE 1641 - STDA Worked Example

• PQSK Signals and Error Vector Magnitude measurements• The PQSK is a digital modulation technique the shifts the

phase of a sinusoidal carrier depending on the value of the next ‘set’ of digital bits– 00 – (0, 360) No phase shift– 01 – (90, -270) phase shift– 10 – (180, -180) phase shift– 11 – (270, -90) phase shift

QPSK

-0.2

-0.4

-0.6

-0.8

-1.0

0.0

0.2

0.4

0.6

0.8

1.0

00 01 10 11 11 01 10 01 01 11 01 11 11 01 01 01 01 01 00 11

Page 26: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Phase Vs Time• PQSK TSF with a data attribute

– Frequency capability attribute– Formula to convert data onto the relevant phase value (mod 360)

required– Signal Model is <WaveformStep type=‘PlaneAngle’ points=‘(data)’ />

• Relies on context, but is a simple model• Use Generic Measure to demodulate the signal

– Convert the signal back into the message– Measure the phase error associated with the message.

Phase vs Time

0

50

100

150

200

250

300

Page 27: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

Want Voltage vs Time Waveform

• PQSK TSF with a data attribute– Frequency control attribute or carrier– Formula to convert data onto the relevant digital data stream

(L,H)– Signal model is more complex

• Use generic measure to demodulate the signal– Convert the signal back into the message– Error vector magnitude is the rms value of the waveform

aberration

QPSK

-0.2

-0.4

-0.6

-0.8

-1.0

0.0

0.2

0.4

0.6

0.8

1.0

Page 28: IEEE1641 Signal & Test Definition A Quick Tutorial Chris Gorringe.

WWW.RACALINSTRUMENTSGROUP.CO.UK

I & Q Channels

• We can create a further TSF I_Q that separates out the I & Q channels from the input signal by conditioning the input signal– In*Sin(wt)– In*Cos(wt)

• Then perform further processing or conditioning on these channels

I/Q Channels

-0.2

-0.4

-0.6

-0.8

-1.0

0.0

0.2

0.4

0.6

0.8

1.0