10-14-2013 04:44 PM
I have an 1D array with 20 elements ..I now want to put all 20 elements in 20 different indicators(variables) for further processing each indivually ....Index array function is too tiny miny and ugly while creating this..any simpler way??
Solved! Go to Solution.
10-14-2013 05:10 PM
So is this too much work? I don't understand the question.
10-14-2013 05:14 PM
Thanks aptman ..but my whole point was to circumvent this approach as the array size just keeps changing after every parse operation in my app..but thanks anyway ...:)
10-14-2013 05:19 PM
You didn't say the number of elements changed. You said 20 elements. Can you not just display the elements in an array indicator? What do you want to do with the values from the array?
10-14-2013 05:38 PM
Don't even need the ints on the index - first defaults to element zero, each following index increments by one.
Guess the question I have is ... why? What's wrong with an array indicator on the front panel?
If you ever want to add an element in the array, you'll have to add more code and connect another indicator to the index-array.
Keep arrays in an array, and pluck out individual values as you need them.
10-14-2013 07:29 PM
Thanks all ...
Well individual values are needed because its different words of the serial data frame and then they are parsed individually as elements have dependencies amongst them .Ex MS 3 of element 2 decides how element 4 will be parsed..So needed individual control ....
Now for every parse function ..All elements are needed(different cases based on output of element 1 and there on ) ..
...
Thanks once again ...so far I was using the array index function only ...but it requires fine tip mouse skills!!
10-15-2013 12:39 AM
@ebuckbuck wrote:
Thanks all ...
Well individual values are needed because its different words of the serial data frame and then they are parsed individually as elements have dependencies amongst them .Ex MS 3 of element 2 decides how element 4 will be parsed..So needed individual control ....
Now for every parse function ..All elements are needed(different cases based on output of element 1 and there on ) ..
...
Thanks once again ...so far I was using the array index function only ...but it requires fine tip mouse skills!!
NO.
There's no need for individual control, just use the wire.
/Y
10-15-2013 11:25 AM
@SnowMule wrote:
Don't even need the ints on the index - first defaults to element zero, each following index increments by one.
Thanks SnowMule. I did not know that. Learn something new every day.
10-15-2013 12:25 PM - edited 10-15-2013 12:26 PM
aputman wrote:Thanks SnowMule. I did not know that. Learn something new every day.
Just make sure you document what's going on when you do this.
10-15-2013 07:43 PM
Thanks a lot Snowmule ...
Just a basic question is how do align multiple items on left and right so beautifully. When I try doing it they spread all over and align elemts and distribute elemnts in edit tab messes it even further.
Is there any auto way to it??
Thanks