Create Method

NI Vision for Visual Basic

Create Method

Syntax

CWIMAQAVISession.Create Path [, FramesPerSecond = 30] [, MaxDataSize = 10000] [, FilterName] [, Quality = 1000]

Purpose

Creates a new AVI file and opens it for write.

Parameters

Path As String

The location of the AVI file to create.

FramesPerSecond As Variant

[Optional] The number of frames per second of this AVI. FramesPerSecond indicates the playback rate you want to use for the AVI you create. The AVI may play at a slower rate depending on the performance of the system it plays on.

This parameter has a default value of 30.

MaxDataSize As Variant

[Optional] The maximum size of data that can be attached to each frame. If you do not want to attach data to this AVI, set this to 0.

This parameter has a default value of 10000.

FilterName As String

[Optional] The name of the compression filter to use. To get a list of valid compression filters on your system, call GetFilterNames. By default, this parameter indicates that the method uses no compression.

Quality As Variant

[Optional] The quality to use for the compression filter, from 0 to 1000.

This parameter has a default value of 1000.

See Also

Close

GetFilterNames