vsTASKER 7 User Manual
×
Menu
Index

Runtime Code

 
Runtime Code
1

Code

1. Code
Write here the code to get/put data from/to the RTI.
The comments remind of the syntax to use for publishing or subscribing data in/out.
 
2

Parent

2. Parent
Current parent of the selected Attribute/Parameter (ie: PosY) belonging to Object/Interaction (ie: Participant).
The list displays all parents if available, excluding MOM ones.
No effect if manually changed.
 
3

Name

3. Name
Name of the selected (current) Attribute/Parameter.
The list displays all Attributes/Parameters having the same Parent (ie: Participant).
User can change with immediate effect. Same thing as closing the window then selecting another Attribute/Parameter from the SOM window.
 
4

Type

4. Type
Current type of the Attribute/Parameter.
No effect if manually changed.
 
5

Wizard

5. Wizard
Click this button to automatically fill the user code part with appropriate data.
The wizard does not work on all configurations and for all RTI versions.
 
6

Activated

6.
When this is ON, vsTASKER will generate the code (above).
If not activated, code will be skipped.
 
Note that when the Code part is empty (no user code), even if this option is turned ON, code will be skipped.
It can be useful to force the publish mode of an Attribute even without user code.
This can happen when user will publish a value using the generated interface.
To force publishing of the Attribute, just put the following code:
 
void;
 
7

Console Trace

7.
This checkbox is for subscribers only.
When checked, even without user code, anytime a data is received from the RTI for the particular Attribute/Parameter, the simulation engine will output a printout.
This can be useful to know what are the data that other federates are producing.
When tracing is ON, the tick mark is shown in magenta:
 
Option shall be turned OFF for release versions.