Wiki

This version (24 Aug 2020 17:39) was approved by Max Lehuraux.The Previously approved version (10 Jun 2020 20:59) is available.Diff

Vector Generation

ACE includes a vector generation tool accessible from the left side menu.

This wiki page aims to show how to use it to create vectors. Refer to your device plug-in manual on how to download them to the device under test.

Available vector types

By default, ACE enables users to generate:

  • DC Vectors : output a constant value

  • Single Tone Vectors : output a sine wave

  • Square Vectors : output a square wave

  • Triangle Vectors : output a triangle wave

  • Sawtooth Vectors : output a sawtooth wave

  • Chirp Vectors : output a sine wave whose fundamental frequency changes over time

  • Noise Vectors : output Gaussian or uniform noise signal

  • Multi Tone Vectors : output a waveform composed of multiple sine waves

ACE also enables users to load custom vectors through different format of files:

  • Text Files : One numerical sample value per line. Values are parsed as double precision floating point values (integer values are parsed correctly). Complex (In-phase/Quadrature) vectors can be contained in one file with I/Q values interleaved or into two separate files one for I values and one for Q values.
  • Hex Files : One hexadecimal sample value per line. Values are parsed as short integer or unsigned short integer values. Complex (In-phase/Quadrature) vectors can be contained in one file with I/Q values interleaved or into two separate files one for I values and one for Q values.
  • ACE Files : Device data captures that have been saved with ACE.

Generating a vector

The vector generator tool is composed of three panes:

  1. ADD : Navigate through and select the types of vectors to generate. Add as many vectors of the same type or different types as you want.
  2. GENERATE : Name and configure the vectors to generate.
  3. PREVIEW : Get a time and frequency domain preview of the generated vector

ADD

Vector types are organized into groups. The two default groups are:

  • Common : containing the different waveforms listed above.
  • File : containing the different file formats listed above.

Groups can be expanded/collapsed using the arrow on the right of the group name.

Each vector type and file format available is on single line in their group. The (i) icon, when hovered over, provides information about the vector type or file format. The (+) icon, when clicked, adds the vector type or file format to the list of vectors to generate.

Users can search for vector types or file formats using the search box at the top of the groups.

The ADD pane can be expanded/collapse using the arrow at the right of the “ADD” title.

GENERATE

After clicking the (+) icon on a vector type or file format, a vector's configuration group will be added to the GENERATE pane.

Here is an example for a single tone vector added:

All vectors have common features:

  • Name : rename the vector to be easily identifiable when used in device plug-ins. By default, the name is Vector#x where x is the current number of vectors generated.
  • Trash can icon : when clicked, the vector will be deleted from the generated vectors list and won't be usable in device plug-ins.
  • Preview button : when clicked, the vector data will be drawn in the PREVIEW pane.
  • Copy button : when clicked, an exact copy of the vector will be created.
  • Export button : when clicked, the vector data can be saved as a txt file with one sample value per line. Complex vectors' sample values are interleaved.

Vectors' configuration groups can be expanded/collapsed using the arrow at the right of the vectors' names.

The GENERATE pane can be expanded/collapsed by clicking the arrow at the right of the “GENERATE” title.

All the generated vectors can be deleted at once by clicking the “Clear All Vectors” button at the bottom right of the GENERATE pane.

PREVIEW

The PREVIEW pane display a single vector's data in time and frequency domains.

After clicking the preview button on a generated vector, the title of each graph will change to indicate which vector is currently previewed:

In the time domain, the vector data will be zoomed by default to try to match one period of data if possible, otherwise the whole data is displayed by default.

In the frequency domain, the FFT of the vector data will be zoomed by default from 0Hz to half the sampling frequency value.

Both graph has a set of control buttons:

