LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Taking subset from Waveform Graph

Solved!
Go to solution

Hello LabVIEWers,

 

I'm trying to take a 2 second portion of a waveform graph that has a 2 and a half minute song file loaded into it. I've scoured forums and other sources on how to properly use Get Waveform Subset, or any other .vi that would accomplish this part of my VI but can't seem to find anything that I can comprehend. 

 

I would like to be able to specify the start time of the Full Waveform that gets loaded into the Partial Waveform Graph, and then have that start time last 2.2 seconds, this way I can expand the waveform and better see what's going on there and in the future, after filtering and smoothing, find peaks and BPM (end goal). But for now I just need a tip on how to get this portion extracted from the Full Waveform. 

 

I'm attaching my VI , though it may not help much because you won't have the .wav file on your computer that I'm using, but you could use your own. I'll attach screen shots too. 

 

There are some redundant parts to this VI because I've been experimenting with a lot of random ideas to try to get this to work. 

 

2019-10-17.png

 

 

 

0 Kudos
Message 1 of 6
(2,771 Views)

Hi aj,

 

which part of the LabVIEW help for WaveformGetSubset don't you understand?

Did you read the explanation for all inputs of this function - especially those ones you left unwired?

 

And why do you need to use FromDDT ExpressVI on this waveform wire?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(2,761 Views)
Solution
Accepted by topic author aj.insight

It looks like you just missed one input on the Get Waveform Subset.  There is a Ring input on the top to choose whether the times are in samples (default) or relative time.  You just need to set that to Relative Time.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 6
(2,757 Views)

GerdW,

 

Thanks for the reply, so it seems I hallucinated a broken wire when I went straight from my array to my waveform input on my GetWaveformSubset.vi. Not sure why but I definitely remember having to make a conversion just to get rid of the broken wire, despite the fact that the data form in the context help matched the data output from my array. I received the tip, now I'll get moving with the next step!

 

Thanks!

0 Kudos
Message 4 of 6
(2,713 Views)

cross,

 

That's it! Between the ring input and the conversion from DDT, I had a few simple things screwed up. 

 

Thank you! 

0 Kudos
Message 5 of 6
(2,710 Views)

Hi aj,

 


@aj.insight wrote:

I hallucinated a broken wire when I went straight from my array to my waveform input on my GetWaveformSubset.vi. Not sure why but I definitely remember having to make a conversion just to get rid of the broken wire,


You got a broken wire because you tried to wire an array of waveforms to in input accepting a scalar waveform.

You needed to place an IndexArray function to solve this problem - but not that FromDDT ExpressVI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(2,695 Views)