ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hard to explain problem

Solved!
Go to solution

I have a problem i can't put into words (maybe there is already a topic, but i can't find it) so, see the attached image.

0 Kudos
Message 1 of 22
(4,042 Views)

Adding an image is good but that either explains the problem. Please explain with that image what is the problem you are facing.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 22
(4,027 Views)

Image looks good Smiley Wink

 

so what are we all suppose to do with it?

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
0 Kudos
Message 3 of 22
(4,026 Views)

I want to move (in this case) the first 3 elements behind the last elements, the index becomes bigger, that is important, because I want to take an average form the index with an 1 as element.

0 Kudos
Message 4 of 22
(4,015 Views)

Check out the Rotate Array function.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 22
(4,009 Views)

Hi henk,

 

I want to move (in this case) the first 3 elements behind the last elements, the index becomes bigger, that is important

- get a subset array from your first 3 elements

- append it to your existing array with BuildArray

- replace the first 3 elements by zeros

That is what you should do based on your image and explanation…

 

@Yamaeda: RotateArray doesn't increase array size. You might rotate and prepend 3 addtitional zeros in front…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 22
(3,997 Views)
Tanks a lot! I will give it a try
0 Kudos
Message 7 of 22
(3,987 Views)

Do I have to use the concatenate function in builarray?,

0 Kudos
Message 8 of 22
(3,977 Views)

Yes. Otherwise you add a new dimension to your array…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 22
(3,975 Views)

and how do you replace 40 ones into zeros?

0 Kudos
Message 10 of 22
(3,968 Views)