Exemple #1
0
        private void RequestGraphData(object sender, EventArgs e)
        {
            if (Device != null && Device.IsReady)
            {
                Device.RequestOutputData(new RequestCommand()
                {
                    Address = (int)AddressByte.PulseAmp_A
                });
                Device.RequestOutputData(new RequestCommand()
                {
                    Address = (int)AddressByte.PulseAmp_B
                });
            }
            double current_unixtime = UnixTime.Current();
            double cutoff           = current_unixtime - 20;

            Proxy.PruneAmplitudeHistory(cutoff);
        }