From left to right:

  1. Allow zooming on graph by clicking and dragging the mouse over the zone of interest.
  2. Allow moving the graph zone of interest (panning) along one or both axes within the current zoom - i.e. time/frequency span and amplitude span are not changed
  3. Restrict the direction/axis along which the graph moves when using previous control.
  4. Fit the entire data into the graph.
  5. Reset graph to the default zoom.
  6. Allow users to provide coordinates of the zone of interest to zoom on.
  7. Auto zoom based on data content.

Vector configuration

All the vectors can be renamed to easily identify them. By default, the name is set to Vector#x where x is the current number of vectors generated.

DC Vector

The configuration elements are:

  1. DC Value : constant value over time that represents the DC waveform.
  2. Number of samples : number of times the constant value will be repeated in the output.

Single Tone, Square, Triangle, and Sawtooth Vectors

These 4 types of vector share the same configuration elements:

  1. Data Rate : sampling frequency of the generated waveform.
  2. Desired Frequency : fundamental frequency of the generated waveform. Note that the frequency will be adjusted to the closest frequency that allows the generation of a coherent signal - i.e. continuous from the last sample to the first sample.
  3. Resolution : number of bits that defines the peak-to-peak amplitude of the signal.
  4. Quantize data : when checked, data samples are generated as integers, otherwise they are generated as double precision floating point values. Refer to your device plug-in to choose the correct option.
  5. Record Length : number of samples to generate.
  6. Offset : amplitude offset to apply to the signal.
  7. Amplitude Control : Option to control the amplitude of the waveform either in decibels or in volts, see options below.
  8. Attenuation : When the amplitude control is set to dB, the amplitude of the waveform is set according to its resolution and attenuated by this value in decibels.
  9. Peak To Peak Amplitude : When the amplitude control is set to V, the amplitude of the waveform is set through this value.
  10. Relative Phase : Phase in degrees to apply to the waveform.
  11. Unsigned Data : If checked, the data generated will only contain positive values.
  12. Allow even cycle count: If checked, the data generated may contain an even number of periods.
  13. Generate Complex Data : If checked, the data generated will contain two waveforms, the In-phase and the Quadrature waveforms.

Chirp Vector

The configuration elements are:

  1. Data Rate : sampling frequency of the generated waveform.
  2. Start Frequency : fundamental frequency at the start of the generated waveform.
  3. Stop Frequency : fundamental frequency at the end of the generated waveform.
  4. Resolution : number of bits that defines the peak-to-peak amplitude of the signal.
  5. Quantize data : when checked, data samples are generated as integers, otherwise they are generated as double precision floating point values. Refer to your device plug-in to choose the correct option.
  6. Record Length : number of samples to generate.
  7. Offset : amplitude offset to apply to the signal.
  8. Amplitude Control : Option to control the amplitude of the waveform either in decibels or in volts, see options below.
  9. Attenuation : When the amplitude control is set to dB, the amplitude of the waveform is set according to its resolution and attenuated by this value in decibels.
  10. Peak To Peak Amplitude : When the amplitude control is set to V, the amplitude of the waveform is set through this value.
  11. Relative Phase : Phase in degrees to apply to the waveform.
  12. Unsigned Data : If checked, the data generated will only contain positive values.
  13. Generate Complex Data : If checked, the data generated will contain two waveforms, the In-phase and the Quadrature waveforms.

Noise Vector

The configuration elements are:

  1. Data Rate : sampling frequency of the generated waveform.
  2. Resolution : number of bits that defines the peak-to-peak amplitude of the signal.
  3. Quantize data : when checked, data samples are generated as integers, otherwise they are generated as double precision floating point values. Refer to your device plug-in to choose the correct option.
  4. Record Length : number of samples to generate.
  5. Amplitude Control : Option to control the amplitude of the waveform either in decibels or in volts, see options below.
  6. Attenuation : When the amplitude control is set to dB, the amplitude of the waveform is set according to its resolution and attenuated by this value in decibels.
  7. Peak To Peak Amplitude : When the amplitude control is set to V, the amplitude of the waveform is set through this value.
  8. Generate Complex Data : If checked, the data generated will contain two waveforms, the In-phase and the Quadrature waveforms.
  9. Unsigned Data : If checked, the data generated will only contain positive values.
  10. Noise Type : Determines the type of noise to generate, either Gaussian or uniform.

