LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset button

Hi,
 
 
I have a vi program which read analog input signals. I would like to build reset button to reset all the signals, enable button to start DAQmx and general program and beep button to stop the signal and hear a beep sound. Do you
a information or example?
 
 
 
0 Kudos
Message 1 of 4
(3,228 Views)

Are you running your code using the Run Continuously button? If you are, that's not a good way.

You need to start with a loop and in that loop decide what to do - if the start button was pressed, you start the acquisition, if the beep button was pressed, you beep and so on. Click File>>New to see some templates for this (for example, Top Level Application Using Events). You can also use the example finder (Help>>Find Examples) to find specific examples of code.

The beep VI can be found in the Graphics & Sound palette.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(3,218 Views)
Hi,
 
 
Thanks for your guildlines.
 
 
Do you have any example that I can look at for reset button?
 
 
I will put all my buttons in the while loop to do.
 
 
Do you also have "enable button and shock buttons" examples that I can look at and easy to apply?
 
 
I already looked at beep VI. It showed the sound symbol, but no button. Do you have beep button example too?
 
 
Regards,
Wang
0 Kudos
Message 3 of 4
(3,219 Views)

There is no point in giving an example for every button. Programming is about building the program, you can't have an example for everything.

Anyway, I'm not sure about the DAQ stuff, but here is a quick example which will show some buttons and event handling in general.

You should read the tutorials for some more background.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(3,202 Views)