Specifications

EssentialsofCrestronProgramming
70
TheOneShotsymbolrespondstoarisingedgeonthe<trig>inputbydrivingtheoutput
signal(connectedto<out>)highforthedurationspecifiedbythedoubleprecision
<time>parameter.Theoutputsignalwillremainhighonlyforthisduration,regardless
ofwhatishappeningonthe<trig>input.Once<out>ha
sgonelow,thesymbolmaybe
retriggeredbyanotherrisingedge.Theoutput<out*>isthecomplementof<out>,just
aswesawwiththeTogglesymbol.
OneShotalsohasa<reset>input.ThisinputallowsyoutocancelaOneShotoperation
thatisalreadyinprogress.Thatis,on
cetheoutputpulsehasstarted,theonlywayto
cancelitbeforethefull<pulse_time>haselapsedisbydrivingthe<reset>inputhigh.
ShownabovearetwoOneShot symbolsthataretriggeredoffbytheScreenUpand
ScreenDownbuttonpresses(s
inceonlyonerelaycanbeopenatatime),generatinga2
secondoutputpulsetodrivetherelaycommand.
DrapesControl
TheVirtualPresentationRoomusesasingleswitch drapecontrollerforopeningand
closingthedrapes.Suchcontrollersoftenha
vealowvoltagecontactclosureinterface:
closethecontactandthedrapesclose,openthecontactandthedrapesopen.Sincethe
touchpanelhastwobuttonsbeingroutedtoonerelay,weclearlyneedalatchingsignal
toconnecttotherelay.ASet/ResetLatchsymbolwillworkperfectlyfo
rthisapplication.
TheSet/ResetLatchsymbolimplementsthemostbasicmemoryelement,alsoknownas
aset/resetflipflop.Thesymbolhastwopossiblestates,referredto(oddlyenough)asset
andreset.Arisingedgeofthe<set>inputwillsetthelatchandcause<ou
t>togohigh.
Oncethistransitionisseentheoutputwillnotchangeuntilarisingedgeisseenonthe