F_OpenInstancesAndFPAs, F_OpenInstances_AndFPAs
F_OpenInstancesAndFPAs - API-DLL initialization in the PC and programming adapters
or F_OpenInstances_AndFPAs scan and assignment to desired USB port according to
contents of the FPA’s list specified in the string or FPA’s
configuration file.
Instruction must be called first - before all other instruction. Function is opening the number
of the desired API-DLL and assigning the desired adapters to available USB ports. Regardless of the
USB port open sequence and connection of the USB-FPA or MSP-FET430UIF to USB ports, the
F_OpenInstancesAndFPAs instruction is reading the FPA’s list, scanning all available adapters
connected to any USB ports and assigning the indexes to all adapters according to contents of the
FPA list (from string or configuartion file). All adapters not listed in the FPA configuration file and
connected to USB ports are ignored.
Important: Do not use the F_Check_FPA_access after using the F_OpenInstancesAndFPAs.
The F_OpenInstancesAndFPAs is assigning the FPAs to USB ports and it is not
recommended to reassign once again the USB port using the F_Check_FPA_access
function. To check the communication activity with FPA use the F_Get_FPA_SN
function that allows to check te communication with the FPA adapter without
modifying the USB ports assignment.
Syntax:
INT_X MSPPRG_API F_OpenInstancesAndFPAs( char * List );
INT_X MSPPRG_API F_OpenInstances_AndFPAs( CString List );
Parameters:
1. When the first two characters in the List string are *#, then reminding characters of the
string contain a list of desired FPAs serial numbers or IDs assigned to FPA-1, -2, ...-n
indexes, eg.
“*# 20060123, 20060234, 20060287"
2. When the first two characters in the List string are not *#, then the string contain file name
or full path of the file with a list of the FPA’s serial numbers, eg.
“C:\Program Files\Elprotronic\FPAs-setup.ini”
Return value:
number of opened instances
38