필터 지우기
필터 지우기

How to generate +5V signal using matlab?

조회 수: 4 (최근 30일)
W Joey
W Joey 2015년 7월 13일
편집: W Joey 2015년 7월 13일
Hi, i want to generate continuous +5V signal for 3 seconds from NI DAQ device.
s=daq.createSession('ni');
addAnalogOutputChannel(s,'Dev1',0,'Voltage');
addAnalogOutputChannel(s,'Dev1',1,'Voltage');
t=0:0.001:3;
w=6;
outputSignal=0.5*rectpuls(t,w)';
queueOutputData(s,[outputSignal outputSignal]);
s.startForeground
However it does not work properly, anyone can tell me is there anything wrong with the code?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Analog Input and Output에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by