필터 지우기
필터 지우기

I keep getting this error Status Code: -201314

조회 수: 2 (최근 30일)
James Kim
James Kim 2018년 10월 31일
댓글: James Kim 2018년 11월 6일
% Here is my code
clear
clc
devices=daq.getDevices;
s=daq.createSession('ni');
s.addCounterInputChannel('cDAQ1Mod1','ctr0','Frequency');
s.addAnalogInputChannel('cDAQ1Mod2','ai0','Bridge');
s.DurationInSeconds = 5;
ch1=s.Channels(1)
set(ch1);
ch2=s.Channels(2);
set(ch2);
ch2.BridgeMode = 'Half'
ch2.NominalBridgeResistance =11000;
[data,time] = s.startForeground();
plot(time,data)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I keep getting this error Multiple Sample Clock pulses were detected within one period of the input signal. Use a Sample Clock rate that is slower than the input signal. If you are using an external Sample Clock, ensure that clock signal is within the jitter and voltage level specifications and without glitches. Task Name: _unnamedTask<33>
Status Code: -201314 How can I fix it?

답변 (1개)

Himanshu
Himanshu 2018년 11월 6일
Hello James
There was a bug introduced in MATLAB R2014a through R2015b, which caused this error for Clocked-counter input channel operations. The bug has since been fixed in MATLAB R2016a.
If you are still using a previous version, you can download and install the patch available at: https://www.mathworks.com/support/bugreports/1277716
The URL also provides installation instructions for the patch.
  댓글 수: 1
James Kim
James Kim 2018년 11월 6일
The problem had been solved. Thanks though!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Continuous Waveforms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by