From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-07-2022 10:53 PM
I am making a sub VI to threshold samples of data in form of 2D array and sum only out of threshold values
Here is mine but I think it was too much of a turnaround so can someone help me to simplify this
Solved! Go to Solution.
08-08-2022 12:16 AM
Could you please describe what you're trying to achieve along with a sample dataset and potential real-world application?
08-08-2022 01:04 AM
Not able to access Attached VI due to LV Version.
Pls check Threshold Detector VI for identifying threshold values/indices and add the same for your SUM.
08-08-2022 09:43 AM - edited 08-08-2022 10:29 AM
@Ananda_Affandi wrote:
I am making a sub VI to threshold samples of data in form of 2D array and sum only out of threshold values
08-08-2022 10:12 AM - edited 08-08-2022 10:27 AM
08-11-2022 09:23 AM
It's actually my friend's project, taking a meauserement from a brain tracking device OpenBCI, he said it's used for something like machine learning so only taking higher or lower signal and summing it then recognizing it as an order to send to another controller and then going to motor or something like that.
08-11-2022 09:30 AM
Thank you so much for helping me even I wasn't replying Immediately, there is another thing to edit.
It shouldn't be just a simple sum, it is summing from positive numbers or negative numbers, inside threshold(zero), positive numbers or negative numbers, inside threshold(zero),... and it goes on and on.
I am trying on doing that, but I got confused since the number of array component would be unmeasurable and the program should be able to count the size and sum numbers accordingly
But your answer is satisfactory, so I think it should close this thread, once again thanks
08-11-2022 09:39 AM
@Ananda_Affandi wrote:It shouldn't be just a simple sum, it is summing from positive numbers or negative numbers, inside threshold(zero), positive numbers or negative numbers, inside threshold(zero),... and it goes on and on.
Your descriptions is not clear at all. How is the output supposed to look like (e.g. given the current default data).
Do you want to just count the number of items in each range? That would be even simpler. 😄
08-11-2022 10:06 AM
I'm sorry I was too tired to re-check my last VI post. 😅
Thanks to you I got better understanding of using these arrays and yes graphs is more relevant in this case. 😁
But since you're here, can you help me solve this again, I tried to make it clearer of what I was going to reach by setting default values into desired indicator.
I made some changes to your VI to better describe what I am trying to reach.
This is what I am trying to, I appreciate it if you could help, even just giving references, examples or answer from another forum discussion.