08-14-2022 10:37 PM
Hello Everyone, i'm making sub vi , to find the area of a signalafter cutting the threshold
before cutting the threshold
08-14-2022 11:18 PM
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.
08-14-2022 11:20 PM
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 threshold
after cutting the threshold
the data i want to achieve
08-15-2022 12:47 AM - edited 08-15-2022 12:49 AM
(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.
08-15-2022 07:38 AM
oh sorry, This is for the 2018 version of Labview
08-15-2022 09:33 AM - edited 08-15-2022 09:37 AM
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.
08-15-2022 09:47 AM
08-15-2022 09:11 PM
yeah that's right
08-16-2022 10:03 AM
So use my code and subtract the threshold from each sided data before summing. Should be trivial to do. Have you tried?
08-19-2022 10:37 AM
Did you figure it out?