예제 #1
0
        public MainPage()
        {
            this.InitializeComponent();

            fileSetting = TextToFileSetting(fileSettingStr);
            randomSetting = TextToRandomSetting(randomSettingStr);
            serialSetting = TextToSerialSetting(serialSettingStr);
            remoteSetting = TextToRemoteSetting(remoteSettingStr);

            comboBoxDataSource.Items.Add(DataSourceFileStr);
            comboBoxDataSource.Items.Add(DataSourceSerialStr);
            comboBoxDataSource.Items.Add(DataSourceRandomStr);
            comboBoxDataSource.Items.Add(DataSourceRemoteClientStr);

            comboBoxStreaming.Items.Add(StreamNothingStr);
            comboBoxStreaming.Items.Add(StreamLogStr);
            comboBoxStreaming.Items.Add(StreamPowerStr);
            comboBoxStreaming.Items.Add(StreamBothStr);
            comboBoxStreaming.Items.Add(StreamRealDataStr);

            dTimerUpdateData = new DispatcherTimer();
            dTimerUpdateData.Tick += UpdateDataTick;
            dTimerUpdateData.Interval = new TimeSpan(0, 0, 0, 0, 250);
            dTimerUpdateData.Start();

            dTimerUpdateText = new DispatcherTimer();
            dTimerUpdateText.Tick += UpdateTextTick;
            dTimerUpdateText.Interval = new TimeSpan(0, 0, 0, 1, 0);

        }
예제 #2
0
 public AOURandomData(AOUSettings.RandomSetting rndSettings, AOUSettings.DebugMode dbgMode = AOUSettings.DebugMode.noDebug) : base(dbgMode)
 {
     AddDataLogText("Random Data Ready - num values:" + rndSettings.NumValues + ", ms between:" + rndSettings.MsBetween);
     settings = rndSettings;
     lastTime = startTime;
 }
예제 #3
0
 public AOURouter(AOUSettings.RandomSetting randomSetting) : this()
 {
     runMode = RunType.Random;
     aouData = new AOURandomData(randomSetting);
     aouData.Connect();
 }
예제 #4
0
 public AOURandomData(AOUSettings.RandomSetting rndSettings, AOUSettings.DebugMode dbgMode = AOUSettings.DebugMode.noDebug) : base(dbgMode)
 {
     AddDataLogText("Random Data Ready - num values:" + rndSettings.NumValues + ", ms between:" + rndSettings.MsBetween);
     settings = rndSettings;
     lastTime = startTime;
 }