10-11-2011 10:29 PM - edited 10-11-2011 10:29 PM
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!!
10-13-2011 08:42 AM
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?
10-13-2011 09:19 AM
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.
10-14-2011 11:34 AM
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?
10-14-2011 11:50 AM
@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)?
10-17-2011 07:20 PM
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.