Matlab - MOGlabs ARF021 Manual

Agile rf synthesizer & aom driver
Hide thumbs Also See for ARF021:
Table of Contents

Advertisement

D.2 matlab
D.2 matlab
Similar to the python bindings, a class is provided to make control-
easy using matlab. The listing below demonstrates
ling the
ARF/XRF
how to create a simple table that produces a pulse with a Gaussian
envelope.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ARF MATLAB example, (c) MOGLabs 2017
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% create a device instance
dev = mogdevice();
% example: connecting by ethernet
dev.connect('10.1.1.31');
% print some information about the device
disp(dev.ask('INFO'));
% create a gaussian envelope
N = 500;
pulse = exp(-(8*((0:N)/N - 0.5)).^2);
plot(pulse)
% convert mW to dBm
pulse = 10*log10(pulse);
% upload gaussian pulse in simple table mode
dev.cmd('MODE,1,TSB');
dev.cmd('TABLE,CLEAR,1');
disp('Uploading table...')
for i=1:length(pulse)
% we can use printf notation when sending commands
dev.cmd('TABLE,APPEND,1,100MHz,%f dBm,0,1us',pulse(i));
end
disp('Done')
dev.cmd('TABLE,ARM,1')
dev.cmd('TABLE,START,1')
% close the connection
delete(dev);
121

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ARF021 and is the answer not in the manual?

This manual is also suitable for:

Arf421Xrf021Xrf421

Table of Contents