3.4.2
writeRead_OK
The writeReady_OK function is used for commands with multi-line responses. Commands with multi-line responses
return several lines in one go, each ending with "\r\n" and finally finish up with an "OK\r\n".
The function 'writeRead_OK' behaves largely identical to 'writeRead'. The only noteworthy difference is in the loop that
waits for a complete response from the ISC board. In this case the function waits until the response string rx contains the
string "OK\r\n", indicating the multi-line response has been completed.
3.4.3
Printing communications to the log
The GUI logs all the communication to and from the ISC board.
This occurs in the writeRead commands on the lines that call the print_message function.
print_message(direction::outbound, tx);
print_message(direction::inbound, rx);
The print_message function simply appends to the tx and rx lines to the contents of the text editor on the left side of
the GUI.
It takes a direction argument (dir), and a string argument (text).
If the direction of the message is inbound from the ISC board, "<\t" is inserted before the string, as well as after the
"\r\n" of each line of the response (if there are multiple), except the last.
AN-50-008
Rev: OR
This document and its contents are the property of Mini-Circuits.
DCO-000822
(03/07/22)
File: AN-50-008.docx
Page 20 of 26
Need help?
Do you have a question about the ISC-2425-25+ and is the answer not in the manual?