123456789101112131415161718192021222324252627282930313233 |
- using System;
- using Uestc.Auto6.Dso.ComModel;
- using Uestc.Auto6.Dso.Core;
- namespace Uestc.Auto6.Dso.Servlet
- {
- class Program
- {
- public static DsoPrsnt Oscilloscope;
- static void Main(String[] args)
- {
- Console.WriteLine("Start Servlet...");
- Oscilloscope = new DsoPrsnt();
- foreach (var c in Oscilloscope.GetChnlsInRange(ChannelId.C1, ChannelId.C4))
- {
- Console.WriteLine(c.Name);
- }
- if (Oscilloscope.TryGetChannel(ChannelId.C1, out var cp))
- {
- var ap = (AnalogPrsnt)cp;
- Console.WriteLine("ScaleIndex =" + ap.ScaleIndex);
- ap.ScaleIndex--;
- Console.WriteLine("ScaleIndex =" + ap.ScaleIndex);
- }
- Console.WriteLine("Close Servlet...");
- }
- }
- }
|