SIMulation Workbench


Companion Tools


These tools provide functionality that the user might find useful. While not strictly a necessary part of the PYToolkit, they can ease certain aspects of its use. In particular, the simwbDLClient module can be daunting due to the complex way that data is recorded in SimWB. Hopefully the user can use this program as-is. If not, then a working example of its use will surely be helpful.

Everything here should run using Python 2 or 3. The following descriptions will simply refer to "python", but could just as easily have referred to a more specific version (e.g. python2, python3.6, etc).

dlxtractrem.py

simwbTarget.pyc


Demos


A few Python scripts are provided here demonstrating PYToolkit usage. They have been designed to be both useful as stand-alone command line programs as well as demonstration aids. Just right-click the link and save the program to use it.

These two are the simplest. They are single-use and do not contain all of the complexity of a general purpose, stand-alone program. But they serve as simpler examples to those that are not quite so expert at Python.

startStop.py

createTestAndICs.py

Usage statements and command line options are shown below along with a brief description of the program. Usage can always be generated with the '-h' option by itself (e.g. python startTest.py -h). These programs will work on both the SimWB host machine as well as on clients (Linux or Windows), just as long as the PYToolkit is available somewhere on your machine's PYTHONPATH. Be aware that getItem.py utilizes ANSI terminal control sequences on output. When running on Windows you need to install ANSI.SYS or remove these sequences from the script.

Most of these programs utilize the getTarget() API call using the default environment variable SIMWB_TARGET (click on the call for more details).


getItem.py

setItem.py

startTest.py

stopTest.py

streamLogs.py

connect2.py

refreshData.py

startHMI.py

pcmcc.py

ASAMDemo.py

ASAMDemoMAPOnly.py

The following three links should download when clicked. If not then right-click and save/download the file.

ASAMDemo.gp

ASAMDemoTarget.xml

simplepid.mdl