LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLA: Tips of develop similar code

Studying for the CLA exam, and I am trying to find more tips to speed up coding.  One area of tips that I am interested in is how to duplicate similar code quickly.  To do it correctly, I can use object oriented, but it is a bit more time consuming, so not suitable in the exam in my opinion.  Below are a few ways I am thinking about

 

1. Have a temporary vi open as a scratch pad and put code I use often in it (such a case structure within while loop), so that I can copy and paste code off the pad quickly.

2. Create a set of VIs that I want to copy as base.  Copy and paste those VIs.  Replace part of the content and rename the files.

 

 

Any tips in the area? 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 3
(3,083 Views)

You could make some templates and then you just "create new from template".

 

Another option would be to make VIs to put in the User.lib and change the palettes to "place VI contents".


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,073 Views)

That's a great idea.  I guess I can't create the template before the exam, but I can create the template at the beginning of the exam.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 3
(3,065 Views)