LoadInterfaceDefaults Method
Syntax
CWIMAQ.LoadInterfaceDefaults
Return Type
This method returns 0 on success, a negative number on an error, and a positive number on a warning.
Purpose
Loads the settings for the current interface that you configured in Measurement & Automation Explorer (MAX) into the CWIMAQ control properties.
Remarks
When you change the value of the interface property in the CWIMAQ control, the control retains the value of all of its other properties and acquires images with the new interface settings. To use values for a new interface that you configured in MAX, call the LoadInterfaceDefaults method.
Example
Private Sub Run_Click() ' Set the interface to img1 CWIMAQ1.Interface = "img1" ' Load interface defaults for img1 CWIMAQ1.LoadInterfaceDefaults End Sub