Trees | Indices | Help |
|
---|
|
object --+ | RTDB
The RTDB class encapsulates all the available information on the items in a running test's RTDB. This includes Simulink model parameters and signals, and SimWB created items (i.e. items created by tasks, SimWB stats, etc). If no test is running then all lookup functions return no matches. Example usage: import simwbPath import simwbClient as swb swb.connect('localhost') swb.login('admin/nimda') swb.projectSelect('Simulink') swb.sessionStart('rtdemo1') rtdb = swb.RTDB() possibles = rtdb.Regex('^reference$', blind=True) if len(possibles) > 1: sys.exit('Too many reference matches!') lf len(possibles) == 0: sys.exit('No reference matches!') reference = possibles[0] print 'cvttype of %r is %r' % (reference.Name,reference.CVTType) val = reference.Value print 'current value is %r' % val print 'set current value to 20' reference.Value = 20
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Init Reinitialize state. |
|
Items A list of dictionaries, keyed by name, of all RTDB items in the currently running test. |
|
Names A sorted list of all RTDB item names in the currently running test. |
|
Project The project name of the currently running test. |
|
RTDBName The RTDB name of the currently running test. |
|
Running True/False when a test is/is-not running on the target. |
|
Inherited from |
Method Details |
Returns a list of RTDBItem objects for all names matching the shell wild-card pattern 'pattern'. No wild-card pattern returns the entire list. |
Returns a list of RTDBItem objects for all names matching the regular expression 'regex'. No regular expression returns the entire list. Set 'blind' to True for a blind case comparison. |
x.__init__(...) initializes x; see help(type(x)) for signature
|
repr(x)
|
Property Details |
InitReinitialize state.
|
ItemsA list of dictionaries, keyed by name, of all RTDB items in the currently running test.
|
NamesA sorted list of all RTDB item names in the currently running test.
|
ProjectThe project name of the currently running test.
|
RTDBNameThe RTDB name of the currently running test.
|
RunningTrue/False when a test is/is-not running on the target.
|
Trees | Indices | Help |
|
---|
(c) Concurrent Real-Time | http://www.concurrent-rt.com |