Fas_Setlogpath - Fastech Ezi-Step Plus-R User Manual

Micro stepping system with network based motion controller, communication function ver6
Hide thumbs Also See for Ezi-Step Plus-R:
Table of Contents

Advertisement

FAS_SetLogPath

Setup the folder path of Log output files.
Syntax
BOOL FAS_SetLogPath(LPCTSTR lpPath);
Parameters
lpPath
Folder path Character string of Log output file.
Return Value
If the folder name is not exist or can not access, return FALSE.
Remarks
This function have to be called before FAS_Connect library.
If the lpPath value is NULL or the length is 0, the Log path is selected to
Ezi-MOTION Plus-R Library folder. The default value for Log path is NULL that the
current library and program exist folder.
Example
#include "FAS_ EziMOTIONPlusR.h"
void funcEnableLog()
{
BYTE nPortNo = 1; // COMM Port number
// Log output.
FAS_EnableLog(TRUE);
if (!FAS_SetLogPath(_T( "C:\\Logs\\"))) // C:\Logs folder exist.
{
// Log path does not exist.
Return;
}
// All Log output is stored in C: \Logs folder.
// Try to connect.
if (FAS_Connect(nPortNo, 115200) == FALSE)
{
// Connection fail.
// cab be different Port or different Baudrate.
return;
}
// Close connect.
FAS_Close(nPortNo);
}
See Also
FAS_EnableLog
- 43 -
Library for PC Program
43

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Ezi-Step Plus-R and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Ezi-step plus-r mini

Table of Contents