/// <summary> /// Get initial state of the device and update UI elements /// </summary> public void PollDevice() { moRFeusState state = moRFeus.GetAll(); Frequency = state.Frequency.ToString(); Function = state.Function; MixerCurrent = state.MixerCurrent; BiasTee = state.BiasTee; }
/// <summary> /// Get all parameters /// </summary> public static moRFeusState GetAll() { moRFeusState state = new moRFeusState(); state.Frequency = GetFrequency(); state.Function = GetFunction(); state.MixerCurrent = GetMixerCurrent(); state.BiasTee = GetBiasTee(); return(state); }