Load the condition settings.
Ret = GenImportSettingFile ( AppId , FilePath )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify Application ID retrieved by GenOpenApplication.
FilePath [ VB.NET: String] [ C++: char * ] [ C#: string] [ Python: ctypes.c_char_p ]
Specify
the file path with file name which is for the condition settings.
An error may occur when the file name is invalided.
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
Definition |
Return Value |
Description |
GEN_ERR_SUCCESS |
0 |
Normal completed |
GEN_ERR_FILEPATH |
10002 |
The setting file path is invalid. |
GEN_ERR_FILETYPE |
10003 |
The setting file type is invalid. |
GEN_ERR_BASICMODE |
20011 |
Switched to Basic mode. Settings may change automatically. |
The others (See also: Error Code List)
Open an existing file and load settings.
If the read device name does not exist, set the device before reading.
This function can be executed even if the device is in operation.
Load the settings of "SettingFile.ini".
VB.NET |
Dim Ret As Integer Ret = GenImportSettingFile(AppId, "SettingFile.ini")
|
C++ |
long Ret; Ret = GenImportSettingFile(AppId, "SettingFile.ini");
|
C# |
int Ret; Ret = gen.ImportSettingFile(AppId, "SettingFile.ini");
|
Python |
Ret = ctypes.c_long() Ret.value = cgen_api.GenImportSettingFile(AppId, "SettingFile.ini")
|