09-25-2022 01:00 PM
Here is one possibility to calculate the sum of the 4 element subset (array subset) starting with row index 3, multiplied by the max/min controls and taking the sum.
There are many other ways to do this, of course. (you can even omit one of the sums, but it'll costs more memory).
09-25-2022 01:04 PM
this parameter csv
09-25-2022 01:09 PM
Thank you very much for the advice sir, I will try to learn more about the Vi program to solve my case
09-25-2022 08:52 PM
I want to make array multiplication in LabVIEW like the source code below but I'm confused to make it in VI forms can anyone help me?
09-26-2022 01:00 AM
Just start with my example.
09-26-2022 09:36 AM
@Array01 wrote:
I want to make array multiplication in LabVIEW like the source code below but I'm confused to make it in VI forms can anyone help me?
Datarealtime = [1.751933 0.600301 -0.532437 -0.399414];Bias = -6.6169046946979;for i = 1:length(DataArifS5)Jmlh(i) = DataArifS5(i,1)*DatatrainingS5(i,2)*((Datatraining(i,3)*Datarealtime(1,1))+(Datatraining(i,4)*Datarealtime(1,2))+(Datatraining(i,5)*Datarealtime(1,3))+ (Datatraining(i,6)*Datarealtime(1,4)));endjumlah = sum(Jmlh)hasil = jumlah+Bias
I recommend you start with the learning resources listed at the top of the forum.
09-26-2022 10:04 AM
Thanks for the response and suggestion sir
sorry, I want to ask about the for loop in Labview, can it be used as a counter of the array index to move the first line to the second line? as in other programs such as python, C++ and others.
09-26-2022 10:18 AM
@Array01 wrote:sorry, I want to ask about the for loop in Labview, can it be used as a counter of the array index to move the first line to the second line? as in other programs such as python, C++ and others.
I have no idea what you mean by that!
Indexing is zero based, so you can do simple math to convert your index into a LabVIEW index. (This comes to mind). When autoindexing, you don't even need to worry about indices, because you get one row at a time in the correct order.
09-26-2022 01:07 PM
Hi Array,
@Array01 wrote:
I want to ask about the for loop in Labview, can it be used as a counter of the array index to move the first line to the second line? as in other programs such as python, C++ and others.
This is called "Autoindexing" - and is a very basic feature in LabVIEW.
Did you start with all those Training resources offered at the top of the LabVIEW board? I guess you already got a recommendation to tackle them!