ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get waveform data in specific duration?

Hi,

I have an analog waveform and I want to get the data in 20ms range (Like, 0ms-20ms then 20ms-40ms .........)

How can I get that?
I have used ''get waveform subset.vi'' but it only takes the first range(0-20ms).

 

N.B. I already have the total waveform data, I just need to get data in range & save it.

Thanks.

 

 

0 Kudos
Message 1 of 5
(3,218 Views)

Show what you've done so far.  With Get waveform subset, you need to specify the start point and the duration.  Did you wire in both of those inputs?

0 Kudos
Message 2 of 5
(3,195 Views)

Yes, I wired both inputs. 

Here is the vi.

thanks.

0 Kudos
Message 3 of 5
(3,183 Views)

But you wired them with constants!  So of course you'll get a constant output.

 

If you want the waveform to change, you need to update the start time in every iteration.  (0, .02, .04, .06, ........)

Message 4 of 5
(3,149 Views)

Thank you for your help Smiley Happy

0 Kudos
Message 5 of 5
(3,126 Views)