Specifications

Using the RTDX Control to Change the Load at Run Time
Analyzing Real-Time Behavior
6-9
14) Using the Windows Explorer, run loadctrl.exe, which is located in your
working folder. The Load Control window appears.
Each mark on the slider changes the load value by 50, or about 50,000
instructions.
This simple Windows application was written using Visual Basic and
RTDX. If you have Visual Basic, you can examine the source files for the
loadctrl.exe application stored in the c:\ti\c6000\tutorial\volume4\ folder.
This application uses the following RTDX functions:
rtdx.Open("control_channel", "W")
. Opens a control channel to
write information to the target when you open the application
rtdx.Close()
. Closes the control channel when you close the
application
rtdx.WriteI2(dataI2, bufstate)
. Writes the current value of the slider
control to control_channel so that the target program can read this
value and use it to update the load
15) Choose Debug
Run or click the (Run) toolbar button.
Notice that processing_SWI occurs once every 10 time ticks (and PRD
ticks). PRD_swi runs once every 2 PRD ticks. The loadchange_PRD runs
within the context of PRD_swi. These are the expected execution
frequencies.