05-29-2012 07:54 AM
Is there a quick way to define say 200 cases in a case structure without having to manually add another case after or before?
Regards,
Solved! Go to Solution.
05-29-2012 07:56 AM
05-29-2012 08:04 AM
so i put down a enum on the block diagram then make it a type def but it still only gives a few cases and i dont see another way of defining the number?
05-29-2012 08:12 AM
05-29-2012 08:13 AM
I have attached my code so you can see my purpose. I have about 200 clusters of controls/indicators/tab pages that i want to feed down into a report generation subvi. When creating my Excel and Word reports, i need to extract the results and also change tab page so that i can take screenshots then save to the report. I have been informed this is the best way to proceed.
Regards,
05-29-2012 08:29 AM
Hi GerdW, when i open the type def enum, i still have to create each enum manually 200 times. I tried to create an array of 200 numerics and feed that in into the case selector but i got an error line.
05-29-2012 08:40 AM
I really don't understand what you are trying to do. When someone says they need to deal with 200 cases, I say you're probably doing it wrong. If you could provide a better example of what you are trying to do, then perhaps a better suggestion can be provided.
In terms of some of your questions:
05-29-2012 08:42 AM
At some point you are going to have to enter the names of all those items. After dropping the enum on the front panel, pop up on the control and select Edit Items. This will get you a dialog box in which you can type the names of the items. This can be much faster than using the mouse to create item after one at a tiem from the front panel.
Do the clusters you want to find have unique names? If so, perhaps getting an array of references to the clusters and looping through the array would allow you to extract the data you want without needing a case for each one. I would envision 2-5 cases, depending on how many different control types you have.
Lynn
05-29-2012 08:45 AM
Hi smercurio_fc, my attachment shows what i am trying to achieve with only 4 of my 200 cluster references. In order to save block diagram space and to have only one cluser line fedding down into my report generation subvi, i am using the reference constants as a common then on each of the 200 cases, i will have a different reference feeding into the appropriate bundle by name in order to create my cluster of references. In the subvi, i can then use any of the information when required at stages throughout the report generation.
05-29-2012 09:09 AM
I have attached a vi that includes the various data types i am trying to reference into my report generation sub vi