09-22-2022 12:21 AM
Hello friends!!
I have a problem in my case, I want to calculate the multiplication as shown below image using LabVIEW, but I am a little confused to design the program in its visual form.
I hope friends can help me to solve my case, thank you guys
09-22-2022 02:24 AM - edited 09-22-2022 02:25 AM
Hi Array,
@Array01 wrote:
Just index the corresponding elements from your 2D array, then multiply and add them…
(Btw. LabVIEW can also multiply arrays with each other and has functions like SumArray! This can simplify your calculation a lot!)
What have you tried and where are you stuck? (Attach code, not just images of code…)
09-22-2022 09:37 AM
Thanks for the response, I'll try to make a code that fits the problem I'm having, and after that I'll try to ask it back to the discussion forum
Thank you
09-22-2022 10:45 AM
@Array01 wrote:
You know you can add/multiply array directly, right? So you only need to multiply Xtraining[] with Xtesting, let it build an array and then AddArray
09-25-2022 03:33 AM
Thanks for you respond!
can you help me to make a sample program about this case?
thank you
09-25-2022 10:24 AM
Hi Array,
@Array01 wrote:
can you help me to make a sample program about this case?
Sure!
Typically it's you who comes up with a small sample VI, which should include some default data (similar to the one given in your image) and the expected output result!
So create such an example VI and attach it…
09-25-2022 11:47 AM
Hello, sir
how to multiply the values of Max Ch1, Max Ch2, Min Ch1, Min Ch2 into an array according to the color and row then multiplied by the values A0 and B0 according to the row to get the sum value of each row here I use a for loop but I'm confused to form an array or index arrays? Thank you
09-25-2022 12:06 PM
We don't debug pictures. Please attach your VI instead.
(As has been said, this is a very simple array operation with code that can fit on a postage stamp, but you need to known the basics of LabVIEW programming.)
09-25-2022 12:20 PM
Oke Sir
This is VI program for my case, please help me sir
thank you!
09-25-2022 12:46 PM - edited 09-25-2022 12:47 PM
You forgot to attach your datafile and set the Max&Min controls to reasonable defaults. I am sure they are not all zero!
(enter data, select controls, edit...make selected values default, save and attach the VI)
Is alpha and Y the same for all rows? What should happen if they aren't?