Spawn task function as separate VxWorks thread
Use this block to create a task function that spawns as a separate VxWorks® thread. The task function runs the code of the downstream function-call subsystem. For example:
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.
Port_1 — Function-call control signal
A function-call control signal that triggers a Function-Call Subsystem (Simulink) block.
Task function name — Name of thread on VxWorks
Task0 (default) | character vector
Assign a name to this task. You can enter up to 32 letters and numbers. Do
not use standard
C reserved characters, such as the
Thread priority (0 to 255) — Linux thread priority
1 (default) | integer in the range [1,99]
When you set Thread scheduling policy to
SCHED_FIFO, you can set the priority of the
thread from 0 to 255 (low-to-high). Higher-priority tasks can preempt
Linux Task | Function-Call Subsystem (Simulink)