Edit>>Create SubVI

Code readability is important and copy-paste to reuse code is clumsy. To avoid doing this you can create SubVIs of code that you are reusing. This can be done by creating a new VI and adding your code there, or selecting part of the code that you would like to use and selecting Edit>>Create SubVI. This will create a new VI out of what you had selected and replaces the selection with this new VI. Don't forget to add documentation to this new VI so that you know what it does later. 
Comments