120
#
# 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)
dev.cmd('MODE,1,TSB')
dev.cmd('TABLE,ENTRIES,1,0')
for y in Y:
# upload the entries
dev.cmd('TABLE,APPEND,1,100,%.2f,0,5'%y)
print dev.cmd('TABLE,ARM,1')
Figure D.1: Pulse with a Gaussian envelope, created in table mode using
the example python code.
Appendix D. Code examples
#
30 to 0dBm
# set CH1 into table mode
# clear existing table
# ready for execution
Need help?
Do you have a question about the ARF021 and is the answer not in the manual?