LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hard to explain problem

Solved!
Go to solution

Multiply them with 0. Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 11 of 22
(1,067 Views)

But how can you do that with 40 elements at once?

0 Kudos
Message 12 of 22
(1,065 Views)

If the indices are fixed then use replace array subset.

you can use for loop and case structure to build some logic if the indices are not fixed.

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
Message 13 of 22
(1,064 Views)

Hi Henk,

 

your questions show your lack of basic knowledge of LabVIEW so I advise you to take all those FREE online courses offered by NI!

 

how can you do that with 40 elements at once?

The key word is: polymorphism! Read the LabVIEW help on this topic…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 22
(1,060 Views)

you have in replace array subset one input index, how can I put the first 40 in the input?

0 Kudos
Message 15 of 22
(1,059 Views)

O I will read that, ignore previous reply

 

0 Kudos
Message 16 of 22
(1,061 Views)

Hi henk,

 

you give the first index to replace and an array with new elements. No need to replace 40 (consecutive) elements on their own…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 17 of 22
(1,058 Views)

So I put an zero in index input, and how can I build an other array with 40 zeros? or isn't that what you mean?

0 Kudos
Message 18 of 22
(1,046 Views)
Solution
Accepted by topic author henk_kempen

Hi Henk,

 

please go through LabVIEW Basics courses…

 

There's a function named InitArray. Guess what it's for…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 19 of 22
(1,033 Views)

I will do that, thanks for your time, it really helped me on my way!

0 Kudos
Message 20 of 22
(1,031 Views)