value()

Prints the value of a Simulation Expression variable representing an integer, real, complex as a string

Syntax
value(Value)

Arguments
Name Description Type Required
Value Value that is to be printed integer, real, complex, string, or array † yes
† Supports integer, real and complex arrays. For string arrays use the sprintf() function

Examples

rA = makearray(1, 1, 2, 3)
returns an array (1,2,3)
cA = makearray(2, 1+j*1, 2+j*2, 3+j*3
calue_cA = value(cA)
returns "(1,1) (2,2) (3,3)"
sA = makearray(3, "One", "Two", "Three")
value_sA = value(sA)
returns "One Two Three"

See Also

echo(), sprintf()

Notes/Equations

The value() function is used to format a Simulator Expression variable in text format. The returned string text can then be printed in the data display.

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources