====== SML01 control ====== {{tag>}} ~~DISCUSSION~~ The fs-based control of the SML01 over the GPIB bus has been implemented.\\ The created functions are:\\ * smlclear: reset the device. * smlstat: report on the current frequency, power level, and rf on/off status. * smlfreq: set a frequency (in MHz). * smlpow: set a power level (in dBm). * smlrf: turn the output on or off. To clear the device, then set it to 1.0387GHz, -12dBm, with the RF on, this would look like:\\ smlclear smlfreq=1038.7 smlpow=-12 smlrf=on smlstat With the fs output:\\ 22:45:47;smlclear 22:45:47&smlclear/hpib=sm,*rst 22:45:47&smlclear/hpib=sm,*cls 22:46:18;smlfreq=1038.7 22:46:18&smlfreq/hpib=sm,freq $mhz 22:46:24;smlpow=-12 22:46:24&smlpow/hpib=sm,pow $dbm 22:46:30;smlrf=on 22:46:30&smlrf/hpib=sm,outp:stat $ 22:46:33;smlstat 22:46:33&smlstat/"the name, frequency, attenuation, rfout status for the sml01 22:46:33&smlstat/hpib=sm,*idn? 22:46:33&smlstat/hpib=sm 22:46:33&smlstat/hpib=sm,freq? 22:46:33&smlstat/hpib=sm 22:46:33&smlstat/hpib=sm,pow? 22:46:33&smlstat/hpib=sm 22:46:33&smlstat/hpib=sm,outp:stat? 22:46:33&smlstat/hpib=sm 22:46:33/hpib/ROHDE&SCHWARZ,SML01,105987/0011, 22:46:33/hpib/1.038700000000E+09 22:46:33/hpib/-1.200000E+01 22:46:33/hpib/1