Software
Toggle Example: volume mute
CNRFHT30
A
press1
press2
press3
press4
press5
press6
press7
press8
48 • Crestron SIMPL Windows
Toggle Example: Volume Mute
A Toggle symbol provides an easy way to implement a single-button volume mute.
Shown is a mute button being connected to the 'clock' input. Each press of this
button will cause the signal 'Mute_On' to alternate between logic high and low.
Typically this output signal would be routed to a muting relay inside of a volume
controller such as the ST-VC. Also note the use of the 'reset' input, which forces the
volume to unmute any time the user presses the volume up or down buttons.
Toggle
set
reset
Mute On/Off
clock
Vol_Up
in1
Vol_Down
in2
One word of caution: using a Toggle symbol in this manner would not be
recommended when controlling a device that itself provides only a toggling mute
function. For example, if you were controlling an AV Receiver via IR, it may have a
mute function that will Toggle between mute and unmute each time the command is
sent. In this case, you would not want a latching on/off signal, but instead you should
connect the mute button signal directly to the IR command. You might then be
tempted to use the Toggle symbol to provide realistic feedback on a Touchpanel,
showing the user what state the receiver was in. Be careful here as well, because it is
generally not recommended to provide state feedback unless you can be sure that it is
correct. Thus if you suspect that the feedback and the actual state of the receiver can
become 'out of sync' with one another, it may be best to provide momentary
feedback.
Toggle Example: Device Power On/Off
The last example used only the 'out' output signal from the Toggle to control mute
status. Sometimes both the 'out' and 'out*' outputs are required. Take for example
an RS-232 controlled video projector. Often such devices will have separate
commands for power on and power off. The program shown uses both outputs of the
Toggle to drive these commands. On each successive rising-edge of the
'vproj_power' signal, one of the power commands will be sent. Note of course that
the Toggle outputs are latching, but because RS-232 commands are only sent on the
rising-edge of the driving signal, this does not present a problem. However, if the
video projector were IR controlled, we would not want to program like this, since the
corresponding IR command would be sent continuously to the device. Instead, we
could add additional logic to create a short pulse from the Toggle outputs. This will
be covered later on in this manual.
Crestron SIMPL Windows
Mute_State
out
out*
Mute_Off
OR
out
Volume Controller
muteA
volA
muteB
volB
muteC
volC
Primer – DOC. 6253
Need help?
Do you have a question about the SIMPL Windows and is the answer not in the manual?
Questions and answers