06-09-2020 12:58 AM
In my application, I have to display hierarchical sub vis in main vi subpanel.(i.e I am displaying a subvi in subpanel, when I click a button on the subvi, it will call another subvi and that called subvi should open in subpanel of the main vi) How to do it?
06-09-2020 12:45 PM
You subVI needs to send a message to the main VI, telling it to change the VI in the subPanel. The message content will need to include either the path to the VI or a reference to it. I would use a queue to send the message, and for the data type of the queue, I would have a cluster containing a typedef'd enum (which specifies the message type), and a variant (containing message-specific data).
06-09-2020 01:32 PM
Another alternative is to have it insert itself into the subpanel. You need to pass a reference to the subpanel to the appropriate subvi. Remove the existing vi and insert the new one.
06-09-2020 02:53 PM
@johntrich1971 wrote:
Another alternative is to have it insert itself into the subpanel. You need to pass a reference to the subpanel to the appropriate subvi. Remove the existing vi and insert the new one.
I believe there is an example of this in LV example finder.