rtobj = simwb.rtobj(rthostenvname)
Name of the real-time host environment object that you wish to link with the real-time host object.
The Real-Time Host Object represents the real-time host computer running the Simulation Workbench server process. Using the Real-Time Host Object properties and methods you can connect to the Simulation Workbench server. Once connected to the real-time host, you can load and start a test session, get and set values of RTDB variables, automatically create and upload a RTDB for a Simulink model, and much more.
| Property | Description | Writable |
|---|---|---|
|
RTHostName |
Name of real-time host environment linked to this object. |
No |
|
Connected |
Connection status with the real-time host. |
No |
|
RTWStruct |
Structure for SimWB compliant code generation. |
Yes |
|
RTWStruct.modelname |
Name of the Simulink model for creating a new RTDB or for generating SimWB compliant code. |
Yes |
|
RTWStruct.rtdb |
Name of the RTDB for creating a new RTDB or for generating SimWB compliant code. |
Yes |
|
RTWStruct.systemtargetfile |
Name of the SimWB system target file used for code generation. |
Yes |
|
RTWStruct.SWprefix |
SWprefix option used for creating a new RTDB or for generating SimWB compliant code. |
Yes |
|
Project |
Selected Project. |
Yes |
| Method | Description |
|---|---|
|
Check Simulink model compliance with RTDB |
|
|
Connect MATLAB to the real-time host Simulation Workbench server. |
|
|
Create RTDB for a Simulink model. |
|
|
Disconnect connection between MATLAB and real-time host Simulation Workbench server. |
|
|
Get name of configuration RTDB. |
|
|
Get list of RTDB variables present in the configuration RTDB. |
|
|
Get name of the session currently loaded on the real-time host. |
|
|
Get name of the test currently loaded on the real-time host. |
|
|
Get environment object linked with the real-time host object. |
|
|
Get sorted list of projects on real-time host. |
|
|
Get value of RTDB item present in shared memory. |
|
|
Get list of RTDB's present on the real-time host. |
|
|
Get value of RTDB parameter present in shared memory. |
|
|
Get list of sessions present in a test. |
|
|
Get name of RTDB present in shared memory. |
|
|
Get details on items, parameters, and signals present in shared memory RTDB. |
|
|
Get list of tests present on the real-time host. |
|
|
Get status of the test that is currently loaded on the real-time host. |
|
|
Load RTDB into configuration memory. |
|
|
Create specified project directory on real-time host.. |
|
|
Unload RTDB from the server. |
|
|
Reset operator override flag for RTDB items. |
|
|
Generate SimWB compliant code for Simulink model. |
|
|
Set value of RTDB item present in shared memory. |
|
|
Set value of RTDB parameter present in shared memory. |
|
|
Start a test session. |
|
|
Stop currently running test session. |
|
|
Connect input of one model to output of another model for a given test. |
|
|
Upload hardware mappings for RTDB to the real-time host. |
|
|
Upload RTDB to the real-time host. |