cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger integrals

SOLVED
bbentelin
Member
Solved!

Trigger integrals

Message contains an attachment

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
8 REPLIES 8
David_L
Active Participant
Solution

Re: Trigger integrals

Message contains an image Message contains an attachment

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

bbentelin
Member

Re: Trigger integrals

Thank you so much, I'll try that out immediately.
Highlighted
bbentelin
Member

Re: Trigger integrals

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.

David_L
Active Participant

Re: Trigger integrals

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.
bbentelin
Member

Re: Trigger integrals

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?

bbentelin
Member

Re: Trigger integrals

Message contains an attachment

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

bbentelin
Member

Re: Trigger integrals

I figured it all out.

Thank you so much for your time and help.

David_L
Active Participant

Re: Trigger integrals

Haha glad you figured it out, I was somewhat confused by your previous post.  Glad to help!