exporttooml

Exports the Tcl variable value to the OML variable.

Syntax

set status [exporttooml tclvariablename omlvariablename]

Inputs

tclvariablename
Any valid Tcl variable name as a string.
Type: string
omlvariablename
Any valid OML variable name as a string.
Type: string
Tcl Variable Type OML Variable Type Limitations
Bool Logical  
Int Number  
Double Number  
String String  

Outputs

status
Status of exporting the Tcl variable value to the OML variable.
1 = success
"error message" - failure
Type: int | string

Example

set y 9.9
set status [exporttooml y omly]
1

Comments

Any error reported by OML is returned as a string. Returns 1 on success.