Gocator Line Profile Sensors: User Manual
• 687
#include <kApi/Io/kFile.h>
…
ToolFx(kStatus) TestTool_VStart(TestTool tool)
{
…
kFile_Save("test.txt", stringBuf, (kSize) 1024);
kFile_Load("test.txt", stringBuf, &bufLen, kNULL);
Print Output
In the emulator, you can send output to Visual Studio or to programs such as DebugView by using the
OutputDebugString function.
GtsFx(kStatus) TestTool_Trace(const kChar* format, ...)
{
kStatus status = kOK;
kChar debugLine[256];
kVarArgList argList;
kVarArgList_Start_(argList, format);
{
status = kStrPrintvf(debugLine, 256, format, argList);
}
kVarArgList_End_(argList);
OutputDebugStringA(debugLine);
return status;
}
OutputDebugString is NOT supported on sensor targets. Use #ifdef to comment out the code
when compiling against sensor targets.