I'm using the app designer to create a radio button group, and I intended to obtain the 'text' of the selection and save it to work space. Right now my code does save the current selection to workspace, but i notice that it only works if I changed the selection. (ie, if I swich from "choice A" to "choice B" or "choice c" then it will save, but if I left it in default "choice A" it stores nothing)
I was wondering how can I resolve this, or perhaps there is another way to save the selection.
here's my callback function for the radio button group
function GratingPeriodButtonGroupSelectionChanged(app, event)
selectedButton = app.GratingPeriodButtonGroup.SelectedObject.Text;
app.GratingPeriod = selectedButton ;
here's the callback funciton of the pushbutton that save the value to workspace
function StartButtonPushed(app, event)