get_labtalk_variable
Retrieve the value of a LabTalk variable from Origin Pro for use in data analysis and scripting workflows.
Instructions
Get the value of a LabTalk variable.
Gotchas: numeric variables that don't exist read as 0, and variables
declared with a type (e.g. int x = 5) are script-local — they vanish
when the script ends. Use untyped assignment (x = 5) in run_labtalk
if you want to read the value back later.
Args: name: Variable name. Use $ suffix for strings (e.g., 'str$')
Returns: Variable value as string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |