Real-Time Workshop VxWorks blocks will leverage operating system calls. This is a feature. There are two VxWorks blocks provided, vxinterrupt1 (or vxinterrupt in older release) and vxtask1 (or vxtask in older release).
vxinterrupt1 is used in the context of ISR. This block uses operation system calls to save/restore floating pointer context, or lock/unlock interrupt. This block will not use semaphore related calls.
The VxWorks block task1 creates a Task which is spawned as a separate VxWorks task. When this block runs, a semaphore is used to enable the task execution. For this block, semaphore related calls are used. The Task Sync block is the only block which uses the VxWorks system call taskSpawn to spawn an independent task. The other blocks in the VxWorks library (“Async Interrupt”, “Protected RT” and “Unprotected RT”) will not generate VxWorks operating system calls.
So you should use vxinterrupt1, not task1 block.
Best Answer