Refresh Method

NI Vision for Visual Basic

Refresh Method

Syntax

CWIMAQViewer.Refresh

Purpose

Redraws the CWIMAQViewer control immediately.

Remarks

This method is called automatically when the image is updated, if you have ImmediateUpdates set to True. This method is the only way to display overlays immediately after drawing them.

Example

Private Sub Run_Click()
    'Force the viewer to refresh.
    CWIMAQViewer1.Refresh
End Sub

See Also

ImmediateUpdates

CWIMAQOverlay