exporttotcl

Exports OML variable value to Tcl variable.

Syntax

[status,errormessage] = exporttotcl (omlvariablename,tclvariablename)

Inputs

omlvariablename
Any valid Tcl variable name.
Type: logical | number | string | cell | struct | matrix | ndmatrix
OML Variable Type Tcl Variable Type Limitations
Logical Bool  
Number Int or Double  
String String  
Cell (1,n) n:number of elements in cell List Supports only if cell contains the following OML data types: Logical, Number, String
Struct Dictionary Struct with one dimension only are supported. Supports only if struct contains the following OML data types: Logical, Number, String
Matrix Dictionary Supports only if matrix contains following OML data types: Logical, Number
ND-Matrix Dictionary Supports only if ND-matrix contains following OML data types: Logical, Number
tclvariablename
Any valid Tcl variable name as a string.
Type: string

Outputs

status
Status of exporting the oml variable value to Tcl variable.
1 = success
0 = failure
Type: number
errormessage
Error message indicating the failure.
Type: string

Example

mystruct = struct('k',true,'key2',1,'key3',2.2,'key4','4');
[status,errormessage]=exporttotcl (mystruct,'tcl_mystruct')
status = 1
errormessage =