02-15-2011 01:23 PM
can someone show me how do i change this vi. so i've 5 different cases which is 1111,2222,3333,4444,and default
then create 1D array for each of this case value
02-15-2011 01:33 PM
Do you want to programmatically create cases based on the string entered?
Are these ever going to change?
02-15-2011 01:35 PM
Why reshape it to 2D? Get rid of the modulus and the reshape, etc. Feed the 1D array into the for loop, allowing the for loop to index the array into your case statement.
02-15-2011 01:36 PM - edited 02-15-2011 01:36 PM
Or... just use the Decimate 1D Array function.
02-15-2011 01:41 PM
@smercurio_fc wrote:
Or... just use the Decimate 1D Array function.
Perfect, if the thing you're looking for is always alternating and predictable as written. If you're looking for occurrences of 1111, 2222, 3333, etc. in unpredictable indices, the case statement is most commonly used.
02-15-2011 01:51 PM - edited 02-15-2011 01:52 PM
Update to poster:
Please do not create another thread for a topic you're already being helped on. This is VERY irritating, as it wastes our time giving you answers that have already been given.
For others: Please do not respond further in this thread. Provide any further input in the original thread.
02-15-2011 01:54 PM
@broken Arrow wrote:
@smercurio_fc wrote:
Or... just use the Decimate 1D Array function.
Perfect, if the thing you're looking for is always alternating and predictable as written. If you're looking for occurrences of 1111, 2222, 3333, etc. in unpredictable indices, the case statement is most commonly used.
Yeah, I know. But then the poster didn't really provide a whole lot of information, now, did he? Oh, wait, yes he did - in the original thread
.
02-15-2011 02:15 PM
ouh really sorry about that..but can u help me on this..u can see futher detail based on my previous thread