famSetExpr
famSetExpr(o_waveform t_expr) =>t_expr/ nil
Description
Sets the specified expression for the waveform.
Arguments
|
ID of the waveform object for which the expression is to bet set. |
|
Value Returned
|
The expression cannot be set for the specified waveform object. |
Examples
The following example sets the specified expression for the waveform object, waveform.
waveform=expr(x sin(x) linRg(0 20.0 .5))
; Creates a waveform object representing the waveform sin(x) from x=0.0 to x=20.0. The expression is evaluated at x=0.0, 0.5, 1.0, 1.5, ..., 20.0.
=> srrWave:0x327010b0
famGetExpr(waveform)
; Returns the expression for the specified waveform object, waveform.
=>
expr(x
sin(x)
linRg(0 20.0 0.5)
)
famSetExpr(waveform "sine_expression")
; Sets the specified expression "sine_expression" to the waveform object, waveform.
=> "sine_expression"
Return to top