Effacer les filtres
Effacer les filtres

I keep getting this error Status Code: -201314

3 vues (au cours des 30 derniers jours)
James Kim
James Kim le 31 Oct 2018
Commenté : James Kim le 6 Nov 2018
% 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?

Réponses (1)

Himanshu
Himanshu le 6 Nov 2018
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 commentaire
James Kim
James Kim le 6 Nov 2018
The problem had been solved. Thanks though!

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by