Method: AddVideoChannel for Channels <Data>
- Updated2024-09-12
- 2 minute(s) read
Internal Data > Methods > Method: AddVideoChannel for Channels <Data>
Method: AddVideoChannel for Channels <Data>
Generates a new video channel in the script interface for internal data.
Set oVideoChannel = Object.AddVideoChannel(Name, File, FilePathMode, [FrameRate], [StartTime], [DestIndex])
Object | Channels <Data> Object with this method | ||||||
Name | String Specifies the name of the new video channel. | ||||||
File | String Specifies the filename of the video. | ||||||
FilePathMode | Specifies whether DIAdem stores the path of the video file relative to the data file or the absolute path of the video file. If you use a relative path, DIAdem finds the relative path only after you have saved and reloaded the data file, because only then DIAdem sets the Origin File Path channel property. Enumeration with the following selection terms:
| ||||||
[FrameRate] | Double Specifies the number of frames per second with which DIAdem displays DAS video in DIAdem VIEW. By default, the value is NoValue, which means that DIAdem reads the information from the video file. | ||||||
[StartTime] | Double Specifies the time delay when playing the video in DIAdem VIEW. By default, the value is NoValue, which means that DIAdem reads the information from the video file. | ||||||
[DestIndex] | LongInteger Specifies the position of the new assignment channel in the collection of existing channels. If you do not specify the DestIndex parameter, DIAdem creates the new assignment channel at the end of the collection. | ||||||
oVideoChannel | VideoChannel <Data> Returned object |
The following example creates a video channel with a relative path to the data file:
VBScript | Python |
Dim oMyVideoChn Set oMyVideoChn= Data.Root.ChannelGroups(1).Channels.AddVideoChannel("Video", "Safetytest02.wmv", eFilePathRelative,NoValue, NoValue, 1) Call MsgBoxDisp(oMyVideoChn.GetReference(ExtendChnName))