02-15-2012 03:44 PM
Hi,
I want a boolean array output in the sequence like TFF, FTF and FFT from a input array, Please see attached VI for more details.
Thanks
Prashant
02-15-2012 04:06 PM
Create a 2-D array that had each of those patterns. Autoindex on the For loop tunnel. I'm not sure whether you will want each row to be the pattern, or each column. Play with the arrangement of the array and transpose it as necessary.
02-15-2012 04:54 PM
I won't open a DOC file to look at a picture but in case you want a chase sequence of bools you can just use the power of 2 function...
02-15-2012 06:57 PM
If I use power of 2 function the outpuy will be 0, 1, 4, 9.... but I wants output in a sequence of 1, 2 and 4 only.
02-15-2012 08:21 PM - edited 02-15-2012 08:21 PM
Then create the 2-D array constant like I said.

02-16-2012 12:06 AM - edited 02-16-2012 12:10 AM
Prashant
The suggestion given by NIquist will give you boolean array equivalent of 1,2,4,8,...till 2^10.
You can change the power of 2 (N input to For loop) to the number of bits you need. Have you tried it?
Please clarify your end requirement, to get more apt suggestions.
Note: The picture in the file attached by you will result in an output of 'TFF', 'FTT', 'TFF'.
02-16-2012 11:25 AM
Hi,
In the output array I am generating binary equivalent to 20, 36 and 52 and in the same sequence. I want a sequence of 36, 20 and 52 in the output array. What is the best option to do that?
For details please refer attached document.
Thanks
Prashant
02-16-2012 11:50 AM - edited 02-16-2012 11:52 AM
I would choose the easy option:
02-16-2012 12:03 PM - edited 02-16-2012 12:08 PM
Good suggestion, 1 more thing I am looking for is take the output in 1D array itself out of the for loop. I dont want output in 2 D array but I want output same as the 1D array out of the for loop.
02-16-2012 12:11 PM
@UPRR wrote:
Good suggestion, 1 more thing I am looking for is take the output in 1D array itself out of the for loop. I dont want output in 2 D array but I want output same as the 1D array out of the for loop.
I don't understand. If you want the same array that went into the loop to come out of the loop, just go around it.