Essentialsof CrestronProgramming
EssentialsofCrestronProgramming10Activetextcolor=red.Theredactivetextcolorsignifiesthatwhenthebuttonispressedandthebuttonis
Crestron Electronics, Inc.
EssentialsofCrestronProgramming11StyleandShapeAliased=YesStyle=NoneShape=Radius–3.Theradiussettingroundsthecornerso
EssentialsofCrestronProgramming12handlesturntosmallpadlocks).Tounlock,selectNo.(Intheexampleproject,allLock propertiesaresetto
EssentialsofCrestronProgramming13inactive.Toggle:Thebuttonʹsfeedbackwilltogglebetweentheactiveandinactivestatewitheachmouseclic
EssentialsofCrestronProgramming14ClicktheBorder toolanddragoutaboxlongenoughtofitthetwoUpandDownscreenbuttons.Positionthe
EssentialsofCrestronProgramming15Createtwobuttonobjectsinsidetheborderandlabelthemasshownintheclassroomproject.Onebuttonwillb
EssentialsofCrestronProgramming16CreatetheLightsButtonCreateabuttonlabeled“Lights”withdigitalpressjoinnumber31.Positionitat
EssentialsofCrestronProgramming17SubpagesandSubpageReferencesSubpagesaredesignedtoappearontopofastandardpagewhenneeded,andt
EssentialsofCrestronProgramming18TheLightingPresetssubpagecontainsfourlightingbuttonsarrangedhorizontally.Thesubpageisdesignedtoa
EssentialsofCrestronProgramming19TypethedimensionsintheWidthandHeightfields.Thiswillresizethesubpagetotheindicateddimens
EssentialsofCrestronProgramming2
EssentialsofCrestronProgramming20Selectthesubpagetodisplaythesubpagereferencepropertie s.Assignadigitalfeedbackjoinof31. The
EssentialsofCrestronProgramming21CreatesourcebuttonsandindirecttextfieldClicktheBordertoolanddragoutaborderthatwillfitthe
EssentialsofCrestronProgramming22ClickStartattheSelectedJoin.ThiswillenabletheStartingJoinlist.Select51asthestartingjoin.
EssentialsofCrestronProgramming23TheClickAssigntoolbarallowsyoutoclickassignsuchadditionalpropertiesas:Style:SelecttheClickAss
EssentialsofCrestronProgramming24AnotherwaytoassignpropertiestomultipleobjectsAnalternativemethodtoClickAssignistomulti‐select
EssentialsofCrestronProgramming25Thisbuttonwillhavenobuttonpressfunctionality,butratherwillbeuseddisplaytextindicatingwhichso
EssentialsofCrestronProgramming26ToprogramreservedjoinsCreateatransparentborderandlabelit“Panel”.(Alignthetextonthetoprigh
EssentialsofCrestronProgramming27SelectthegaugeandclicktheAnalogFeedbackJoinproperty.Selectthe“LCDBrt”reservedjoinfromthelist.
EssentialsofCrestronProgramming28AddClockandDateClicktheClocktoolanddrawaclockontheupperrightcorneroftheMainpage.TheCl
EssentialsofCrestronProgramming29CreateVolumeControlsCreateatransparentborderlabeled“Volume”,tobepositionedonthecenterrightp
EssentialsofCrestronProgramming3IntroductionTheintentofthisworkbookistoreviewthedesignandprogrammingoftheVirtualPresentationRo
EssentialsofCrestronProgramming3050%(Digitalpressjoin15)75%(Digitalpressjoin16)TheVolumebuttonswillbeusedtoadjustthevolume
EssentialsofCrestronProgramming31TheAnalogFeedbackjoinsaremappedtothecorrespondinganaloginputs(<an‐fb2>through<an‐fb9&g
EssentialsofCrestronProgramming32PageFlipsThepropertiesofabuttonobjectallowyoutoassigna“pageflip”,whichsignifiesthatwhent
EssentialsofCrestronProgramming33Whenobjectsarestackedontopofeachother,youcanusetheDepthcommands(ontheLayoutmenu)tobring
EssentialsofCrestronProgramming34ClicktheButtontoolandcreateabuttonthatcoversthevideoobject.InthePropertiesofthebutton,
EssentialsofCrestronProgramming35TocreatetheDSSsubpageClicktheCreateNewSubpagetool.Typeanameforthesubpage.Fortheexample
EssentialsofCrestronProgramming36Thiswillresizethesubpagetotheindicateddimensions.CreateKeypadbuttonsClicktheButtontooland
EssentialsofCrestronProgramming37Iftextdoesn’tfit,youcanadjustthesizeofthefontinthepropertygrid(Fontproperty).PresstheEs
EssentialsofCrestronProgramming38CreatethenavigationbuttonsUsetheButtontooltodrawabuttonthatwillbeprogrammedastheUpnavigat
EssentialsofCrestronProgramming39TypeK(correspondingtotheUpnavigationfunction)inthetextfield.UnderStyleandShape,selectAlias
EssentialsofCrestronProgramming4CrestronVisionToolsPro‐eExampleVTPro‐eProjectOpentheclassroomtouchpanelproject,“EssentialsClassMa
EssentialsofCrestronProgramming40GraphicsTheDSSControlssubpageintheexampleprojectincludeschannelpresetbuttonswithgraphics:To
EssentialsofCrestronProgramming41ToimportanimagefromanotherVTPro‐eprojectWithbothprojectsopenandtheResourceViewtabselected,dr
EssentialsofCrestronProgramming42TheGraphicSizepropertyprovidesanumberofsizingoptions,suchasstretchingtheimagetocovertheen
EssentialsofCrestronProgramming434. ClickthebuttonthatwillbeusedtoselecttheCBSchannelpreset.5. Adjustthe“Size”propertyasd
EssentialsofCrestronProgramming44CreatetheremainingsubpagesTheclassroomprojectincludestwoadditionalsubpagesthatcontainthetranspo
EssentialsofCrestronProgramming45TheprocedureforcreatingtheadditionalsubpagesisthesameasfortheDSSandLightingPresetspages.Theo
EssentialsofCrestronProgramming46SimulationFileSimulationmodeenablesVTPro‐etogeneratea.SIMprojectsuitableforclientdemonstrations.
EssentialsofCrestronProgramming47Interlock:Ifthisoptionisselected,thebuttonʹsfeedbackwillbeinterlockedwithanotherbuttonorgrou
EssentialsofCrestronProgramming48CrestronSIMPLWindowsWehaveseenhowyoucanuseVisionToolsPro‐etocreatepowerfultouchpanelcontrolin
EssentialsofCrestronProgramming49VirtualPresentationRoomTheSIMPLWindowsprogramthatcontrolstheVirtualPresentationRoomisbasedona
EssentialsofCrestronProgramming5Tomakeasubpagevisibleorhidden,right‐clickthesubpagereferenceandselectorclearthecheckmarknext
EssentialsofCrestronProgramming50ThePRO2providesslotsforcontrolviaRS‐232,IR,relays,CresnetandEthernet.(TheEthernetconnectiontot
EssentialsofCrestronProgramming513. AddthecontrolprocessorbydraggingitfromtheControlSystemsfolderoftheDeviceLibrarytoaSystems
EssentialsofCrestronProgramming52• SelectadditionalCrestronhardwarerequiredfortheinstallation.Thiscanincludeplug‐incontrolcards,n
EssentialsofCrestronProgramming53IfyouaddaCresnetdevicetothetop‐levelC2NET‐Deviceslot,SIMPLWindowswillauto‐assigntheNetworkID,
EssentialsofCrestronProgramming542. Double‐clicktheC2ZCardSlotandselectthedesiredEthernetcard.
EssentialsofCrestronProgramming55UserDevicesUserdevicesincludeanythird‐partyAVdevicestheenduserinterfaceswiththroughtheCrestron
EssentialsofCrestronProgramming56Thesubmenualsoincludestheoptiontodisplaythedevicefunctions,whichcanhelpyouverifythatthedev
EssentialsofCrestronProgramming57VirtualPresentationRoomEquipmentListUsethemethodsdescribedinthissectiontoaddthefollowingCresne
EssentialsofCrestronProgramming58DeviceSettingsOnceyouhaveaddedadevice,youcandouble‐clickthedevicetobringuptheDeviceSettingsd
EssentialsofCrestronProgramming59Ethernet/SerialUploadAddress(touchpanelsonly):Usethesetabstoconfigureanalternateuploadaddress(if
EssentialsofCrestronProgramming6ThenewprojectwillbevisibleintheProjectViewtab.Iftheclassroomprojectisalsoopen,thenbothprojec
EssentialsofCrestronProgramming60IPNetAddress(Ethernetdevicesonly):UsethistabtoconfiguretheIPinformationoftheEthernetdevice.
EssentialsofCrestronProgramming61RenamePort2to“ScreenDown”.RenamePort3to“Drapes”.ProgramViewClicktheProgrambuttontoopenth
EssentialsofCrestronProgramming62SymbolLibraryTheSymbolLibraryconsistsofthreedirectories:LogicSymbols:LogicSymbolsperformoperat
EssentialsofCrestronProgramming63TheProgramViewwindowconsistsofthreedirectories:CentralControlModules:Atreeofthecontrolsystem’s
EssentialsofCrestronProgramming64Subsystemscanbenested,meaningthatonesubsystemfoldercancontainothersubsystemfolders.TheVirtualP
EssentialsofCrestronProgramming65DetailViewTheDetailViewwindowshowsthesymboldetailofdevicesymbolsandlogicsymbolsintheprogram.
EssentialsofCrestronProgramming66FeedbackButtonfeedbackdescribesthebuttonʹsactiveappearance.Forkeypads,feedbackisusuallyindicated
EssentialsofCrestronProgramming67 Certainbuttonsmaycallformorecomplexfeedback.IntheVirtualPresentationRoomprogram,forexample,th
EssentialsofCrestronProgramming68Eachrisingedgeofthe<clock>inputwillcausetheoutputstotoggletheirstate.4. Definethesi
EssentialsofCrestronProgramming69TheInterlocksymbolwilllatchanoutputhighontherisingedgeofitscorrespondinginput.Inaddition,any
EssentialsofCrestronProgramming7EveryprojectinVTPro‐emusthaveahomepage;ifyoudon’tmarkapageasfirst,thenyouwillbepromptedto
EssentialsofCrestronProgramming70TheOneShotsymbolrespondstoarisingedgeonthe<trig>inputbydrivingtheoutputsignal(connect
EssentialsofCrestronProgramming71<reset>input.Whenreset,<out>willgolowand<out*>(thecomplementof<out>)will
EssentialsofCrestronProgramming72TheORsymboldetectswhenarelevantbuttonhasbeenpressed,andeachpresswillcausetheRetriggerableOn
EssentialsofCrestronProgramming73parameter.The<ramptime>parameterspecifieshowlongittakesfromthemomentthedigitalinputgoesh
EssentialsofCrestronProgramming74
EssentialsofCrestronProgramming75TheoverviewoftheLightinglogicisgiveninthe followingdiagram:
EssentialsofCrestronProgramming76SourceSelectionFeedbackTheprogrammingforsourceselectionfeedbackutilizesanInterlock‐Togglesymbol,
EssentialsofCrestronProgramming77routedtotheserialinputonthetouchpanelsymbolat<text‐o2>,correspondingtoindirecttextjoin2,
EssentialsofCrestronProgramming78MoreonSerialStringsBydefault,serialsignalsaretransient,meaningthatthedataonaserialsignalis
EssentialsofCrestronProgramming79 The TOD string is routed to the input of a Serialize Date symbol, which formats the string as specified by the
EssentialsofCrestronProgramming8CreatethePowerbuttonClicktheButtontoolanddragoutasmallbuttonontheupperleftcornerofthepage
EssentialsofCrestronProgramming80ThebuttonfeedbackfortheUpandDownbuttonsissimplymomentaryfeedback.Thebuttonwilldisplayintheac
EssentialsofCrestronProgramming81TheAnalogRateLimiterprovidesoneanaloginputandoneanalogoutput.The<ramp_time>parameterspecif
EssentialsofCrestronProgramming82VolumePresetsFeedbackTheVolumePresetbuttonsmustshowactivefeedbackwhenthecurrentvolumelevelisa
EssentialsofCrestronProgramming83TheoverviewoftheVolumelogicisgiveninthefollowingdiagram:
EssentialsofCrestronProgramming84AppleTVsTheVirtualPresentationRoomfeatures2AppleTVservers.ThissectionwilldiscusshowtouseBuff
EssentialsofCrestronProgramming85routesthesourceselectbuttonsthroughanInterlock‐Toggle,whichensuresthatonlyonesourcecanbeselect
EssentialsofCrestronProgramming86Preset1correspondstotheHBOpresetbuttononthetouchpanel.Whentheuserpressesthisbuttontheprogra
EssentialsofCrestronProgramming87SymbolcompletenessandcommentingoutIntheaboveexample,thedigitalinputtothemoduleismarkedwith
EssentialsofCrestronProgramming88Youcancollapseasymboltoshortenthesignal/parameterlist.Otherwisethevisiblefieldsmustbedefinedt
EssentialsofCrestronProgramming89-or- • Right-click the signal and select Insert special "//" signal. -or- • Select the signal and p
EssentialsofCrestronProgramming9TheActiveStateandInactiveStateentriesinthetreeallowyoutospecifythebutton’sappearanceintheac
EssentialsofCrestronProgramming90User Modules CrestronprocessorscontrolserialdevicesusingphysicalstandardssuchasRS‐232,RS‐422,andRS
EssentialsofCrestronProgramming91Theinternallogicisnotvisibletousersofthemodule.ThustheArgumentDefinitioncanbethoughtofasa
EssentialsofCrestronProgramming92Whenyoucompileaprogramcontainingausermodule,theArgumentDefinitionsymboldisappearsandalloft
EssentialsofCrestronProgramming93• Namethesingleoutputcue“To_Device$”.4. AddaSerialI/OsymboltotheLogicfolder.5. Connectt
EssentialsofCrestronProgramming94typicallyexpressedinhexformat.7. SavetheModuleinthedesignatedusermoduledirectory.Themodule
EssentialsofCrestronProgramming95KeypadlogicTheVirtualPresentationRoomprogramincludesaC2N‐FTBfliptopbox,whichhasalimitedsetof
EssentialsofCrestronProgramming96TheoutputsoftheInterlockareroutedtotheEnableinputsofBuffersymbolsthatcorrespondtotheparticula
EssentialsofCrestronProgramming97TheoutputsoftheSteppercanberoutedtotheassociatedinputsofthedifferentdevices.Clearsources
EssentialsofCrestronProgramming98TheClearsourcesoutputisalsoroutedtotheSerialI/Osymbolusedtodisplaythesourcetextonthetouchpa
EssentialsofCrestronProgramming99Doc.ECPrev10/2008
Commentaires sur ces manuels