Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Semaphore VIs

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

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.

Palette ObjectDescription
Acquire SemaphoreAcquires access to a semaphore.
Create SemaphoreLooks up an existing semaphore or creates a new semaphore and returns a refnum.
Destroy SemaphoreDestroys the specified semaphore.
Get Semaphore StatusReturns current status information of a semaphore.
Not A SemaphoreReturns TRUE if semaphore is not a valid semaphore refnum.
Release SemaphoreReleases access to a semaphore.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit