LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with array

I am so so sorry guys to ask once again 😞

I just found ,that column 0 must be multiplied by 2, col 1 by 5 , col 2 by 6, col 3 by 8.
And the program that Geoff sent me, it multiply all elements of the array by 2. I am wondering, how to multiply each column by several number.
Sorry, i can't find the answer.

Thanks a lot

Maxwell
0 Kudos
Message 11 of 16
(877 Views)
Hallo Thomas,

Thanks , but i can not find the attachment that u meant. May be u forgot to attach it ?

Max

____________________________________________________________________________________________________________________________________
Maxwell

Have a look at my vi or the picture ulf attached. This solution has several advantages in comparison to the one you want to use:

1. It needs less memory, because you do not have two for-loops
2. It's easier to understand
3. It's faster

So I suggest you to use our version.

Thomas

Using LabVIEW 7.0 on WinXP
0 Kudos
Message 12 of 16
(872 Views)
Hello Maxwell,

please have a look at the attached vi.
Just use the indexing of the for-loop to get the single columns and multiply with your vector.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 16
(868 Views)
Hello Maxwell,

again as LabView7.0...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 16
(865 Views)
Here's a solution more along the lines of what the guys were saying was more correct earlier...

It's a little easier to look at anyways... (in 7.0)

Oops, hang on...posted wrong vi

Message Edited by Novatron on 06-29-2005 09:52 AM

0 Kudos
Message 15 of 16
(860 Views)
Sorry about that, got a lot of things going on...

Here's the real one.
0 Kudos
Message 16 of 16
(849 Views)