03-11-2015 09:39 AM
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.......
I have something more difficult to do, but I tried first with something easier
Thank you in advance
Sincerely
Maxime
Solved! Go to Solution.
03-11-2015 09:45 AM
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?
03-11-2015 09:54 AM - edited 03-11-2015 09:57 AM
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.
03-11-2015 10:19 AM
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.
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
03-11-2015 10:42 AM
@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?
03-11-2015 11:01 AM
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.
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
03-12-2015 05:24 AM
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