04-19-2019 10:15 AM
Hi everyone,
I'm trying to do a triggering of a waveform with two cursor one for start and other for finish , so if i get the position of the two cursors ,i want to get a subset of the first graph in another graph ,any idea of how i could do that please ?
i've joined a picture of what i want to do .
Best regards,
04-19-2019 11:32 AM
Keep the two indices in a shift register and use "cursor release" events to update the cursor position ("cursor index" from property nodes or "PointIdx" from the event data node), followed by taking a subset for the second graph (sort the indices first). Make sure the cursors are locked to the plot.
04-19-2019 11:35 AM - edited 04-19-2019 11:39 AM
This old example (posted here) should get you started. Just graph the subset instead of taking the mean. Easily expandable for even more cursors.
04-23-2019 03:17 AM
Thanks for your reply i'm trying to do the same and instead of the mean i do a graph . but i have a problem how can i get the of block of waveform to get the active cursor and cursor index i don't have the same in property node of my graph .
please find attached my Vi
04-23-2019 04:03 AM
First of all, the cursors need to be locked to a plot (instead of free dragging). All the properties are right there, you just need to select them in the right order. You also probably want to have a small wait inside that loop.
Simply create a property node that has the items as in my example. Make that "active cursor "write" mode, and the rest "read" mode. To get the cursor index, you need to go right from the cursor into a new submenu.
04-23-2019 04:21 AM
sorry but what do you mean by the cursors qhould be locked to a plot ,and in which part of my diagram ?
04-23-2019 05:56 AM
04-23-2019 07:22 AM
Thanks GerdW ,now i understand the difference
04-23-2019 09:28 AM
I have a question about the cursors : i'm wondering if it's the same as triggering (like in an oscilloscope apply some impulsion to my signal at a certain threshold)
04-23-2019 09:45 AM