internal void ControllerLoaded()
{
hardwareState loadedState = new hardwareState();
loadedState = loadParameters(profilesPath + "StoppedParameters.bin");
foreach (KeyValuePair<string, double> pair in loadedState.analogs)
{
stateRecord.analogs[pair.Key] = pair.Value;
}
foreach (KeyValuePair<string, bool> pair in loadedState.digitals)
{
stateRecord.digitals[pair.Key] = pair.Value;
}
setValuesDisplayedOnUI(stateRecord);
ApplyRecordedStateToHardware();
}