LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subpanels and selecting from menu

I have four VI which I want to select and when there are selected I want them to appear in the subpanel and perform whatever operation they do. So I need an array for four VI. How can I do this I have looked at the viewer.vi on the example in labview but I don't know my way around this can somebody help, where can I put in my four vi's
0 Kudos
Message 1 of 3
(2,493 Views)
pj84,

That example is built so that any subpanel VIs are expected to be in the same VI library ([labview]\examples\general\controls\subpanel.llb) as the main viewer.vi.

You could do this:
1. Make a copy of that VI library, so that you don't wipe out the shipping example
2. Save your subpanel VIs into your copy of the subpanel.llb library
3. Change the string array on the block diagram of viewer.vi so that it has the names of your subpanel VIs instead of the shipping example VIs
4. Change the ring on the front panel so that it has appropriate names for your VIs

That would work, although it would leave you with a library that has various unnecessary VIs in it. Also, it probably won't teach you much about LabVIEW. You didn't explain what aspect of the example you weren't understanding, so it's hard to give advice, but I would suggest that you read the LabVIEW manuals/help topics on VI Server, subpanels, and ring controls, and then return with any questions you have.

Regards,
John
0 Kudos
Message 2 of 3
(2,485 Views)
Hi John,

Thanks for that, that was exactly what I need to know was were the vi's in th esubpanel came from, thanks again.

regards

PJ
0 Kudos
Message 3 of 3
(2,460 Views)