![MOGlabs ARF021 Скачать руководство пользователя страница 130](http://html.mh-extra.com/html/moglabs/arf021/arf021_manual_1823388130.webp)
120
Appendix D. Code examples
#
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
# ARF Gaussian pulse example, (c) MOGLabs 2016
#
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
from mogdevice import MOGDevice
import numpy as np
# connect to the device
dev = MOGDevice(’10.1.1.45’)
print ’Device info:’, dev.ask(’info’)
# construct the pulse
N = 200
X = np.linspace(-2,2,N)
Y = 30*(np.exp(-X**2)-1)
#
−
30 to 0dBm
dev.cmd(’MODE,1,TSB’)
# set CH1 into table mode
dev.cmd(’TABLE,ENTRIES,1,0’)
# clear existing table
for y in Y:
# upload the entries
dev.cmd(’TABLE,APPEND,1,100,%.2f,0,5’%y)
print dev.cmd(’TABLE,ARM,1’)
# ready for execution
Figure D.1:
Pulse with a Gaussian envelope, created in table mode using
the example
python
code.
Содержание 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: ......