Actually, if you slightly modify the VI in the example, you can use it as a sub-VI for your application. In the front panel, right-click the VI's icon located on the top-right of your VI. Then select "Show Connector" and add the necessary connetcors to the VI (One for the input and two for the output) for the VI so it can be used as a Sub-VI. Save it with a different name and location so you don't change the original.
www.vartortech.com