MATLAB: Am I unable to access the “RuntimeObject” parameter of the Mux and Demux blocks during runtime in Simulink 6.2 (R14SP2)

demuxemptyhandlemuxruntimeobjectsimulink

The attached model contains Mux and Demux blocks that I would like to access during runtime. If I set the simulation stop time to 'inf', run the model, and select the Mux or Demux block to be the current block, I will get an empty handle when I run the following command:
>> rto = get_param(gcb,'RuntimeObject')
rto =
handle: 0-by-1
However, the documentation accesible in MATLAB 7.0.4 (R14SP2) by running the following command:
web([docroot,'/toolbox/simulink/ug/working_with_blocks27.html'])
states the following:
Every block has a RuntimeObject parameter whose value, while a simulation is running, is a handle for the blocks' runtime object. This allows you to use get_param to obtain a block's runtime object.

Best Answer

This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
This is an error in the documentation for Simulink 6.2 (R14SP2) in the "Accessing Block Data During Simulation" section. Every block except virtual blocks or blocks that are virtualized (reduced) during the compile process has a RuntimeObject parameter.
To find a list of virtual blocks, please take a look at the documentation accesible by running the following command in your MATLAB 7.0.4(R14SP2) command window:
web([docroot,'/toolbox/simulink/ug/working_with_blocks2.html'])