-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from AVSLab/feature/286-sysmodel-logger
Feature/286 sysmodel logger
- Loading branch information
Showing
141 changed files
with
956 additions
and
888 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
|
||
.. _bskPrinciples-11: | ||
|
||
.. warning:: | ||
|
||
This section refers to a deprecated way of logging variables. Refer to previous documentation pages for the updated way. | ||
|
||
Deprecated: Setting and Recording Module Variables | ||
================================================== | ||
|
||
The deprecated :ref:`SimulationBaseClass` method to record a module variable is:: | ||
|
||
scSim.AddVariableForLogging( variableString, recordingTime, indexStart==0, indexStop==0) | ||
|
||
Here ``variableString`` must be composed of the module tag string, a period and the variable name. | ||
The examples above illustrate how to apply this method for a C or C++ module variable. | ||
|
||
The ``recordingTime`` variable is the minimum time that must pass, in nano-seconds again, before the | ||
module variable is recorded. | ||
|
||
The optional integer arguments ``indexStart`` and ``indexStop`` are defaulted to zero, resulting in a | ||
single value being recorded. As this example is also recording a 3-dimensional array ``dumVector``, | ||
it is recorded by setting the start and end index to 0 and 2 respectively. | ||
|
||
After executing the script, the recorded variables are retrieved in general using | ||
the :ref:`SimulationBaseClass` method:: | ||
|
||
scSim.GetLogVariableData(variableString) | ||
|
||
Here ``variableString`` is again composed of the ``ModelTag`` and variable name as before. Note that the returned array has a first column that represents the time where the variable is recorded in nano-seconds. Executing the script you should thus see the following output: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.