App-6
IM 703155-01E
Sequence Trigger Data (Used on Models with the /AT Option)
For each output terminal set, you can create two sets of trigger data (trigger and trigger
sampling clock) that are synchronized to the waveform data (I and Q). Trigger data is
created when waveform data is created. When generating waveforms according to a
sequence list, the element generation timing can be controlled using the selected trigger
signal according to the SEQ and TRIG menu settings.
Example of Creating Waveform Data
When I
0
= 00110001001000
2
, Event 0 = 1, Event 1 = 1, Q
0
= 00010010001101
2
,
Trigger = 1, Trigger Sampling Clock=0
I
0
+ Event data = 0011000100100011
2
= 0x3123,
Q
0
+ Trigger data = 0001001000110110
2
= 0x1236
Because the byte order is Big endian, store [I
0
+ Event data] and [Q
0
+ Trigger data] as
follows:
Q
n–1
+ Trigger data
I
n–1
+ Event
data
MSB
LSB
0x1 2 3 4
0x3 1 2 3
RMS data of I and Q (IEEE double-precision real number: 64 bits)
Data Conversion
Example of a program that converts binary data into raw data
(Example of a function that converts –1.0
≤
real number
≤
1.0 to 32-bit raw data)
/*
* unsigned int Convert(double i, double q);
*
* Input : double i; ... Floating point I data
* double q; ... Floating point Q data
* Output : None
* Return value : raw data of I/Q
*
* Note:
The double type is assumed to be IEEE double-precision real
number format (64 bits).
* The unsigned int type is assumed to be a 32-bit integer.
*
*/
unsigned int
Convert( double i, double q ) {
#define
MaxData
1.0
/* Maximum floating point
value */
#define
Normalize(X)((unsigned int)(8191.0 * ((X)/MaxData)) +
0x2000)
unsigned int
iu;
/* I raw data value */
unsigned int
qu;
/* Q raw data value */
unsigned int raw;
/* Raw data return
value */
if( i > MaxData )
i = MaxData;
else if( i < -MaxData ) i = -MaxData;
if( q > MaxData )
q = MaxData;
else if( q < -MaxData ) q = -MaxData;
iu = Normalize( i );
/* Convert the I data */
qu = Normalize( q );
/* Convert the Q data */
raw = ( qu << 18 ) | ( iu << 2 );
/* Create raw data */
return raw;
/* Return raw data */
}
Appendix 2 Waveform Data Format