LogCalibrate
Execute a calibration as defined in a Calibration section of the configuration file and log the events in a log file. See also Calibrate
Parameters:
calName:
The name of the calibration configuration section that defines this calibration.
pnaName:
The name of the PNA being used to make the measurements.
logFilename:
The full path and name of the file to store the log of events. The log file is ASCII text human readable with timestamps for every event.
Return Value:
Success or failure. If the function fails use GetErrorMessage to get the specific errors associated with the failure.
Prototype Signature:
success LogCalibrate(char* calName, char* pnaName, char* logFilename);
An example of how this function is used is shown below.
#include <malloc.h>
#include <string.h>
#include "api.h"
int main()
{
success successful;
//Initialize the library with a specific configuration file
successful = Initialize("C:\\Temp\\MyConfig.ini");
if(successful)
{
//Execute the "Cal_ICM-Plane" calibration
successful = LogCalibrate("Cal_ICM_Plane", "PNA-1", "C:\\Temp\\MyLogFile.Log");
if(successful)
printf("Success");
else
printf("Failure");
}
}