New MIAMEX function MX_AGWRAPPER (177) serves as a convenient wrapper for "raw" ATE commands that are otherwise invoked via a sequence like:
? TAB(-10,AGCMD);PARMS;chr(127);
input "",RESPONSE
The MX_AGWRAPPER function reduces the above sequence to:
xcall MIAMEX, MX_AGWRAPPER, AGCMD, PARMS, RESPONSE
Aside from simplifying the syntax, MX_AGWRAPPER provides some intelligence to deal with the problem of typeahead that may be "in the pipe" at the time the command was issued and thus get mixed into the response.
Note that the function should only be used with ATE (AG_xxx) functions that return a response. Otherwise there will be a 2 second delay until it times out waiting.