LabTalk Object Type:
The Python object provides script access for running basic Python commands and exchange data with Python console.
Method | Description |
---|---|
Python.Init() |
Initiate the Python application. |
Python.Exec(strCommand) |
Execute one or multiple Python command lines via string strCommand. |
Python.Send(OriginRange, PyObjectName) |
Send Origin data range OriginRange to Python as object PyObjectName. |
Python.Receive(OriginRange, PyObjectName) |
Receive Python object as Origin data range OriginRange. |
Python.GetReal(LabTalkVar, PyObjectName) |
Assign the numeric value of Python object PyObjectName to Origin variable LabTalkVar. |
Python.SetReal(LabTalkVar, PyObjectName) |
Assign the numeric value of Origin variable LabTalkVar to Python object PyObjectName. |
Python.GetStr(LabTalkVar, PyObjectName) |
Assign the string value of Python object PyObjectName to Origin string variable LabTalkVar. |
Python.SetStr(LabTalkVar, PyObjectName) |
Assign the string value of Origin string variable LabTalkVar to Python object PyObjectName. |
Please view this page for examples.