added commands to change #switches and #ports, added trigger output signal, slight modifications to sweep timing, changed order of PLL and DAC update (DAC first)
dwell_time should now be more exact (added correction); restored original order PLL-DAC (works better)