Execute a sequence as defined in a Sequence section of the configuration file and log the events to a file. See also RunSequence

Parameters:

seqName

The name of the sequence configuration section that defines this sequence.

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 LogSequence(char* seqName, 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 = LogSequence("Seq_1", "C:\\Temp\\MyLogFile.Log");
       if(successful)
           printf("Success");
       else
           printf("Failure");
   }
}