Object: HarmonicItem
- Updated2024-09-12
- 2 minute(s) read
DIAdem VIEW > Objects > View > Object: HarmonicItem
Object: HarmonicItem
The Harmonic object provides a cursor line of a Harmonic cursor in a 2D axis system in DIAdem VIEW.
The following example displays the section points of all cursor lines with the leading curve in a 2D axis system:
| VBScript | Python |
Dim oMySheet, oMyChart, oMyCurve, oMyObj, oMySubCursor, i, sOutput Call View.NewLayout() Set oMySheet = View.ActiveSheet oMySheet.ActiveArea.DisplayObjType = "CurveChart2D" Set oMyChart = View.ActiveSheet.ActiveArea.DisplayObj Set oMyCurve = oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]") Set oMyObj = oMySheet.ActiveArea oMyObj.DisplayObj.SubCursorType = eVIEWSubCursorTypeHarmonic Set oMySubCursor = oMySheet.ActiveArea.DisplayObj.SubCursor.Harmonics sOutput = "Position of Additional Cursor Lines: " & vbCrLf For i = 1 to oMySubCursor.Count sOutput = sOutput & "Line " & i & ": " & VBTab & " X: " & oMySubCursor(i).X & " Y: " & oMySubCursor(i).Y & VBCrLf Next Call MsgBoxDisp(sOutput)
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