1. Home
  2. Docs
  3. SmartConfig
  4. Sampler mode
  5. UserDefined

UserDefined

In UserDefined Mode, you can create your own sampling program by defining a series of functions. Each function is written in the following format:

F#,T#,O#,…

Where:

  • F# = Function number
  • T# = Time or target line (depending on function)
  • O# = Output or state (if required)
  • = Additional parameters (optional, e.g., trigger conditions)

You can configure modules, outputs, and sensor settings through the SmartSampler GUI. The UserDefined program will then use those settings during execution (e.g., when performing a sensor read).

Function Reference Table

FunctionNameParam 1Param 2Param 3Notes
F1End ProgramP = programTerminates the user program
F2Loop to LineT = LineP = programLoops to the specified line
F3DelayT = TimeP = programWaits for a given time (ms/s)
F4Wait for Next AlarmP = programHalts until next wakeup alarm
F5Switch ModuleT = TimeS = StateP = programOn/off control over modules
F6Switch SensorT = TimeS = StateP = programActivates/deactivates sensors
F7Switch OutputT = TimeS = StateO = OutputI = Inverted, P = program
F8Read SensorsT = TimeP = programReads sensors using GUI settings
F9Send DataT = TimeP = programSends logged sensor data
F10Send Basic TelemetryT = TimeP = programSends basic telemetry message
F11Send Clean CommandT = TimeP = programSends clean/reset command
F12Set Sub ProgramP = programSet the sub program
F13End Sub ProgramT = TimeP = programEnds the sub program

Articles

How can we help?