07-05-2006 02:30 PM
07-05-2006 02:42 PM
One more thing... can someone take a look at the VI above and let me know if you know a way of making the array functions more dynamic... ie- i would like it to just figure out how many boxes it has to add or subtract and then do it, rather than having to have each box have it's own formatting functions.
thanks,
jonathan
07-05-2006 03:37 PM
Some structural suggestions:
First, use a typedef cluster instead of individual elements. That way you can also simply place it into an array and use that to add more than one element.
Second, definitely use the uninitialized shift register, but you can create an enum with several actions (create queue, enqueue, dequeue and so on) and use a single case structure.
Third, and most important, why not use the built in queue VIs (in the Advanced>>Synchronization palette)? That will be the best solution by far...
07-05-2006 03:44 PM
07-05-2006 03:44 PM
07-05-2006 04:33 PM - edited 07-05-2006 04:33 PM
Message Edited by MattH on 07-05-2006 04:36 PM
07-06-2006 06:21 AM
07-06-2006 06:27 AM
Jason,
Your version of the queue (just fyi) did not enter the data into the multicolumn listbox properly... i'm not quite sure why, I think it's just the string formatting before going into the item names, but it puts all the info into the first box of the listbox.
Thanks for the help,
Jonathan
07-06-2006 06:29 AM