Beep On/Off |
Frequency |
Output |
Here we have three CVP Java applets: two for controlling (push button and slider) and one for monitoring (bar). The push button and the slider control the speaker on the PC running the server. Pressing the button toggles the state of the Control Variable "CVPDEMO_BEEP" between "ON" and "OFF". The control program, CVPSRVR.EXE, monitors this variable and turns the speaker on or off. The slider sets the value of Control Variable "CVPDEMO_INPUT" to a number from 440 to 880, which CVPSRVR uses to set the frequency of the tone. Finally, the bar is monitoring changes in the variable "CVPDEMO_OUTPUT".