Main Content

RT.Kernel

Get real-time kernel property information and access child object for timers, executables, and drivers

Since R2023b

Description

The RT.Kernel object provides property information about the real-time kernel and provides access to properties for timers, executables, and drivers. See the RT.Timer, RT.Executable, and RT.Driver objects.

Creation

Installing Simulink® Desktop Real-Time™ installs the real-time kernel. When the kernel is installed, starting Simulink creates an RT.Kernel object that represents the real-time kernel. If the kernel has been uninstalled or is out of date, use the sldrtkernel function to install the kernel.

Properties

expand all

The Version property provides the real-time kernel version as a 1-by-4 array.

Example: [23 2 0 0]

The TargetArchitecture property provides the real-time kernel platform as a character vector.

Example: 'win64'

The RT.Timers property is an array of Timer objects that represent the active timers in the real-time kernel.

Example: [1×0 RT.Timer]

The Drivers property is an array of Driver objects that represent the active drivers in the real-time kernel.

Example: [1×0 RT.Driver]

The Executables property is an array of Executable objects that represent the active executables in the real-time kernel.

Example: [1×0 RT.Executable]

Object Functions

createTimerCreate timer in real-time kernel
loadExecutableLoad executable into real-time kernel
loadDriverLoad driver instance into real-time kernel

Examples

collapse all

This example shows how to get kernel property values for the RT.Kernel object.

Create a variable that represents the kernel, then get the Version property value.

myKernel = RT.Kernel;
myKernel.Version
ans =

    23     2     0     0

Version History

Introduced in R2023b