LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to mark points to indicate rising and falling times in waveform graph

Hello, 

I am relatively new to LabVIEW. I am working on a project where I have to determine a signal's rise and fall times. 

 

Is there a way to add some markers programmatically to samples corresponding to the start time position and end time position of rising time and falling time calculation ( please see attached picture)? I have seen a LabVIEW graph with similar markings but so far I wasn't able to figure out how to do it. 

could anyone help me with this? 

 

I attached a simple version of VI that looks similar to the VI that I used to calculate rise and fall times. do I have to use start time and end time values ​​to plot it in the graph?  

Download All
0 Kudos
Message 1 of 4
(934 Views)

Hi Kev,

 


@Kev2016 wrote:

Is there a way to add some markers programmatically…


Yes, sure!

 

You can:

  • add more plots with just the points of interest (you know each plot can have its own color!?)
  • add cursors
  • add images to your graph

In the end you need to prepare the data as needed for each of the mentioned options…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(926 Views)

Hello,

 

GerdW is right. And to help you decide, which method fits best I want to show the pros and cons of them:

 


 

You can:

  • add more plots with just the points of interest (you know each plot can have its own color!?)

    with a regular graph you would need for every marked plot another plot of the same length, fill it with NaN and replace at the marked index with the plot- value.
  • add cursors

    for every marker create a cursor (build up a cursor list array from a cursorlist-item template) and attach it to the appropriate plot
  • add images to your graph

    there are three planes to draw into the plot area via 2D draw-functions from the picture palette. One is behind the raster, one is between raster and plots and the third is before the plots.

In the end you need to prepare the data as needed for each of the mentioned options…


The first two adapt the markers to zooming and panning, but you are limited to the visual styles LabVIEW has for Plots and cursors. The third solution gives great freedom in visual presentation of the markers, but they don't move with zooming and panning, so you have to handle this yourself.

Greets, Dave
0 Kudos
Message 3 of 4
(895 Views)

Hi,

 

I forgot to mention annotations… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(883 Views)