viernes, 30 de mayo de 2014

(labVIEW) Semaphore

In this post i will explain what is the semaphore function and how to use.

The semaphore is used when you want a VI or a portion of the block diagram wait another VI or other end of the chart to not waste CPU resources because Windows can not run both at the same time, although seems so.

With this function you can have two parts are executed simultaneously or a wait for the other end but is often used to choose which part runs before another.

In this case I made a simple LED in which two alternates, so that program until one goes, the other does not turn on.

This is the block diagram.














In the first while loop, the first LED is on for three seconds and then turns off. When this happened, the second while loop do the second LED is on for three seconds.

And this is the front panel:




No hay comentarios:

Publicar un comentario