08-15-2005 03:28 AM
08-15-2005 06:04 AM
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.
08-15-2005 07:49 AM
08-15-2005 08:26 AM
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.