SaveSettings
Top  Previous  Next

Description

Stores the current camera settings in a data file.


Syntax


[VB]
objActiveGige.SaveSettings( Name )


[C/C++]
HRESULT SaveSettings( 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 will be saved.  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example shows how to save the current camera settings using two options - profile name and file path:

Private Sub
 SaveSettings_Profile()  
ActiveGige1.SaveSettings ("FluorescentHighRes")  
End Sub  


Private Sub
 SaveSettings_File()  
ActiveGige1.SaveSettings ("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 save the camera settings in the Profile subfolder of the ActiveGigE folder. Otherwise the settings will be saved using the exact path to the file.

Note that due to User Account Control (UAC) your application may not have a permission to write data into the Program File folder where the ActiveGigE/Profile subfolder is located. In this case you should create a folder that has both read and write permissions and store the camera settings in it by using the full path and file name as an argument.

Also see LoadSettings.