About using Red Pitaya to generate signal
Posted: Wed Mar 13, 2024 11:16 am
Hello!
When I using STEMlab 125-10 to generate signal, I find that the type of signal and the amplitude of output signal can't be set on the matlab. I would like to know if the code is wrong or some other reason. The code is the example given by you.
The following is the cut of the code:
%% GENERATION
writeline(RP,'SOUR1:FUNC SINE');
writeline(RP,'SOUR1:FREQ:FIX 1000000'); % Set frequency of output signal
writeline(RP,'SOUR1:VOLT 1'); % Set amplitude of output signal
writeline(RP,'SOUR1:BURS:STAT BURST'); % Set burst mode to BURST
writeline(RP,'SOUR1:BURS:NCYC 3'); % Set 3 pulses of sine wave
Looking forward to your reply.
When I using STEMlab 125-10 to generate signal, I find that the type of signal and the amplitude of output signal can't be set on the matlab. I would like to know if the code is wrong or some other reason. The code is the example given by you.
The following is the cut of the code:
%% GENERATION
writeline(RP,'SOUR1:FUNC SINE');
writeline(RP,'SOUR1:FREQ:FIX 1000000'); % Set frequency of output signal
writeline(RP,'SOUR1:VOLT 1'); % Set amplitude of output signal
writeline(RP,'SOUR1:BURS:STAT BURST'); % Set burst mode to BURST
writeline(RP,'SOUR1:BURS:NCYC 3'); % Set 3 pulses of sine wave
Looking forward to your reply.