SetUserLookupTable Method
Syntax
CWIMAQ.SetUserLookupTable LookupTable, LookupTableArray
Purpose
Sets the specified lookup table on the image acquisition device with a user-defined lookup table.
Remarks
Call this method with a LookupTableType of cwimaqDefault to set all lookup tables of the current device to a user-defined LookupTable. Call SetUserLookupTable a second time to set an individual lookup table.
Parameters
LookupTable As CWIMAQLookupTableTypes
The lookup table to program. Pass a cwimaqDefault value for this parameter to program all the lookup tables on a board.
LookupTableArray As Variant
The user lookup table array of data. For 8-bit lookup tables, LookupTableArray should have 256 elements.
Example
' This example requires you to have the following controls on the form: ' 1) A button named Acquire. ' 2) A button named Stop. ' 3) A button named Reset. Private Sub Reset_Click() CWIMAQ1.Reset End Sub Private Sub Stop_Click() CWIMAQ1.Stop End Sub Private Sub Acquire_Click() Dim lutArray(0 To 255) Dim index As Long CWIMAQViewer1.Attach CWIMAQ1.Images(1) CWIMAQ1.LookupTable = cwimaqNormal CWIMAQ1.AcquisitionType = cwimaqAcquisitionContinuous For index = 0 To 255 lutArray(index) = 255 - index Next CWIMAQ1.SetUserLookupTable cwimaqTap0, lutArray CWIMAQ1.Start End Sub