Index
The Converters ToolBox
This toolbox consists of a collection of units which convert from one TrianaType to another. Normally, these units
will be used in association with others which deal directly with vector data. One such unit, the Importer for
example, can be used to import data from text or binary files. Of coarse, before we can use this Vect vector data we
must give it some extra information e.g. a sample rate so that the various Triana units can display and process it
correctly.
Index
VectTo...
- VectToSSet
. This unit converts the VectorType TrianaType into a SampleSet. For example, using
this unit you can load in a set of samples (using the Importer unit) and then convert these into a SampleSet by
adding extra information, such as sample rate, a descriptive string a time stamp etc. All such parameters can be set
by using VectToSSet's parameter window (shown when the user control double-clicks on the unit).
- VectToSpec
This unit converts the VectorType TrianaType into a Spectrum. For example, using this
unit you can load in a set of samples using the Importer unit and then convert this set of activations into a
Spectrum by adding extra information, such as sample rate, a descriptive string a time stamp etc. All such
parameters can be set by using VectToSpec's parameter window (shown when the user control double-clicks on
the unit).
- VectToCSSet
. This unit converts the VectorType type into a ComplexSampleSet. For example, using
this unit you can load in a set of real and imaginary sample values using the Importer unit and then convert these
into a ComplexSampleSet by adding a sample rate, and an optional descriptive string and a time stamp. All parameters
are set by using VectToSSet's parameter window (activated when the user control double-clicks the unit). Also
in this parameter window, there is a choice box which allows you to specify what format the data is in i.e. whether
the data was packed real, imag, real, imag, real, imag etc. or real, real, real ... imag, imag, imag
...
- VectToCSpec
. This unit converts the VectorType type into a ComplexSpectrum. For example, using
this unit you can load in a set of real and imaginary sample values using the Importer unit and then convert this
into a ComplexSpectrum by adding a sample rate, and an optional descriptive string a time stamp. All parameters are
set by using VectToSSet's parameter window (activated when the user control double-clicks the unit). Also in
this parameter window, there is a choice box which allows you to specify what format the data is in i.e. whether the
data was packed real, imag, real, imag, real, imag etc. or real, real, real ... imag, imag, imag ...
- VectToConst
. This unit converts the VectorType type into a Const, allowing a stream of constants
to be imported from a file via the Importer and this unit.
...ToVect
These units are no longer needed as frequently as they wer in previous versions of
Triana. In most circumstances now, units that require this transformation (i.e. Grapher) do these conversions
automatically.
- SSetToVect
. This converts a SampleSet to a TwoD (2 dimensional type).
- SpecToVect
. This converts a Spectrum to a TwoD (2 dimensional type).
- VectToVect
. This converts a VectorType to a TwoD (2 dimensional type).
- HistToVect
. This converts a Histogram type into a TwoD (2 dimensional type) This is no longer needed
in most circumstances because units which require this transformation (i.e. the Grapher) do the conversion
automatically now.