User Manual

Development Environment
Note:
Todisplayascript guidethatdescribesiX Developerscriptingpossibilitiesindetail,
selectScriptv i ew mode,clickanywherein thecode,andpressF1.
Caution:
BeijerElectronicsonlyofferssupportforscriptingfor theincludedexamplesiniX
Developer
Objects that can trigger events will show with expandable nodes in the Script view.
Clicking the [+] of such a node expands it and shows the trigger events for the
object. Double-clicking on an event inserts its method heading with an empty
code body. Scripts are written in C# syntax.
When actions are defined for an object, this will have precedence over script code.
Note:
Avoidusingmultiple triggermethodsasthismayleadtoundesiredbehavior.
Useeithera scriptordeneactionswiththecontrolson theActionstab. Avoidusing
ClickActionTrigger actionsin combinationwithMouse Button Action Triggers.
Note:
Creatingscriptsthatblockexecution,waiting
forotherresourcesoruserinput,isnot
supported.
Note:
TheValueOff andValueOn eventsforinternalvariablesareavailableforselectionin
scriptmode, buttheyare notexecutedwhenrunningtheproject.
Note:
TheValueChangeOrError eventisavailable inscriptmode,butitshouldonly beused
withcontrollertags. Itdoesnotsupportinternalvariablesor systemtags.
Note:
Ifanextern
aleditor,e.g. VisualStudio,isusedforeditingascript, the cross-reference
willnotbe u
pdatedwhen buildingthep rojectiniXDeveloper. The Remove Unused
Tags funct
ionwillreporttagsusedinthesescriptsasunused.
ForiXDev
eloper torecognizeachangemadewithanexternal editor,the script le
needsto
beopenedin iXDeveloperandprovidedwithjustanysmallchangeusing the
script
editoriniXDeveloper. Save theprojectoncemorebeforebuild.
Note:
Avoidstaticstatewhenusingscriptsincethismightcausememoryleaks.
Alwaysremembertounsubscribeeventspreviouslysubscribedto,inorderto avoid
memoryleaks.
54
BeijerElectronics, M AEN831P