Change properties
Purpose
Description
Macro Synopsis
Tips
Modules
Related Functions
Purpose
Change properties.
Description
"Change properties" changes the changeable properties of the selected signal. The
properties of a signal in Dataplore ® are
- the signal title,
- the axes units,
- the x-axis-offset (called shift) of the signal and
- the sampling period or distance between consecutive sampling
points (called scale) ranging from
to
.
There are two additional parameters that apply to 2D
signals only:
- the y-axis-offset of the signal and
- the y-axis sampling period or distance between consecutive sampling
points of the signal (see above).
Warning: Note that with interactive use, this function does not
yield a new signal, so be aware that you cannot undo these changes.
In the Dataplore ® macro language, the properties of a signal can only be
changed individually by the macro functions shown below.
Macro Synopsis
y = SetShift(x,shift);
y = SetScale(x,scale);
SetTitle(y,title);
SetUnitX(y,xunit);
SetUnitY(y,yunit);
signal x,y;
float shift,scale;
string title,xunit,yunit;
Tips
Note that since the macro functions SetTitle(),
SetUnitX() and SetUnitY() have no return value, you should
first assign the new scale and/or the new shift to a new signal and
then set its title and units (as shown above).
In order to minimize roundoff errors especially when assigning a new
scale to your signal, you better give the new scale in exponential
format with a mantissa of only few significant digits.
Modules
Student, Professional
Related Functions
SetScale, SetTitle,
SetUnitX, SetUnitY,
SetValue.