private static void TestWaveform(Waveform waveform) { waveform.BackgroundColor = (int)Color.Blue; Debug.Print(waveform.BackgroundColor.ToString()); waveform.Refresh(); waveform.BackgroundColor = (int)Color.Black; waveform.Refresh(); waveform.GridColor = (int)Color.Red; Debug.Print("Grid: " + waveform.GridIntervalHorizontal + " - " + waveform.GridIntervalVertical); /* * waveform.Refresh(); * waveform.GridIntervalHorizontal = 0; * waveform.GridIntervalVertical = 0; * waveform.Refresh(); * * waveform.GridIntervalHorizontal = 30; * waveform.GridIntervalVertical = 60; * waveform.Refresh(); */ waveform.ForegroundColor0 = (int)Color.White; waveform.ForegroundColor1 = (int)Color.Blue; waveform.ForegroundColor2 = (int)Color.Green; waveform.ForegroundColor3 = (int)Color.Yellow; waveform.Refresh(); Debug.Print("-----------------------------"); Debug.Print("Waveform value add test start"); int sleep = 100; for (double angle = 0; angle < 120; angle += 0.1) { byte value0 = (byte)(angle); byte value1 = ConvertToByte(System.Math.Sin(angle)); byte value2 = ConvertToByte(System.Math.Cos(angle)); waveform.Add(0, value0); waveform.Add(1, value1); waveform.Add(2, value2); Thread.Sleep(sleep); } Debug.Print("Waveform value add test end"); Debug.Print("-----------------------------"); }