Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Release Semaphore Reference VI

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Semaphore VIs

Requires: Base Development System

Releases a reference to a semaphore.

Use this VI in conjunction with the other Semaphore VIs to implement a semaphore in LabVIEW.

Details  Example

semaphore is a reference to a semaphore.
force destroy? specifies whether to destroy the semaphore. If FALSE (default), LabVIEW destroys the semaphore only if no other references to the semaphore exist. If TRUE, LabVIEW releases all references to the semaphore and destroys the semaphore.
error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality.

This node runs normally even if an error occurred before this node runs.
semaphore name is the name of the semaphore.
error out contains error information. This output provides standard error out functionality.

Release Semaphore Reference Details

All Acquire Semaphore VIs that are currently waiting on this reference to the semaphore time out immediately and return an error. This does not affect any Acquire Semaphore VIs that are waiting on a different reference to the same semaphore. However, if force destroy? is TRUE, all Acquire Semaphore VIs, including those that are waiting on a different reference to the semaphore, time out immediately and return an error.

Example

Refer to the Simple Semaphore VI in the labview\examples\Synchronization\Semaphore directory for an example of using the Release Semaphore Reference VI.


 

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