08-01-2013 05:52 PM - edited 08-01-2013 06:03 PM
I am using "Obtain Queue" to create a multiple queues from multiple TypeDef formated data clusters. I want to then put these queue references in a cluster of their own so I can refer to them where necessary in my code. When I modify the data types by editing the corresponding typdefs I would like for the queue references to change accordingly. In other words I think I need to link the queue references to the data typedefs. What is the best way to do this?
For instance, If I create a cluster of queue rerences using bundle by name I would have to create an input cluster with a format that would update as I change my origianl data typedefs. Can this be done, and if so how?
Possibly the "problem" is due to my dsire to have a nice "bundle by name" cluster for clarity in my code. I suppose if I used an array this isn't a problem. That is not as elegant a solutions, but I guess elegance is sometimes in the eye of the beholder.
Any suggestions?
Solved! Go to Solution.
08-01-2013 06:00 PM
08-01-2013 06:06 PM - edited 08-01-2013 06:09 PM
I tried that before I posted. It seems something isn't working for me. There is a type mismatch at the input to the bundle by name when I do it this way. If I go back to using non-typedefed constants in the input cluster the typmismatch is fixed. Not sure what I'm doing wrong, and since this is the only (very laconic) reference to this type of thing in my searches - without any official labview documentation I can find, it is hard to figure out what is wrong.
08-01-2013 06:11 PM
Did you replace any constants that you had on the block diagram with the typedefed version? All instances that you ar eusing need to use the typedef.
08-01-2013 06:22 PM - edited 08-01-2013 06:22 PM
Yeah, I just figured it out. Combination of having generated one too many test typedefs, and then forgetting to check which one I was actually using, and accidentally using the wrong one, but with the right format.
Well I did find the post that was mentioned before I tried here, I just flubbed it up. Sorry for your time, but thanks anyway for confirming this ws the right way. Is there an official NI documentation of this? For me this was in no way intuitive.