10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Eldo Control Language<br />

Library of Functions for Tasks<br />

wset_values<br />

Task function category: Functions Creating New Waveforms<br />

This function can be used to set points to a waveform created with the wcreate_wave function if<br />

the x and y vectors were not given at that time. It can also be used to add new points to the<br />

waveform.<br />

Usage<br />

set_values(wave, y_values)<br />

wset_values(wave, x_values, y_values)<br />

Arguments<br />

• wave<br />

Waveform created with wcreate_wave.<br />

• x_values<br />

Vector containing the x-values of the points to plot. If this argument is omitted, then the<br />

indexes of the y-values in the vector y_values are taken as x-values. The values of x_values<br />

have to be ordered.<br />

• y_values<br />

Vector containing the y-values of the points to plot. This vector can contain complex values<br />

if the data type of the y-axis is set to "complex".<br />

Description<br />

The only restriction is that all the x-values must be ordered: it is not possible to add a point (x,y)<br />

to the waveform if its current last point (xl, yl) is such that xl > x. The function returns the<br />

number of values that have been successfully saved.<br />

Examples<br />

In the example given for wcreate_wave, it would have been possible to write the following in<br />

the task definition:<br />

Eldo® User's Manual, 15.3 1003

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!