VTaskDelay Block

How this block appears in a Simulink model?


What can be configured?

Configuration Parameter Selectable Option/Value Description
Auto divide by port tick period ms Check--Uncheck By default, delay can be defined as number of ticks. If this parameter is ‘Checked’, The defined ‘Tick value’ units will be considered in milliseconds instead of ticks.
Tick value Enter the tick value
Sample time (sec) -1 (inherited) or specify Specify the sample time

When to use this block?

This block can be used as a delay in the program.

How does this block work?

This block invokes the function ‘vTaskDelay()’ in FreeRTOS.
If ‘Auto divide by port tick period ms’ is ‘Checked’:
vTaskDelay(Tick value);
vTaskDelay(Tick value/portTICK_PERIOD_MS);

Previous : xTaskCreate Block
Next : Camera Block

Also available in: PDF HTML TXT