RIEVTECH — RIEVTECH STUDIO SOFTWARE MANUAL(2.0 Version).docx

RIEVTECH STUDIO SOFTWARE MANUAL char **pResult; intRow,Col; int err=SqlSelect(2,"xxx",pResult,Row,Col); SqlFree(pResult); 6.2.2.9 SQL Data Buffer Free: SqlFree intSqlFree(Pointer to Database inquiry buffer); Pointer to database inquiry buffer: Char Array pointer. Return Value: int type, 1-Success, 0-Failure. Example: char **pResult; intRow,Col; int err=SqlSelect(2,"xxx",pResult,Row,Col); SqlFree(pResult); 6.2.2.10 Debug Function: Debug void Debug( Port ID,Format String,Var1,Var2...); Please call the SetComParam function to initialize the serial port before call this function. But serial port initialization is not needed if only debug in the simulation window.

Port ID:the ID of com port, unsigned int type. 0-COM1, 1-COM2, 2-COM3... Format String: the format of output string, usage is same as printf in C language. Variables: the name of variables corresponding to the output strings, same usage as printffunction in C programming language. The format is defined below, [] indicates optional elements. %[Designated Parameter][Identifier][Width][.Precision]Designator If you want to output '%', please use '%%'. 1- Define the direction of processing. Negative sign means the direction is from backend to the beginning.2- The word element for space filling. 589