///<summary>改变示波器刷新模式</summary>
 ///<param name="refreshMode">刷新模式</param>
 public void ChangeRefreshMode(Enum_RefreshMode refreshMode)
 {
     if (m_Oscilloscope != IntPtr.Zero)
     {
         Dll.ChangeRefreshMode(m_Oscilloscope, refreshMode);
     }
 }
Ejemplo n.º 2
0
 ///<summary>改变示波器刷新模式【单线程调用】</summary>
 ///<param name="oscilloscope">示波器</param>
 ///<param name="refreshMode">刷新模式</param>
 public static void ChangeRefreshMode(IntPtr oscilloscope, Enum_RefreshMode refreshMode)
 {
     if (s_IsX64)
     {
         Dll64.ChangeRefreshMode(oscilloscope, (uint)refreshMode);
     }
     else
     {
         Dll86.ChangeRefreshMode(oscilloscope, (uint)refreshMode);
     }
 }
Ejemplo n.º 3
0
 ///<summary>构造参数(多图形)</summary>
 ///<param name="window">窗口</param>
 ///<param name="background">背景色</param>
 ///<param name="count">要呈现的数据量</param>
 ///<param name="range">量程(例如:[-50,50]的量程为100)</param>
 ///<param name="refreshMode">刷新模式</param>
 ///<param name="scaleX">水平缩放率</param>
 ///<param name="scaleLimitX">水平最大缩放率</param>
 ///<param name="ScaleY">垂直缩放率</param>
 ///<param name="ScaleLimitY">垂直最大缩放率</param>
 ///<param name="translateX">水平位移值</param>
 ///<param name="translateY">垂直位移值</param>
 ///<param name="axisColor">坐标轴颜色</param>
 ///<param name="axisLineWidth">坐标轴线宽</param>
 ///<param name="axisX_TicksCount">横轴刻度的数量(不包含原点刻度,即总刻度数量为此设定值加1。此值为0时不绘制刻度。)</param>
 ///<param name="axisY_TicksCount">纵轴刻度的数量(不包含原点刻度,即总刻度数量为此设定值加1。此值为0时不绘制刻度。)</param>
 ///<param name="axisX_TickHeight">横轴刻度的高度</param>
 ///<param name="axisY_TickWidth">纵轴刻度的宽度</param>
 ///<param name="axisX_Height">横轴高度</param>
 ///<param name="axisY_Width">纵轴宽度</param>
 ///<param name="axisX_Placement">横轴位置</param>
 ///<param name="axisY_Placement">纵轴位置</param>
 ///<param name="graphProperties">图形参数数组</param>
 public ConstructionParameters(IWindow window, uint background, uint count, float range, float scaleX, float scaleLimitX, float scaleY, float scaleLimitY, uint translateX, uint translateY, Enum_RefreshMode refreshMode, uint axisColor, uint axisLineWidth, uint axisX_TicksCount, uint axisY_TicksCount, uint axisX_TickHeight, uint axisY_TickWidth, uint axisX_Height, uint axisY_Width, Enum_AxisPlacement_X axisX_Placement, Enum_AxisPlacement_Y axisY_Placement, GraphProperties[] graphProperties)
 {
     Oscilloscopes   = window.Oscilloscopes;
     ControlHwnd     = IntPtr.Zero;
     GraphProperties = graphProperties;
     Args            = new ConstructionArgs {
         Background = background, Count = count, Range = range, ScaleX = scaleX, ScaleLimitX = scaleLimitX, ScaleY = scaleY, ScaleLimitY = scaleLimitY, TranslateX = translateX, TranslateY = translateY, RefreshMode = refreshMode, AxisColor = axisColor, AxisLineWidth = axisLineWidth, AxisX_TicksCount = axisX_TicksCount, AxisY_TicksCount = axisY_TicksCount, AxisX_TickHeight = axisX_TickHeight, AxisY_TickWidth = axisY_TickWidth, AxisX_Height = axisX_Height, AxisY_Width = axisY_Width, AxisX_Placement = axisX_Placement, AxisY_Placement = axisY_Placement
     };
 }