Main Content

Simulink.GlobalDataTransfer

Configure concurrent execution data transfers

Description

The Simulink.GlobalDataTransfer object contains the data transfer information for the concurrent execution of a model. To configure the data transfer, use the object properties. To access and change the properties, create the object using the get_param function, then use dot notation.

Creation

To create the object, use the get_param function to get the object handle.

Description

example

dt = get_param(gcs,'DataTransfer') returns the handle of the Simulink.GlobalDataTransfer object.

Properties

expand all

Data transfer handling option when the source and destination of a signal are in two different and periodic tasks, specified as one of these values:

  • 'Ensure data integrity only'

  • 'Ensure deterministic transfer (maximum delay)'

  • 'Ensure deterministic transfer (minimum delay)'

Data Types: char

Data transfer handling option for signals that have a continuous sample time, specified as one of these values:

  • 'Ensure data integrity only'

  • 'Ensure deterministic transfer (maximum delay)'

  • 'Ensure deterministic transfer (minimum delay)'

Data Types: char

Data transfer extrapolation method for signals that have a continuous sample time, specified as one of these values:

  • 'None'

  • 'Zero Order Hold'

  • 'Linear'

  • 'Quadratic'

Data Types: char

Examples

collapse all

Access and change the properties of a Simulink.GlobalDataTransfer object. This example uses the model, slexMulticoreSolverExample.

Use the get_param function to create the object dt. Then, use dot notation to access and change the value of the object properties.

Create the object.

load_system('slexMulticoreSolverExample')
mdl = 'slexMulticoreSolverExample';
dt = get_param(mdl, 'DataTransfer');

Access the properties.

dt.DefaultTransitionBetweenSyncTasks
ans = 
'Ensure deterministic transfer (maximum delay)'
dt.DefaultTransitionBetweenContTasks
ans = 
'Ensure deterministic transfer (maximum delay)'

Change values of the properties.

dt.DefaultTransitionBetweenSyncTasks='Ensure deterministic transfer (minimum delay)';
dt.DefaultTransitionBetweenContTasks='Ensure deterministic transfer (minimum delay)';

Version History

Introduced in R2012b