luo hai 5 meses
pai
achega
f5518e4555
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      DataCollection/DataCollection/Service.cs

+ 1 - 1
DataCollection/DataCollection/Service.cs

@@ -55,7 +55,7 @@ namespace DataCollection
             {
                 Tools.LogTool.WriteLog($"创建通道失败,{_DAQmx.Message}");
             }
-            _DAQmx.Timing.CfgSampClkTiming("OnboardClock", _SampleRate, NIDAQmxConst.AnalogActiveEdge.Rising, device.IsSimulated ? NIDAQmxConst.SampleModes.ContSamps : NIDAQmxConst.SampleModes.HWTimedSinglePoint, _SampleRate);
+            _DAQmx.Timing.CfgSampClkTiming(_DAQmx.SystemInfo.SampleClocks[0], _SampleRate, NIDAQmxConst.AnalogActiveEdge.Rising, device.IsSimulated ? NIDAQmxConst.SampleModes.ContSamps : NIDAQmxConst.SampleModes.HWTimedSinglePoint, _SampleRate);
             _DAQmx.Task.StopTask();
             _ServiceConfig = Tools.ServiceConfigTools.ReadConfig();