Error using ==> fopen
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to control Agilent 33250a waveform generator whit this script:
h=visa('agilent',SerialAddr);
set(h,'Baud',115200,'InputBufferSize',200,'OutputBufferSize',2*7000);
fopen(h);
fprintf(h,'OUTP OFF');
fprintf(h,'OUTP:LOAD 50');
I am getting this Error:
??? Error using ==> instrument/fopen
Error using ==> fopen
VISA: DataTerminalReady could not be set to the specified value.
on another computer it works fine,what could be the problem?
Tanx
Mudonroad
댓글 수: 1
Ankit Desai
2011년 5월 5일
Could you try out the same using serial port object?
s = serial(<port name>); %Example: 'COM1'
set(s,'Baudrate',115200,'InputBufferSize',200,'OutputBufferSize',2*7000);
fopen(s);
fprintf(s,'OUTP OFF');
fprintf(s,'OUTP:LOAD 50');
Does it give the same error?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!