The 1-Command is used by the device to send commands to SPAD.neXt.
1,<SUBCOMMAND>,...;Reply: none or 2,ERROR
ADDinforms SPAD.neXt about a data value the device will provide. This data can be used in events or expressions like any simulation data in the SPAD.neXt UI.
the Channel the device/SPAD.neXt will use to send updates for that data
name of the data value. To place it in a tree "//" can be used to separate the nodes. e.g.
name must not start with /
type of the data (Signed/Unsigned)
RO for readonly, RW for readwrite
human readable name of the data for the UI
optional description for the UI
0 create LOCAL variable (default)
1 Create a persistent DEVICE variable
Within SPAD.neXt the data will be available in Device->Devicename. Internally the Data is referenced as
Device Data is only available within the profile of the device.
SPAD.neXt will send data updates to the device and expect data using the given CHANNELID channel using the 5-Channel: 5,
1,ADD,11,pages//activepage,U8,RW,Active device page,My cool description,PERSIST=1;
creates a variable
DEVICE:VID/PID/pages/activepageavailable only within the deviceperofile of the device. outside of the deviceprofile this variable will always have the value 0
1,ADD,11,pages//activepage,U8,RW,Active device page;
creates a variable
LOCAL:VID/PID/SERIAL/pages/activepageavailable to all deviceprofiles within SPAD.neXt
DEVICE variables are persitent per connected devices and the values will be loaded and saved from/to the profile.
LOCAL variables will not be saved and default to 0
SUBSCRIBEwith subscribe the device to a data value from SPAD.neXt or the simulation
the index associated with the data
internal name of the data value to subscribe to. E.g.
desired unit, if not default (e.g. 'degrees','radians','Hz','kHz','MHz')
minimum change that must happen before an update will be sent to the device. If it's omitted the default value for the data will be used
SPAD.neXt will send the subscribed data on the 5-Channel in the format
Example 1,SUBSCRIBE,12,SIMCONNECT:AUTOPILOT HEADING LOCK DIR
1,SUBSCRIBE,12,SIMCONNECT:AUTOPILOT HEADING LOCK DIR,radians 1,SUBSCRIBE,12,XPLANE:sim//cockpit//autopilot//heading_mag,,5
You can get the internal name of a data value, by selecting it in the data browser and pressing
CTRL-Cor clicking on "book"-icon in the data monitor. It will be copied to the clipboard
UNSUBSCRIBEwill unsubscribe from a previously subscribed data value Syntax:
EMULATEwill emulate an event from another device. (E.g. a dial turned on radio panel)
<TARGET_DEVICE>is either the internal id
<TARGET_SWITCH>is the internal name of the switch/dial/led etc (e.g. FIP_LEFTDIAL)
<TARGET_EVENT>is name of the event to emulate (e.g. TUNER_CLOCKWISE)
To get the TARGET_SWITCH and TARGET_EVENT you can program the event in the UI and then copy the complete event to the clipboard, pasting to a texteditor. The TARGET_SWITCH will be the "BOUNDTO" and the TARGET_EVENT the "Trigger"
Alternatively you can get a list of all devices and events at Settings->Application->Expert->Available Remote Events
Updates the labeltext of a input/led (DYNLABEL=1 !) or a label pseudo input
SPAD.neXt will send all currently subscribed data