10-21-2022 04:12 AM
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?
10-21-2022 04:46 AM
Hi Kev,
@Kev2016 wrote:
Is there a way to add some markers programmatically…
Yes, sure!
You can:
In the end you need to prepare the data as needed for each of the mentioned options…
10-21-2022 06:45 AM
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.
10-21-2022 07:19 AM