LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trouble using trigger and gate to remove portion of a real time signal

Hello,

 

I am trying to use trigger and gate to remove a portion of my power reading. Basically, I want it to remove the next 1000 samples (or replace it with a constant) once the power reading crosses a certain limit, say 60 W. The problem I am having right now is that the triggering isnt taking place at all. I am a complete newbie and I am pretty sure I am doing something wrong. Can you guys please help me out.

 

Thanks in advance!!

 

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

Good Morning!

 

Are you trying to do a continuous or finite acquisition?  Do you want continually chop a piece of your signal off, or do you want to take samples up to the 60 V threshold and then end your acquisition?

Michael B.
Applications Engineer
0 Kudos
Message 2 of 6
(2,779 Views)

Hi Michael,

 

Thanks for the reply.

 

I am trying to do a continuous acquisition. Ideally, I woul want to continually chop a piece of the signal for a certain number of samples everytime the samples go up the threshold. 

 

0 Kudos
Message 3 of 6
(2,773 Views)

Can you describe in more detail what your signal looks like and how you want to manipulate it?  For what reason do you want to delete samples over that threshold?  What is your ultimate goal?  What are you eventually trying to do?

Michael B.
Applications Engineer
0 Kudos
Message 4 of 6
(2,760 Views)

@bp4807 wrote:

Can you describe in more detail what your signal looks like and how you want to manipulate it?  For what reason do you want to delete samples over that threshold?  What is your ultimate goal?  What are you eventually trying to do?


I am monitoring power consumption of an appliance. As the appliance is turned on, there is a spike in power, and then it goes (up and )down before finally settling to a near constant value. I want to get rid of everything between the spike and the constant value. For this, I thought it would be helpful to use trigger and gate, to continually chop off the next 1000 samples of the signal as soon as the power reading goes above a defined threshold (say 60 W, which would let the system know that the spike has occured and hence the chopping can begin)?

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

If your signal is behaving inconsistently before it levels out, then it might not be best to trigger the removal of data after the 60 V threshold because you might have meaningless data before it reaches 60 V.  It might be easier to do some array manipulation on the data after it has been acquired.  For example, once you obtained the array of voltage values, you could programmatically delete the first 1000 elements in the array.  Or, you could search the array for a 60 V value and then delete everything before that and 1000 points after it.

Michael B.
Applications Engineer
0 Kudos
Message 6 of 6
(2,734 Views)