def METHOD_NAME(out_val, mpos=None):
    # Set up command
    #
    # for sanity, specify output 1, changed to 0 in remap
    code = 67 + int(mpos is None)
    cmd = 'M%d E1 Q%.2f' % (code, out_val)
    # Print pre-test values
    s.poll() # Update status channel
    c.mdi('(print,cmd: "%s")' % cmd)
    c.mdi('(print,    M%d remapping pre: motion aout0=%.2f; hal a_out=%.2f)' %
          (code, s.aout[0], h['a_out']))
    # Run test command
    c.mdi(cmd)
    if mpos is not None:
        c.mdi('G0 X%.2f' % mpos)
        c.wait_complete()
    # Print post-test values
    s.poll() # Update status channel
    c.mdi('(print,    M%d remapping post: motion aout0=%.2f; hal a_out=%.2f)' %
          (code, s.aout[0], h['a_out']))