This example program will query the instrument for its settings and build a 'learn' string that can be sent to the instrument to recover these settings.