LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array manipulation

Solved!
Go to solution

Hi,

I`m sorry to asksomething about the array manipulation...... Ifound a lot of thin in Labview`s help on this forum but nothing like my case.

I`m sure it`s easy but I don`t see the way.......

manip array.png

 

I have something more difficult to do, but I tried first with something easier

Thank you in advance

Sincerely
Maxime

 

 

0 Kudos
Message 1 of 7
(3,578 Views)

What is the question?

 

Before attaching a VI, you should fill all controls with typical data, make current values the default, and then save and attach it once more.

 

"Array manipulation" is a very generic term. What kind of output do you want?

0 Kudos
Message 2 of 7
(3,574 Views)
Solution
Accepted by topic author Gerday.M

OK, looking at youtr image, we can see some partial data. It is a very bad idea to have each small cluster filled with five of the same numbers, because it makes it impossible to tell in which order the elements should appear in the output array.

 

For starters, here is a something that gives the desired output, but, as I said, it might not be what you want because your problem desciption is incomplete and not unique.

 

 For example, you could make the first cluster 1,2,3,4,5, the second 11,12,13,14,15, etc.

0 Kudos
Message 3 of 7
(3,566 Views)

Thanks you for your quick reply.

I wanted to do this. But i Have to check if it`s compatible with my real software.

I put the image:
In fatc I draw some rectangle on one picture. To be clear, two straight rectangle and two with one rotation. So first I made my code with only one rectangle..... It was easier for me.

Now i have what I wanted, but I have to include in my code on for loop for each rectangle.

Untitled.png

 

So after to draw my four rectangle I have one big cluster with some other cluster inside.
(you see an other for loop (the frst and bigger for loop), but a this moment it will be ever 1. It will change but in the futur!!! so itdoesn`t matter)

 

So in my software (cfr the picture) I draw several rectangle and for each I have to do some manipulation on it and send the data on Excel to reproduce the rectangle on one graphics.

I did my exemple like this because I have the same kind of data in my real software.

Anyway, I will try to associate the both.

If I have some problem I will zrite here.

Again thank you

Maxime

ps: I had the software if you want to check by yourself

0 Kudos
Message 4 of 7
(3,555 Views)

@Gerday.M wrote:

I wanted to do this. But i Have to check if it`s compatible with my real software.


What is "this"?


Gerday.M wrote:

In fatc I draw some rectangle on one picture. To be clear, two straight rectangle and two with one rotation. So first I made my code with only one rectangle..... It was easier for me.

Now i have what I wanted, but I have to include in my code on for loop for each rectangle.

 

So after to draw my four rectangle I have one big cluster with some other cluster inside.

(you see an other for loop (the frst and bigger for loop), but a this moment it will be ever 1. It will change but in the futur!!! so itdoesn`t matter)

...


ps: I had the software if you want to check by yourself


 

As I said, if all elements are the same, there is no way to tell in which way they should be arranged in the output. I think attaching the new VI is pointless, because it has nothing to do with the original problem. It is also way too convoluted. What is the purpiose of the sequence structure? Why do you slice and dice these arrays and clusters so many times? Couldn't you do all in one step?

0 Kudos
Message 5 of 7
(3,542 Views)

What is "this"?

 

Just your software, I searched a long time ago. And I wanted to do like your software do.

 

As I said, if all elements are the same, there is no way to tell in which way they should be arranged in the output. I think attaching the new VI is pointless, because it has nothing to do with the original problem. It is also way too convoluted. What is the purpiose of the sequence structure? Why do you slice and dice these arrays and clusters so many times? Couldn't you do all in one step?

 

At the beginning I drew one rectangle and I put the coordinate about this rectangle on excel.

rect.png

 

 

It was the beginning now it`s more difficult I have to draw four rectangle and export each data on the same page of excel. So Its for that I would like to include one for loop. To have all the coordinate about those rectangle.

I agree that maybe it`s not the best code ever 🙂 but to be honest i`m just a debutant so I try to do my best 🙂
But if it`s work I`m happy, and when I will be better I could clear all my mistakes.

I hope it`s little more clear for you know.

Sorry if my explanation are sometime weird, but the english is not my mother tongue.

Thanks you

 

0 Kudos
Message 6 of 7
(3,537 Views)

Hi,

Because of your software " array manipulationMOD"  I succeded to what I needed to do.

So thanks a lot.


see you soon, I`m sure that I will have a lot of question in the futur

Maxime

0 Kudos
Message 7 of 7
(3,514 Views)