Exemple #1
0
        /// <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;
        }
Exemple #2
0
        /// <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);
        }