; NotePad editor can be used to create the FPA configuration file.
When the ‘*’ is used instead FPA’s SN, then any FPA will be accepted. The ‘*’ can be used only
once and on the end of the FPA’s list eg.
FPA-1 20050116
FPA-2 20050199
FPA-3 *
or
FPA-1 *
when only one adapter (any adapter) is used.
Example:
1. Only one FPA is used:
F_OpenInstancesAndFPAs( “*# *” ); //DLL startup and FPA assignment
//by default - FPA-1 is selected.
//The F_Set_FPA_index(1) is not required.
F_Initialization(); //FPA 1 initialization
F_ReadConfigFile( filename ); //download configuration to DLLs.
F_ReadCodeFile( format, filename ); //download code file to DLLs.
do
{
status = AutoProgram(1); //start autoprogram
if( status != TRUE )
{
// service software when results from FPAs are not the same
}
else
{
}
.......................
{
.......................
} while(1);
F_CloseInstances();
// release DLLs from memory
2. More then one FPA is used.
F_OpenInstancesAndFPAs( FPAs-setup.ini );
//DLL startup and FPA assignment
F_Set_FPA_index (ALL_ACTIVE_FPA);
//select all available FPAs
F_Initialization();
//init all FPAs
42