LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SUM in array

Hello Everyone, i'm making sub vi , to find the area of a signalafter cutting the thresholdafter cutting the thresholdbefore cutting the thresholdbefore cutting the threshold

0 Kudos
Message 1 of 11
(2,009 Views)

Do you want to exclude the signal that is inside the threshold, i.e. set these values to zero?

Should the negative values have a negative or positive area?

Do you want a separate output for the negative and positive parts or combine it all?

 

We recently solved a very similar problem. Try to find it. No matter the requirements, the solution will be trivially simple.

0 Kudos
Message 2 of 11
(1,996 Views)

hello everyone, I'm making a sub vi, to find the area of a signal, this program is my project to implement wheelchair movement using open bci from human brain signals. so in this program I want to cut the signal using a threshold, then I will add up the obtained signal later, from the signal that does not pass the threshold it will be worth 0, the value of 0 is also a separator to be able to increase the value of the signal that passes the threshold.
Now I'm having trouble summing up the signals. so can someone help me?
Now I'm having trouble summing up the signals.before cutting the thresholdbefore cutting the thresholdafter cutting the thresholdafter cutting the thresholdthe data i want to achievethe data i want to achieve

0 Kudos
Message 3 of 11
(1,994 Views)

(Sorry, I don't have LabVIEW 2021 on my current computer. consider "save for previous" before attaching.)

 

See if this discussion can give you some ideas. Problem seems almost identical, except that you seem to subtract the threshold values from each side, making the absolute peaks smaller accordingly.

0 Kudos
Message 4 of 11
(1,967 Views)

oh sorry, This is for the 2018 version of Labview

0 Kudos
Message 5 of 11
(1,915 Views)

This is basically the exact same code that was posted in this thread . Where did you get it from? (And why do your controls not have typical default data for testing?)

 

Did you even try my solution??? It should work with no to minimal change.

0 Kudos
Message 6 of 11
(1,903 Views)

From your image, it seems you want B rather than A. Is this correct?

 

altenbach_0-1660574802859.png

 

0 Kudos
Message 7 of 11
(1,898 Views)

yeah that's right

 

0 Kudos
Message 8 of 11
(1,871 Views)

So use my code and subtract the threshold from each sided data before summing. Should be trivial to do. Have you tried?

0 Kudos
Message 9 of 11
(1,845 Views)

Did you figure it out?

0 Kudos
Message 10 of 11
(1,770 Views)