10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Control Language<br />

Library of Functions for Tasks<br />

wcreate_data_type<br />

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

If the appropriate data type does not exist, it is possible to create it using this function.<br />

Usage<br />

wcreate_data_type("name", "base_type")<br />

wcreate_data_type("name", "base_type", "scale_table")<br />

Arguments<br />

• "name"<br />

Name of the new data type (it must be different from existing data types).<br />

• "base_type"<br />

Basic type of the values that will be allowed for this data type. It can be one of the following<br />

strings:<br />

"-Double" for double precision floating point values.<br />

"-Long" for integer values.<br />

"-Complex" for complex values.<br />

"-Enum" to define an enumerated type (need to use wadd_data_enum_value then to<br />

define the allowed values).<br />

• "scale_table"<br />

Name of the associated scale table (where units for this data type are defined). It can be one<br />

of the following:<br />

"Current" for a current scale table (sub-units: fA, pA, nA, …, A, …).<br />

"Frequency" for a frequency scale table (sub-units: fHz, pHz, nHz, …, Hz, …).<br />

"Magnitude" for a magnitude scale table (unit: dB).<br />

"noise" for a noise scale table (unit: dBc).<br />

"Phase" for a phase scale table (unit: radians).<br />

"phased" for a phase scale table (unit: degrees).<br />

"phaseg" for a phase scale table (unit: gradians).<br />

"temperatureC" for a temperature scale table (unit: Celsius).<br />

"temperatureK" for a temperature scale table (unit: Kelvin).<br />

"Time" for a time scale table (sub-units: fs, ps, ns, …, s, …).<br />

"Voltage" for a voltage scale table (sub-units: fV, pV, nV, …, V, …).<br />

Any scale table created with wcreate_scale_table and wadd_scale.<br />

980<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!