LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger integrals

Solved!
Go to solution

If I have a waveform with 50% pretrigger data, and 50% posttrigger data, is there a way to take two separate integrals, one for each section?  I want to calculate the background noise for our experiment.  Currently I'm trying to fetch the measurements from two different waveforms, one with 100% pretrigger data and one with 0%.  But the pretrigger data doesn't match up with the signal data so the noise calculation is incorrect.

 

I'm using a PXI-1000B.

 

Thanks

 

Here's the old vi that I'm trying to modify:

 

Message Edited by bbentelin on 05-14-2010 03:47 PM
0 Kudos
Message 1 of 9
(3,397 Views)
Solution
Accepted by bbentelin

Have you tried taking the original signal with pre and post trigger data and simply split the array in half?  It will take a couple of functions to do this, but it's a pretty straightforward task.  For Example:

 

 split signals.png

Message 2 of 9
(3,372 Views)
Thank you so much, I'll try that out immediately.
0 Kudos
Message 3 of 9
(3,363 Views)

Yes that worked perfectly.  Do you know which vi I should use to replace the niScope Fetch Measurement I had before?  I need the integral of the waveforms.

Thanks again.

0 Kudos
Message 4 of 9
(3,353 Views)
I'm not sure if you would replace the Fetch Measurement VI, because that is what gets the actual data from the Hardware.  However once you have the data, you could probably just extract the data array and then use the integral x(t).VI to do the integration.
0 Kudos
Message 5 of 9
(3,344 Views)

How do I get the data for both waveforms? Do I need to do a similar splicing procedure to the results of the fetch measurement vi?

0 Kudos
Message 6 of 9
(3,336 Views)

Over at the far right of the block diagram is my attempt at doing the integral for the post trigger data.  The integral indicator isn't responding.  Do I have the wrong things wired into the integral x(t) function?

Thanks

0 Kudos
Message 7 of 9
(3,320 Views)

I figured it all out.

Thank you so much for your time and help.

0 Kudos
Message 8 of 9
(3,310 Views)
Haha glad you figured it out, I was somewhat confused by your previous post.  Glad to help!
0 Kudos
Message 9 of 9
(3,271 Views)