LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Array

Solved!
Go to solution

I changed it to split array, which makes more sense based on what you are telling me you want to do.  Reverse the indices so the values are always right.  I also had to disconnect your typedef since you didn't include it.

 

Is this what you are lookign for?

0 Kudos
Message 11 of 19
(707 Views)

Hello,

 

Sorry but i am not looking for this...

I need different block for 1st 4 elements, then again different block from 5th element till 8th elements...

Now i am getting eights elements when i run loop for 8 number but for that also i need from 8th Elements till 12.

 

Here Gruop1            Group 2                 Group 3

 

Element 1               Element 5              Element 9

Element 2               Element 6              Element 10

Element 3               Element 7              Element 11

Element 4               Element 8              Eleme t 12

 

So at then end i should get like these three groups...

Thanks a lot...

 

0 Kudos
Message 12 of 19
(703 Views)

Here it is breaking it into groups.  Also an alternate method if you just specify the group size.

 

This has some assumptions that you haven't clearly stated:

  1. It assumes that groups are equal size (if not, then you need to process inside of the for loop or pass out group sizes to know to take part of the subarray.
  2. it assumes your groups start at index 0
  3. it assumes you are not trying to remove indices in the middle of the array (i.e. indices 0 to 4, then indices 8 to 12, skipping indices 5-7).
0 Kudos
Message 13 of 19
(699 Views)

Hello,

 

Your assumption number 1 and 2 are correct but the group size for all the gropus may differe it wont be 4 all the time... and number of groups like here i have mention just three so they can also change ...

Thanks a lot..

0 Kudos
Message 14 of 19
(697 Views)

Hello,

I cant open ur vi as its version is not 5.1 which i am using....

0 Kudos
Message 15 of 19
(695 Views)

I didn't say I assumed group size or number of groups.  I said I assumed you are not skipping indicies in the source array.

 

If you look at the code, you can change the indicies or group size without having to rewrite the code.

0 Kudos
Message 16 of 19
(694 Views)

Hello,

Thanks so much... I cant open due to version problem... mine is 7.5.1

0 Kudos
Message 17 of 19
(691 Views)
Solution
Accepted by topic author Sim5

The original VI you posted was in 8.5.  It will take me a little bit to try to save back that far.  But, here are the pics:

 

ScreenHunter_01 Nov. 08 11.18.jpg

 

ScreenHunter_02 Nov. 08 11.18.jpg

 

Here it is in 8.5.  I accidentally posted the 8.6 version of it.

0 Kudos
Message 18 of 19
(689 Views)

Sorry in hurry i wrote anything... Its 8.5.1...

0 Kudos
Message 19 of 19
(686 Views)