LoadSettings
Top  Previous  Next

Description

Loads previously stored camera settings from the data file.


Syntax


[VB]
objActiveGige.LoadSettings( Name )


[C/C++]
HRESULT LoadSettings( BSTR Name );


Data Types
[VB]

Profile: String
Return value: None


Parameters
[C/C++]

Name [in]  
The name of the profile or path to the file in which the settings are stored.  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example restores previously saved camera settings:

This VB example shows how to restore previously saved camera settings using two options - profile name and file path:
 
Private Sub
 LoadSettings_Profile()  
ActiveGige1.LoadSettings ("FluorescentHighRes")  
End Sub  


Private Sub
 LoadSettings_File()  
ActiveGige1.LoadSettings ("C:/CamSettings/HighRes.dat")  
End Sub  



Remarks

If no colon or slash symbols are found in the Name argument, ActiveGigE will treat it as a profile name and will attempt to find the profile with the camera settings in the Profile subfolder of the ActiveGigE folder. Otherwise the exact path to the data file will be used.

This method verifies if the currently selected camera model coincides with the model for which the settings were saved. If the model is different, the function will return an error.

Also see SaveSettings.