Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Clock frequency will not update in DAQ session

1 回表示 (過去 30 日間)
Eric Brost
Eric Brost 2015 年 3 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi all,
I'm running into an issue where I cannot change the clock frequency from 1000 Hz in my DAQ session. Here is the code:
clockFreq=10000;
% Initialize clock
sClk=daq.createSession('ni');
sClk.addCounterOutputChannel('Dev2','ctr0','PulseGeneration') %PFI12
clkTerminal = sClk.Channels(1).Terminal;
sClk.Channels(1).Frequency = clockFreq
sClk.Channels(1).DutyCycle = 0.50;
sClk.startForeground();
No matter what I make the clock frequency, it does not display any value other than 1000 Hz. If I try to make the frequency below 1000 Hz, a timeout occurs.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by