09-20-2024 09:02 PM
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?
09-22-2024 07:36 AM
Here.
There are examples in the .llb files.
09-22-2024 07:37 AM
@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.
09-23-2024 08:54 AM - edited 09-23-2024 09:11 AM
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. 🙄
09-23-2024 11:13 AM
@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 🙂
09-23-2024 12:41 PM
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.
09-23-2024 12:56 PM
@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?
09-24-2024 11:47 AM
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.