This technical manual examines the typical development life cycle and reviews the best practices and recommendations for programming with LabVIEW in a structured development environment. Topics include configuration management, tracking and identifying changes that are made to code, requirements gathering, code architecture, ensuring proper style guidelines, validation of code, dynamic code analysis, and professional deployment practices.
Table of Contents for Attached Exercises
Revision Log
Related Links
Contact Elijah Kerry with any questions at Elijah.Kerry@ni.com
Hi friends,
Just getting started with the Source Code. I`ve installed my LabVIEW 2012 in E drive & TortoiseSVN in C Drive and in the settings of Diff Viewer is same as discussed above will there be any problem with this kind of Installation?
Hi Eli,
I tried version 4.0.1.3.34 and the latest version of the exercises manual last time I taught Software Engineering in LabVIEW. We were using LabVIEW 2013 and it worked very well. However the old version, version 3.2.0.15.vip had a build specification included in the project and version 4.0.1.3.34 does not. Do you have any plans on adding a build specification to the project?
Thanks,
Fab
The LVCompare based Diff works great if there are no subvis inside the vi to be diffed. This however does not work if there are subvis.
Is there a workaround for this problem?
A VI that you're diffing must still have access to its subVIs, although you can just select the ignore all button as the VI is loading. One thing that does help when diffing a VI with an earlier version of itself (like with TortoiseSVN or the TSVN Toolkit) is to send "mine" to the diff tool first. That way all referenced VIs should already be in memory when the temporary file "base" is opened. See the instructions here: https://decibel.ni.com/content/groups/large-labview-application-development/blog/2010/03/29/using-su...
Specifically have a look at the line for configuring the diff tool: "C:\Program Files\National Instruments\Shared\LabVIEW Compare\LVCompare.exe" %mine %base -nobdcosm -nobdpos
Also, if you are using SVN, you can download the TSVN Toolkit and it will set up the SVN diff and merge commands for you. http://www.viewpointusa.com/tsvntoolkit
I strongly recommend using the TSVN toolkit if you are using SVN as your primary source control provider. As EricLM suggests, this vastly improves the workflow experience with SVN, including IDE integration and the Diff and Merge tools.
The highest praise I can give the toolkit is this: Without the TSVN Toolkit I would have moved to Git instead.
I'v just installed the last version of Tortoise and the Tortoisesvn kit form ViewPoint systems on my Labview 2012 Professional, but i don't see any integration in my labview (no toolbar, nor particular icons). Any idea on what could be wrong?
Thanks
Try restarting LabVIEW
Allready done,
even restarted the PC,
Uninstalled the kit,
cleaned the registry with CClearner,
reinstalled,
restarted all.
Nothing happens…
It is a pity because it is a very nice tool.
Flavio,
I would recommend you contact ViewPoint directly for support. I am sure they would want to find out as much as you do why the tool is not working for you.
Regards,
Fab
Make sure you have installed the appropriate version of the toolkit (major.minor) as you have TortoiseSVN installed. If you have installed 1.8.x of TSVN, then make sure you have a 1.8.x version of the toolkit installed as well. I recommend the current beta on the Viewpoint website.
Actually, that version is no longer beta! It is now released and available on the LabVIEW Tools Network as version 1.8.2.22. This version will now support LV 64-bit. Thanks for the props.
I have the Viewpoint Systems TSVN Toolkit installed in LabVIEW and I recently noticed that I get frequent CPU spikes, sometimes to 100% with TSVN installed. When I take it out, those spikes go away. Not sure whats going on, its almost like a constant "ping" out to a location to check if the anything in the code has changed? Not a problem if so, but to spike the CPU to 100%? hmmm...just curious if anyone else has experienced this behaviour.
Flavio, I have seen similar issues before with TSVN. If I had already created a project, and then installed the toolkit, for some reason the links would not be there. However, after I install the toolkit and start a new project, the TSVN links are in the project. Maybe something to try.
Hi Eli,
I used version 4.0.1.3.34 last time I taught Software Engineering in LabVIEW. I noticed that the Find Blood Pressure_ms.lvtest is not getting copied to the project created. I don't know if this is a Project Template bug or a specific bug for this package.
Hi, I'm wondering if best practices have changed since 2013. In particular, is SVN still the configuration management tool of choice?
Thanks,
-Jamie