07-03-2010 07:55 AM
HI!
In my previous applications, I had a top level VI - responsible for event handling for all controls. The disadvantage of this architecture is if I have so many controls it will be so difficult to view the whole code, number of event cases increased and so on. So I wanna use the same sub panel for all different vis.
After calling the vi to the sub panel, i wanna handle it's events in the called vi. So my top level vi event case won't be so big and the code will be smaller and I think it could be a good technique to reduce the size of top level vi.
I have tried many ways, looked for example without any success.
Could you suggest me any book,example, anything?
Thank you very much!
07-07-2010 04:29 AM
If I understand correctly you would like to have a main VI with subPanel control in it. Then you want to call a subVI to the subPanel control. In the subVI you want to have event structure that would use events from controls in the subVI.
Is that correct?
If yes, then you can find such example in the attachment.