Multi Tone Vector

The configuration elements are:

  1. Data Rate : sampling frequency of the generated waveform.
  2. Resolution : number of bits that defines the peak-to-peak amplitude of the signal.
  3. Quantize data : when checked, data samples are generated as integers, otherwise they are generated as double precision floating point values. Refer to your device plug-in to choose the correct option.
  4. Record Length : number of samples to generate.
  5. Offset : amplitude offset to apply to the signal.
  6. Amplitude Control : Option to control the amplitude of the waveform either in decibels or in volts, see options below.
  7. Attenuation : When the amplitude control is set to dB, the amplitude of the waveform is set according to its resolution and attenuated by this value in decibels.
  8. Peak To Peak Amplitude : When the amplitude control is set to V, the amplitude of the waveform is set through this value.
  9. Relative Phase : Phase in degrees to apply to the waveform.
  10. Unsigned Data : If checked, the data generated will only contain positive values.
  11. Allow even cycle count: If checked, the data generated will contain an even number of periods.
  12. Generate Complex Data : If checked, the data generated will contain two waveforms, the In-phase and the Quadrature waveforms.
  13. Number of Sine Waves : number of fundamental frequencies in the waveform to generate. When this number is changed, the number of frequency configuration boxes will be adjusted accordingly.
  14. Frequency x : Fundamental frequency to add to the waveform.

TXT File

The txt file vector must have one and only one numerical sample value per line. Values are parsed as double precision floating point values (integer values are parsed correctly). Complex (In-phase/Quadrature) vectors can be contained in one file with I/Q values interleaved or into two separate files one for I values and one for Q values.

The configuration elements are:

  1. File Format:

Real Vector : One txt file containing the values for a single waveform. Complex - Interleaved : One txt file containing interleaved values for In-phase and Quadrature waveforms. Complex - Separate Files : Two txt files containing values for In-phase and Quadrature waveforms respectively.

  1. File Path : path to the first or only txt file to retrieve the data from.
  2. Second File Path : path to the second txt file to retrieve the quadrature data from when using “Complex - Separate Files” option.
  3. Resolution : informational value that won't impact the data but that can be used by the device plug-in for verification and display purposes.
  4. Data Rate : informational value that won't impact the data but that can be used by the device plug-in for verification and display purposes.

Hex File

The hex file vector must have one and only one hexadecimal sample value per line. Values are parsed as short integer or unsigned short integer values. Complex (In-phase/Quadrature) vectors can be contained in one file with I/Q values interleaved or into two separate files one for I values and one for Q values.

The configuration elements are:

  1. File Format:

Real Vector : One txt file containing the values for a single waveform. Complex - Interleaved : One txt file containing interleaved values for In-phase and Quadrature waveforms. Complex - Separate Files : Two txt files containing values for In-phase and Quadrature waveforms respectively.

  1. File Path : path to the first or only hex file to retrieve the data from.
  2. Second File Path : path to the second hex file to retrieve the quadrature data from when using “Complex - Separate Files” option.
  3. Resolution : informational value that won't impact the data but that can be used by the device plug-in for verification and display purposes.
  4. Data Rate : informational value that won't impact the data but that can be used by the device plug-in for verification and display purposes.
  5. Unsigned Data : If checked, the data will be parsed as positive values only.

ACE File

The ACE file format is the one used when device data captures are saved with ACE. For example, you could capture data from an ADC device and then re-play this captured data on a DAC device.

The configuration elements are:

  1. File Path : path to the csv file from capture.

Saving the vector generator state

Everything done in the vector generator can be saved as part of an ACE session file. The session will contain all the configuration elements and ACE will regenerate all the vectors based on this configuration when the session file is loaded.

resources/tools-software/ace/vector-generation.txt · Last modified: 24 Aug 2020 17:39 by Max Lehuraux