Main Content

VxWorks Task

Spawn task function as separate VxWorks thread

Add-On Required: This feature requires the Embedded Coder Support Package for ARM Cortex-A Processors add-on.

  • VxWorks Task block

Libraries:
Embedded Coder Support Package for ARM Cortex-A Processors

Description

The VxWorks Task block creates a task function that spawns as a separate VxWorks® thread. The task function runs the code of the downstream Function-Call Subsystem.

The VxWorks Task block uses a first in, first out (FIFO) scheduling algorithm, which executes real-time processes without time slicing. With FIFO scheduling, a higher-priority process preempts a lower-priority process. While the higher-priority process runs, the lower-priority process remains at the top of the list for its priority. When the scheduler blocks the higher-priority processes, the lower-priority process resumes.

The VxWorks Task block uses FIFO scheduling.

Examples

Ports

Output

expand all

A function-call control signal that triggers a Function-Call Subsystem block.

Parameters

expand all

Specify a name for this task. You can enter at most 32 letters, numbers, or a combination of letters and numbers.

Programmatic Use

Block Parameter: taskName

Specify the priority of the VxWorks thread from 1 to 99 (low-to-high). Higher-priority tasks can preempt lower-priority tasks.

Programmatic Use

Block Parameter: taskPriority

Version History

Introduced in R2014a

See Also