Method: SetVideo for Video
- Updated2024-09-12
- 2 minute(s) read
DIAdem VIEW > Methods > Method: SetVideo for Video
Method: SetVideo for Video
Specifies whether DIAdem uses a video file or a video channel in a video in DIAdem VIEW and specifies the name of the video file or the channel reference of the video channel. Use the FileName for Video property to specify the name of the video. Use the VideoSourceMode for Video property to specify whether DIAdem uses a video file or a video channel.
Object.SetVideo(VideoSourceMode, FilenameOrVideoChannelName)
| Object | Video Object with this method | ||||||
| VideoSourceMode | LongInteger Enumeration with read and write access and the following selection terms:
| ||||||
| FilenameOrVideoChannelName | String Specifies the video file name or the channel reference of the video channel. |
The following example creates a video area and assigns a video channel to it:
| VBScript | Python |
Dim oMySheet, oMyObj Call View.NewLayout() Set oMySheet = View.ActiveSheet oMySheet.ActiveArea.DisplayObjType = "Video" Set oMyObj = oMySheet.ActiveArea.DisplayObj Call oMyObj.SetVideo(eVideoFile, ProgramDrv & "Examples\Documents\Safetytest01.wmv")
See Also
Examples
Alignment Functions in DIAdem VIEW | Automatic Display of Harmonic Frequencies | Bird's Eye View Display | Calculating a Tangent to a Curve | Contour Display in DIAdem VIEW | Creating and Viewing Long Data Channels | Dynamic Display of Statistical Characteristic Values in DIAdem VIEW | Overlaying Objects in Videos | Planetary Motion | Synchronizing Videos and Data | Synchronizing Videos and Waveform Data | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | Using a User Command to Calculate the Difference between the Y-Values | Various Display Modes in DIAdem VIEW | Vibration Data Analysis with Parallel Processing | Viewing and Automatically Analyzing Data