I've been playing with XControls, Subpanels, and Tab controls in an attempt to display different interfaces programatically. The end goal is a program to configure various nodes on a CAN bus. But depending on which nodes were found, different configuration interfaces are required.
The obvious and easiest method would be to display the configuration VI's as a modal dialog. The problem I have with this approach is that there are several levels of configuration. For example, one of the nodes can have up to 4 sensors, and each sensor can be one of several sensor types. So using dialogs, the node configuration dialog would have 4 buttons to bring up the configuration for each of its sensors.
What I want is for the user to select a node from a list, and have the subpanel show the correct VI. I tried this, but couldn't figure out how to pass data back and forth to the subpanel's VI. Another idea I have is to use a tab control with a different XControl on each page, and display whichever page corresponds to the selected node.
Is there a good solution for this? Am I on the right track, at least? I seem to be having issues with the VI's running concurrently or something, but I am unable to explain the exact problem. If something goes wrong, I end up having to close down LabVIEW just to stop the VI from running.
I've been dealing with this for a few days now and I'm getting a bit frustrated, so any ideas would be appreciated.
Thanks,
John