LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having sound as an indicator

Solved!
Go to solution

I took out the part with the sub vi to make it simpler. I managed to make it beep when i want it to but i also have another question. How do i get the led to turn off when i press the stop button?

0 Kudos
Message 11 of 18
(331 Views)

Here.

There are examples in the .llb files.

0 Kudos
Message 12 of 18
(312 Views)

@dtran4 wrote:

I took out the part with the sub vi to make it simpler. I managed to make it beep when i want it to but i also have another question. How do i get the led to turn off when i press the stop button?


You forgot to save that to an earlier version of LV.  Most people can't open it.

0 Kudos
Message 13 of 18
(310 Views)

I can't open your code, but there are a few ways to change the states of controls and indicators from multiple places.  The fancy way is to use references and property/invoke nodes.  In your simple case you can just use a local variable or control reference.

 

Right-click your LED and create a local variable.  Place it after the loop and wire a false constant from inside to loop to the local.  You may need to right-click it and change it to WRITE READ.  That way, when the loop ends the last thing that happens before the program terminates is to turn off the LED.

 

EDIT: change READ to WRITE. 🙄

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 14 of 18
(294 Views)

@paul_a_cardinale wrote:

I once made an XControl that's an audible indicator, and another that's an audible tweak.

Would you like them?


My answer to "do you want an XControl for ...?" these days is always a strong "NO!"  I've been burned by XControls one too many times.


So kudos for making one complete and working well enough to be willing to share 🙂

0 Kudos
Message 15 of 18
(278 Views)
Solution
Accepted by dtran4

The snippet below will turn off the LED after you press the stop button.

 

I added a WAIT to your loop, you don't need it run as fast as possible.

 

snip.png

Message 16 of 18
(264 Views)

@BowenM wrote:

@paul_a_cardinale wrote:

I once made an XControl that's an audible indicator, and another that's an audible tweak.

Would you like them?


My answer to "do you want an XControl for ...?" these days is always a strong "NO!"  I've been burned by XControls one too many times.


So kudos for making one complete and working well enough to be willing to share 🙂


Where has that burning come from?

XControls that you made, or XControls from others?

0 Kudos
Message 17 of 18
(258 Views)

Both.

 

I've just had a lot of problems with them in the past... generally stemming from trying to make the control do too much.

0 Kudos
Message 18 of 18
(232 Views)