Functions Palette/Programming/Synchronization/Semaphore

From LabVIEW Wiki
Jump to: navigation, search
Obtain Semaphore ReferenceAcquire SemaphoreRelease SemaphoreRelease Semaphore ReferenceGet Semaphore StatusNot A Semaphore
About this image
Semaphore palette (Click on a function to navigate, or on the arrow to go to parent palette)
Object information
Owning palette(s) Synchronization palette
Type Subpalette
Requires Basic Development Environment

Use the Semaphore VIs to limit the number of tasks that can simultaneously operate on a shared (protected) resource. A protected resource or critical section of code might include writing to global variables or communicating with external instruments.

You can use the Semaphore VIs to synchronize two or more separate, parallel tasks so that only one task at a time executes a critical section of code protected by a common semaphore. In particular, use these VIs when you want certain VIs or parts of a block diagram to wait until another VI or part of a block diagram is finished with the execution of a critical section.


Icon Name
Obtain Semaphore Reference Obtain Semaphore Reference
Acquire Semaphore Acquire Semaphore
Release Semaphore Release Semaphore
Release Semaphore Reference Release Semaphore Reference
Get Semaphore Status Get Semaphore Status
Not A Semaphore Not A Semaphore


Version Change(s)
LabVIEW 2018 More info to come.