04-26-2013 06:02 AM
Hi,
Sorry for the non accurate title, but it was difficult to really explain it better.
I would like to realise this in a for loop :
I'm so lost when I have to manipulate these arrays !
Thanks you for help,
Sébastien
Solved! Go to Solution.
04-26-2013 09:07 AM - edited 04-26-2013 09:07 AM
This is an interesting problem. See if this does the job for you.
04-26-2013 09:32 AM
Ooow, sorry, I forgot to precise that "Xa1,..." are in fact a number, I just wanted to give the representation of it to see where each goes after the manipulation.
04-26-2013 09:35 AM
@Zepiii wrote:
Ooow, sorry, I forgot to precise that "Xa1,..." are in fact a number, I just wanted to give the representation of it to see where each goes after the manipulation.
Strings. Numbers. Who cares? The array manipulation is the same. Just change the representation inside of the array to whatever data format you need.
04-26-2013 09:52 AM
I know, however I thought that "for the intersting part", u meant it was because it was letters :). I was wrong.
I tried your method, but in the small for loop, I can't get the same icon than you for the array.
Here is my attached VI.
Thank you,
Zepiii
04-26-2013 10:01 AM
I used Index Array where you used Array Subset. And then use the autoindexing on the output tunnel of the inner loop.
04-26-2013 10:04 AM
Thank you.
People on this forum are just amazing !
It works!
Cheers!
04-26-2013 10:33 AM - edited 04-26-2013 10:34 AM
@Zepiii wrote:
I would like to realise this in a for loop :
I'm so lost when I have to manipulate these arrays !
It amazes me that you got a reasonable answer, because your question is not clear at all. 😄
04-26-2013 10:42 AM
Well, english isn't my mother tongue, sorry about that... Crossrulz perfectly understood my question, so just open the VI I attached and you will have the answer to all your questions 🙂
About the for loop, I wasn't sure about it, but it was not necessary. But at the moment, I'm working in a for loop, and this is a small part of it, so I prefer to ask to do it a for loop, in case of...
04-26-2013 10:43 AM
altenbach wrote:
- Why the arbitrary restriction that it has to be done in a for loop?
Ha. I didn't event notice that line in the original post.
At least the OP gave a before and after of what they wanted. That's the only reason I had a clue about what to do.