CWIMAQ

NI Vision for Visual Basic

CWIMAQ

CWIMAQ is the top-level object for the CWIMAQ control.

Properties

AcquiredImageEnabledBoolean that determines if the CWIMAQ control should generate the AcquiredImage event.
AcquireFieldField to acquire if you set FrameFieldMode to cwimaqFieldMode.
AcquisitionInProgressState of an acquisition for the current interface.
AcquisitionTypeType of acquisition to perform.
AcquisitionWindowHeightHeight of the acquisition window, in lines.
AcquisitionWindowLeftLeft edge of the acquisition window.
AcquisitionWindowTopTop edge of the acquisition window.
AcquisitionWindowWidthWidth of the acquisition window, in pixels.
AttributeHidden property that takes a parameter and allows you to set and get NI-IMAQ attributes that are not supported in the CWIMAQ control.
BitsPerPixelNumber of bits used to represent each pixel value.
BlackReferenceVoltBlack reference value, in volts.
CalibrationDateCalibration date of the image acquisition device.
CameraAttributeValue of a camera attribute.
CaptureStopBuffersThe number of buffers to capture after a trigger is received.
ChannelCurrent channel for the acquisition.
ColorCWIMAQColor object that the CWIMAQ control uses for color settings.
ColorAverageCountObsolete—Use CWIMAQColor.AverageCount instead.

Number of color images to acquire and average for one output image (1-128). The default value is 1.
ColorBrightnessObsolete—Use CWIMAQColor.Brightness instead.

Brightness of the image, in IRE. IRE is the percentage of the white level. The default value is 0.
ColorContrastObsolete—Use CWIMAQColor.Contrast instead.

Contrast of the image. The value is a scaling factor applied to every pixel. The contrast adjustment is centered around the median pixel value. For example, an 8-bit image is centered around 128. The default value is 1.
ColorImageRepObsolete—Use ImageRep instead.

Type of image data returned when a color image is acquired.
ColorModeObsolete—Use StillColorMode instead.

Color mode of the acquisition. Valid options are none, or monochrome, RGB, or Composite StillColor.
ColorSaturationObsolete—Use CWIMAQColor.Saturation instead.

Color saturation of the image. A saturation of 0 corresponds to a monochrome image. The default value is 1.
EncoderA CWIMAQEncoder object that specifies the encoder functionality for the acquisition.
ErrorEventMaskContexts for which the control generates error events.
ExceptionOnErrorError handling. Set this property to True to specify that the control methods generate an exception on an error condition. Set this property to False to specify that the control methods return a negative number to indicate the error.
FrameCountNumber of frames counted since the start of an acquisition.
FrameFieldModeCurrent mode of the acquisition. Set this property to cwimaqFieldMode to specify a field mode for the acquisition. Set this property to cwimaqFrameMode to specify a frame mode for the acquisition.
FrameTimeoutTimeout value for a frame, in milliseconds.
HScaleModeHorizontal hardware scaling factor for the channel associated with an acquisition.
ImageRepImage representation of the acquisition.
ImagesCollection of CWIMAQImage objects that define the images into which your image acquisition device acquires data.
ImagesPerEventNumber of images that your image acquisition device acquires before the control generates the AcquiredImage event.
InterfaceCurrent interface selected for the acquisition. An interface file stores configuration information. You can associate an image acquisition device with more than one interface, which allows you to have multiple configurations for one device.
InterfaceTypeInterface type for a particular interface.
IsCalibratedCalibration status of the image acquisition device.
LastValidFrameLast valid frame acquired.
LastValidImageIndex of the last image acquired.
LookupTableLookup table of the image acquisition device. You can choose one of six standard lookup tables--normal, inverse, binary, inverse binary, log, and inverse log.
LostFramesNumber of frames that the current acquisition has lost.
OnboardRAMSizeAmount of onboard memory for the current interface.
PortCurrent port for the acquisition.
PortCountThe number of ports available.
PulsesCollection of CWIMAQPulse objects that describe a pulse your image acquisition device generates on a signal I/O line.
ROIHeightHeight of the region of interest (ROI), in lines.
ROILeftLeftmost edge of the region of interest (ROI).
ROITopTopmost edge of the region of interest (ROI).
ROIWidthWidth of the region of interest (ROI).
SessionIDHidden property that allows you to get the session ID of an open session.
SignalsCollection of CWIMAQSignal objects that specify the signal I/O to use in the acquisition.
StartConditionObsolete—Use CWIMAQSignals to set up a hardware trigger.

Acquisition to start immediately or on a trigger.
StartFieldField to start acquiring on when FrameFieldMode is set to cwimaqFrameMode.
StillColorModeStillColor mode of the acquisition.
StopConditionObsolete—Use AcquisitionType to specify One-Shot or Continuous. Use CWIMAQSignals to set up a retriggered acquisition.

Condition on which the acquisition stops. Valid options are immediately after all images are acquired, continuous, or continuous with a trigger at the beginning of each iteration.
VHAStatus of Variable Height Acquisition (VHA) on the device.
VScaleModeVertical hardware scaling factor for the channel associated with an acquisition.
WhiteReferenceVoltWhite reference value, in volts.

Methods

AboutBoxDisplays the About box for the control.
AcquireImageRuns an acquisition synchronously.
ConfigureConfigures the channel and device of the current interface for an acquisition.
DisableSignalOccurrencesDisables all signal I/O related events.
EnableSignalOccurrenceEnables the SignalOccurrence event to generate on a signal.
ExportStyleExports the style of the NI Vision control to a file.
ExtractImageExtracts an image from a live acquisition.
GetTriggerObsolete—Use CWIMAQSignals instead.

Gets the action and polarity for a trigger line.
GetTriggerStatusObsolete—Use CWIMAQSignal.Status instead.

Returns the status on a trigger line you specify.
ImportStyleImports a previously exported style.
LoadInterfaceDefaultsLoads the settings for the current interface that you configured in Measurement & Automation Explorer (MAX) into the CWIMAQ control properties.
ReleaseImageReleases an image that you held out of a live acquisition with the ExtractImage method.
ResetStops an acquisition in progress and resets any internally configured resources to their default values.
SaveImageToDiskSaves an image to disk. This method saves border and padding information with the image data. To write an image to file without the border and padding information use the WriteImage method.
SetTriggerObsolete—Use CWIMAQSignals instead.

Sets the action and polarity for a trigger line.
SetUserLookupTableSets the specified lookup table on the image acquisition device with a user-defined lookup table.
StartStarts the acquisition asynchronously.
StopStops an acquisition in progress.
WaitOnSignalWaits for a signal to generate.
WindowPlotObsolete—Use the CWIMAQViewer object to display images.

Plots an image to a window given a native window handle. Use this method to display an image after it is acquired.

Events

AcquiredImageFires when the image acquisition device acquires the specified number of images. CWIMAQ generates this event only for acquisitions that you initiate with the Start method.
IMAQErrorFires when an NI-IMAQ error occurs, depending on the value of the ErrorEventMask property. The ErrorEventMask property selects the contexts—configuring, reading data, and so on—for which the CWIMAQ control generates IMAQError events.
IMAQWarningFires when an NI-IMAQ warning occurs.
SignalOccurrenceFires when a signal occurs.