Hello Nandha,
SubVI's can be created by selecting the part that you want in the subVI and than select "create subVI" from the "Edit" menu.
Or cut the selected part and open a new VI and paste in the code. Then you have to connect all the controls and indicators to your connector pane. To do this right click the icon in the upper right corner and "Show connector". Select a pattern that has enough connectors, my personal favorite is the 4x4x4. Select the wire tool and select a connector and then the control or indicator you want to connect. Try to keep controls to the left and indicator to the right.
Now you have to figure out when you want to show the settings window. Is it necessary that the communication goes on during manipulation of the settings?
Kind regards,
André
Regards,
André (CLA, CLED)