D.2
matlab
121
D.2
matlab
Similar to the
python
bindings, a class is provided to make control-
ling the
ARF/XRF
easy using
matlab
. The listing below demonstrates
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);
Содержание ARF021
Страница 1: ...Agile RF Synthesizer AOM driver ARF021 ARF421 XRF021 XRF421 Version 1 5 0 Rev 6 ...
Страница 4: ...ii ...
Страница 10: ...viii Contents ...
Страница 26: ...16 Chapter 3 Communications ...
Страница 44: ...34 Chapter 5 External modulation ...
Страница 50: ...40 Chapter 6 PID stabilisation ...
Страница 64: ...54 Chapter 7 Digital I O ...
Страница 100: ...90 Chapter 9 Advanced table mode XRF ...
Страница 128: ...118 Appendix C Command language ...
Страница 133: ......