SIMPL allows the programmer to create several types of user device modules that can then be used successfully to "power" User Devices in Crestron Studio®:
User TCP/IP device module - adds custom logic to communicate with a third-party Ethernet device and to allow a Crestron Studio® programmer to program the device's inputs and outputs.
User serial device module - generates strings in the format required by a serial device such as a camera or digital audio processor.
User Logic Module adds custom logic that more easily accomplishes a system task. For example, you might create an Event Logger module that writes items to a file to track system usage. A user logic module does not connect to a device.
Each SIMPL user device module consists of an Argument Definition, which represents how the symbol will look in SIMPL/Crestron Studio®, and logic symbols. The inputs, outputs and parameters of the Argument Definition are associated with signals and parameters defined in the module.
To create/edit a user device module in SIMPL
Configure the module header
In
SIMPL, click the New SIMPL Module
button on the toolbar
- or -
press 

- or -
click New SIMPL Module on the
File menu.
Edit
the
Module Header
(accessible by clicking on Edit Program
Header on the Project
menu when editing existing modules)
Open the Argument Definition in Detail View and expand the symbol to add the required number of inputs, outputs and parameters.
Press 

to add one signal/parameter field.
Press 



to add multiple signals/parameter fields.
Define the
signal
cues.
Define the
parameter
fields.
Set optional
properties,
e.g., default values or add description, for signals and parameter
by selecting the signal/parameter and pressing 

,
or right-clicking the signal and selecting Edit
Signal/Parameter Properties.
Program the logic
Add the required logic symbols or modules to the Program View. Use subsystems to organize the programming just as in a standard SIMPL program.
Define the signals and parameters and connect them to their driving sources and destinations.
Connect the signals and parameters in the logic symbols to the associated inputs, outputs and parameters of the Argument Definition.
Any signals that will reference the signal cues in the Argument Definition must have the same signal name as the signal cue defined in the Argument Definition.
Input signals on logic symbols must be connected to the input side of the Argument Definition; outputs must be connected to the output side.
Parameters that reference the parameter
fields in the Argument Definition must have the same parameter
name, preceded by the pound (#) character. The parameter names
are case sensitive—see Define
Parameters.
For example, if the Argument Definition has a parameter field called
Ramp Time, then the logic symbol should have a parameter named
#Ramp Time (no space between the pound character and the first
letter of the parameter name).
Once you connect an input or output in the Argument Definition to signals in the module, the signal color will change from green (ambiguous) to the color representing the signal type: blue (digital), red (analog) or black (serial).
How do I get my SIMPL module
parameter(s) or input(s) to display as a property of my user device in
Crestron Studio®?
Generally all module parameters (unless tagged by
the #HIDDEN keyword) will be displayed as properties in the Functionality
section of the Properties Grid
of the user device in Crestron Studio®:
Additionally, any input signals for which the 'This
signal acts a property' check box is selected in the Signal/Parameter Properties dialog, will be displayed in the Functionality>Programmable section of the Properties
Grid of the user device in Crestron Studio®:
How do I add tooltips to
custom properties of my user device to display in Crestron Studio®?
Any text that you type in the Short Description
field in the Signal/Parameter
Properties dialog of your module parameters
and/or input signals for which the 'This
signal acts a property' check box is selected, will be displayed
as a tooltip when hovering over the corresponding field in the Properties
Grid of the user device in Crestron Studio®.
How do I add descriptions
to device commands of my user device to be shown in Crestron Studio®?
Any text that you type in the Short Description
field in the InputSignal Properties
dialog of your module's input signals will be displayed in the
Command Description area when
the device command is selected in the Available
Programming pane:
Similarly, text provided in the Short Description field in the OutputSignal Properties will be displayed in the Command Description area when the event is selected in the Programmable Events pane in Crestron Studio®.