01-05-2008 03:49 AM
01-05-2008 05:43 AM
01-05-2008 05:51 AM
01-05-2008 06:32 AM
01-05-2008 08:47 AM
01-05-2008 10:12 AM
Hi Mike,
Thanks for your answer. Your right that my methode was inefficient.
I tried your methode to avoid zero's with the use of emty arrays. But i don't know how i can put them in an 1-D array. Maybe you can help me with my vi?
Tnx
01-05-2008 09:53 PM
01-06-2008 02:57 AM
Hi Mike,
Tnx for your help!
Joyce
01-06-2008 03:08 AM - edited 01-06-2008 03:10 AM
I probably would do something like in the attached (4.vi or 5.vi, LabVIEW 8.2).
It's a bit more compact and more scaleable. I would even make the control an array of booleans (see 5.vi). Now the code stays the same even if you have 5, 20 or 50 booleans. 🙂 Add free labels for the elements if desired. Also reverse the array if you want it in descending order. Your call. 🙂
(All the other code mentioned does not scale well, and needs to be modified (and gets more complex!) whenever the number of booleans changes. Not good! :))
01-06-2008 03:31 AM
JoyceJacobs wrote:
They supose to remove the zero values from the array. In the 2.vi not all zero values are removed...but i think it has to do with the function of the shift-register and the order of the inputs into the index array. Am i right?