To dynamically create VIs with front panels you need to clone the VI. VI cloning can be done in many different ways, but if you want to build an executable of the code the attached example works very nicely.
Just unzip the archive as it is and open and run main.vi in the llb file, then hit the new graph button to create clones of a VI displaying a graph of data controlled from main.vi.
In this case I clone the VI by making copies of a VI that is included together with the llb/executable (when distributed I normally remove the diagramme of the VI), and I share data using a VI global.
Another approach is to call a VI template instead of copying, and set the start value of the controls using VI server functionality, you can probably find more info about
that if you search for VI cloning or cloning front panels.
VI cloning is very useful even if the VI is not going to show a front panel; if you make a client-server solution and want each client session to be handled in parallel make a session handler, clone it for each connection and pass the connection handle to the clones by putting them in a list together with the name of the clone to handle that connection...The clone searches through the list, finds the connection and starts handling the commands from the client.