LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

speedy 33 odd even

Here is something i need some help with . Ideally i want to generate , lets say , 12 bits (1's and -1's) and then have them arranged in two different arrays in alternating fashion . I have managed to do so . But i also ended designing it in such a way that now i have the bits split into two different arrays , but i have 0's inbetween in each array . I want to get rid of the 0's in each array and leave only the 1's and -1's in each row . I'll be glad if someone can help me with this . To add , I am using this with a speedy 33 , which leaves me with not all options that are available otherwise , so for example , in the array palette , i am left with , Array const , Array Max& Min , Replace subset , Index array and Array size and reverse and rotate array . Also the speedy 33 does not support multi-dimensional array .... Mano
0 Kudos
Message 1 of 10
(3,263 Views)
Does this help ?
Download All
0 Kudos
Message 2 of 10
(3,241 Views)
Sadly the build array used within the case structure is not supported on the target . Mano ..
0 Kudos
Message 3 of 10
(3,217 Views)
i have tried using a index array instead . but that results in an error with the type of source being a double and the type of sink, a 1-D array of double .. .. hoping someone can help me out .. Mano ..
0 Kudos
Message 4 of 10
(3,214 Views)
0 Kudos
Message 5 of 10
(3,191 Views)
I forgot, you have to initialize the array at the shift register.
Initialize to a size equal to your previous array.
0 Kudos
Message 6 of 10
(3,189 Views)
Hello pnt , I did intialise the array .... but again the array subset outside the for loop is not supported either . Is there another possible way around this ? .thank you for your help . Just to add , i have been able to retain the first two data by this option . i think its just the matter of getting the loop to continue further ... will try to get this going . also if you could offer me some suggestions please .. much appreciated .. Mano ..

Message Edited by NonameNoface on 05-26-2008 07:19 AM
0 Kudos
Message 7 of 10
(3,170 Views)

I don't think there is a way to resize your array so the only solution is not to do so.

So at the end you will have an array of, let's say 12 elements, but you will know that the only valid are those with  index <= max index.

 

 

0 Kudos
Message 8 of 10
(3,156 Views)
If this is supported ... you have a solution.....
0 Kudos
Message 9 of 10
(3,149 Views)
You are a star .. thanks a lot ... Yes . it finally works . But at the final FOR loop you would have to wire a constant value to the count terminal,in this case 6, instead of extending the count value from the first loop to the second loop since the DSP board does not support dynamic memory allocation. Much appreciated .. Mano
0 Kudos
Message 10 of 10
(3,144 Views)