BpodParameterGUI()

Description

Displays the settings from the "GUI" subfield of a settings struct. Creates a user interface for viewing and manual override.

  • The GUI subfield names (i.e. X in Settings.GUI.X) are displayed as labels on the left. Edit boxes populated with parameter values for each X are shown on the right.

  • In the current version, only numerical parameters are valid.

  • By default, text edit boxes are used to show parameters. Other UI types can be specified.

  • By default, all parameters are clustered on one UI panel. Parameter groups can be specified.

  • When synced, the GUI will display any programmed updates to the parameter values since the last sync.

  • If the user manually edited a parameter, this becomes the new value irrespective of automated changes.

  • An example GUI automatically generated from this struct:

Settings.SamplingRate = 44100

Settings.GUI.SineWaveFrequency = 500;

Settings.GUI.SpeakerType = 1;

is shown here (also see examples below):