Delta Tau Forums
Use of GetResponseEx - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Power PMAC (http://forums.deltatau.com/forumdisplay.php?fid=2)
+--- Thread: Use of GetResponseEx (/showthread.php?tid=777)



Use of GetResponseEx - BoneSkier - 12-09-2011

Could someone please explain the use of GetResponseEx versus GetResponse. There is no help on the GetResposeEx command.

int GetResponseEx(char *pinstr, char *poutstr, size_t maxchars,
unsigned char EchoMode,int ack)

I assume it has much of the same functionality of GetResponse:
Parameters:
*pinstr - ptr to input string

maxchars - max length of output string

EchoMode - PMAC "echo" parameter which determines the format of the response

*poutstr - ptr to output string

Returns:
0 == OK, - == error number

What do I do with the "ack" parameter?
Any other differences --- when would you use one command versus the other?



RE: Use of GetResponseEx - hbausley - 12-12-2011

(12-09-2011, 07:58 AM)BoneSkier Wrote: Could someone please explain the use of GetResponseEx versus GetResponse. There is no help on the GetResposeEx command.

int GetResponseEx(char *pinstr, char *poutstr, size_t maxchars,
unsigned char EchoMode,int ack)

I assume it has much of the same functionality of GetResponse:
Parameters:
*pinstr - ptr to input string

maxchars - max length of output string

EchoMode - PMAC "echo" parameter which determines the format of the response

*poutstr - ptr to output string

Returns:
0 == OK, - == error number

What do I do with the "ack" parameter?
Any other differences --- when would you use one command versus the other?

The additional ack parameter if set to 1 returns a character 6 to indicate the end of a multiple line response. GetResponseEx will handle the following additional commands, save,$$$,$$$***,reboot, and macro station close. It will also handle symbolic names provided a project with symbols has already been loaded.