Trying to upload QPSK signal to Anritsu Signal Generator

조회 수: 1 (최근 30일)
Dharmesh Panchal
Dharmesh Panchal 2018년 1월 10일
댓글: Dharmesh Panchal 2018년 1월 17일
Hi,
Any help with this is highly appreciated. I want to upload a QPSK signal onto Anritsu MG3700A signal generator via TCP/IP. I tried doing that using the information from the link below but got an error message from the signal generator when I want to download data to the sig gen.
The sig gen doesn't seem to like the following commands when I enter it Matlab:
% Turn off instrument before downloading waveform.
fprintf(signalGeneratorObject,':OUTPut:STATe OFF');
fprintf(signalGeneratorObject,':SOURce:RADio:ARB:STATe OFF');
fprintf(signalGeneratorObject,':OUTPut:MODulation:STATe OFF');
% Set the sample rate of the ARB clock to the sample rate of the baseband
% signal.
fprintf(signalGeneratorObject,[':SOURce:RADio:ARB:CLOCk:SRATe ' num2str(sampleRate)]);
Not sure what is going on. Perhaps the there is a difference command I need to enter.
Dharmesh

답변 (1개)

Walter Roberson
Walter Roberson 2018년 1월 10일
You need to send line terminators.
fprintf(signalGeneratorObject, '%s\n', ':OUTPut:STATe OFF');
fprintf(signalGeneratorObject, '%s\n', ':SOURce:RADio:ARB:STATe OFF');
fprintf(signalGeneratorObject, '%s\n', ':OUTPut:MODulation:STATe OFF');
% Set the sample rate of the ARB clock to the sample rate of the baseband
% signal.
fprintf(signalGeneratorObject, '%s %d\n', ':SOURce:RADio:ARB:CLOCk:SRATe', sampleRate);
  댓글 수: 1
Dharmesh Panchal
Dharmesh Panchal 2018년 1월 17일
I receive the following error message on my sig gen: "Error Message ":OUTPUT:STATE" undefined command"
This happens when I enter "fprintf(signalGeneratorObject, '%s\n', ':OUTPut:STATe OFF');" on the Matlab commandline. Not sure why it doesn't like that command.

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

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by