Re: Pulse mode: Infinite number of repeated bursts doesn't w
Posted: Mon Jul 11, 2016 8:38 am
I tried it, but nothing changed. After 70 seconds the oscilloscope didn't show me a signal. I used an external oscilloscope, not the RP oscilloscope. Here is my Code.
Code: Select all
%% Define Red Pitaya as TCP/IP object
clc
clear all
close all
IP= '172.23.56.50'; % Input IP of your Red Pitaya...
port = 5000; % If you are using WiFi then IP is:
tcpipObj=tcpip(IP, port); % 192.168.128.1
fopen(tcpipObj);
tcpipObj.Terminator = 'CR/LF';
%% The example generate sine bursts every 0.5 seconds indefinety
%fprintf(tcpipObj,'GEN:RST');
fprintf(tcpipObj,'SOUR2:FUNC sine');
fprintf(tcpipObj,'SOUR2:FREQ:FIX 13000000'); % Set frequency of output signal
fprintf(tcpipObj,'SOUR2:VOLT 1'); % Set amplitude of output signal
fprintf(tcpipObj,'SOUR2:BURS:STAT ON'); % Set burst mode to ON
fprintf(tcpipObj,'SOUR2:BURS:NOR -1'); % Infinity number of sine wave pulses
fprintf(tcpipObj,'SOUR2:BURS:INT:PER 1000'); % Set time of burst period in microseconds = 5 * 1/Frequency * 1000000
fprintf(tcpipObj,'SOUR2:BURS:NCYC 1000'); % Set 1 pulses of sine wave
fprintf(tcpipObj,'SOUR2:TRIG:IMM'); % Set generator trigger to immediately
fprintf(tcpipObj,'OUTPUT2:STATE ON'); % Set output to ON
%% Close connection with Red Pitaya
fclose(tcpipObj