Returns current status information of a semaphore.

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


icon

Inputs/Outputs

  • cdlrn.png semaphore

    semaphore is a reference to a semaphore.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • istr.png name

    name contains the name of the semaphore.

  • idlrn.png semaphore out

    semaphore out has the same value as semaphore.

  • ii32.png # available

    # available contains the number of tasks that can acquire the semaphore at the current time. This number is always less than or equal to size.

  • ii32.png # waiting

    # waiting is the number of Acquire Semaphore functions currently waiting to acquire the semaphore.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • ii32.png size

    size contains the maximum number of tasks that can acquire the semaphore at a time.