Multiple questions for people knowing the device description syntax.
1) is there a way to debug the what value is interpreted by a
#cmdSetup selector?
I managed to feed a selector from a
#cmdSetup combobox, but haven't managed to feed it from a
#cmdSetup checkbox or
#cmdSetup comboboxhot. But a combobox requires 2 clicks, and the two others don't.
2) is there a way to do a
:write: with a fixed string? So without sending the value? I need to fire
:update: from a control, which needs a write to function, but in reality I don't want to write, so a fixed string is better than "random" text which confuses the device, requiring me to do a
*CLS afterwards.
3) is there a way to persist user choices between invocations of the setup popup? Is Mode the only way?
I use the following construct:
#cmdSetup combobox Relay_Board Main
; This is used for activating the relay board option #760.
; Neither checkbox nor comboboxhot seem to work here
; Something has to be sent in order to call :update:, but it confuses the device so I do a *CLS afterwards.
: I have not found a way to persist that user choice. So you will have to select it every time you open the Setup popup.
:write: #;*CLS
:update: No_Relay_Board
:tip: Output Relay Board (#760) present?
Absent Absent
Installed Installed
#cmdSetup selector No_Relay_Board Main
Main.Relay_Board
; The name is like this because the name of this selector only shows up when disabled.
Absent
Installed Main.Output_Relay;Main.Output_Polarity_Reversed