04-25-2014 01:41 PM
My group has different people working on different LVPROJs for each software deliverable we have. Each LVPROJ uses our user.libs and instr.libs, as well as an overall "framework" that is the same for most LVPROJs.
I really think the VI Analyzer toolkit would be powerful for code reviews, but only if I can configure it in a way where which tests I run and what the criteria are can be saved and used on any project. I can't seem to get this to work for me. I want to save all those configurations, and use it on new LVPROJs easily - the easier I can make this process, the more inclined others will be to use this for code review. How would you do it? (if it's even feasible)
Solved! Go to Solution.
04-25-2014 02:13 PM
As long as your overall "Framework is the same you probably use your inhouse project template to initiate your projects anyway right?
(If not consider it a really good suggestion)
Save your custom VIA task and add the *.cfg right to the template. Now your team only needs to hit the Run VIA icon on the ribbon bar in project explorer and add the results to the project. "Ready for review mon Capitan!"
04-25-2014 04:40 PM
Thank you for the response.
You mentioned adding the *.cfg to the template. I'm assuming you mean the LVPROJ template we have. However, when I add the file, I do not see a "Run VIA" icon on the ribbon bar in project explorer. Is this a feature that's not in LabVIEW 2011? Maybe that's part of my problem.
04-25-2014 04:43 PM
There is no built-in functionality for launching the VI Analyzer from a .cfg file in the project. You'll still need to launch the VI Analyzer, choose the 'load CFG" option in the UI, and then select the .cfg file.
04-25-2014 04:48 PM
04-25-2014 04:52 PM
I suggest creating a .cfg file without a project linkage, but with all the tests selected and configured as you want...so a .cfg file with no "Items to Analyze" specified. Then, when working on an individual project, open that CFG file, add the project's top-level folder to the analysis, then save that CFG file with that project. This means you can't have the project linkage in your CFG file, but assuming your project is all within some top-level folder, that shouldn't be much of an issue, since the CFG file will be "linked" at that point to the top-level folder containing your project.
04-25-2014 04:59 PM
04-25-2014 05:02 PM
No problem. Also, in case you didn't know, we have a VI Analyzer Enthusiasts community group that has all sorts of cool VI Analyzer downloads and discussions. Check it out!
04-26-2014 12:44 AM
@Darren wrote:
No problem. Also, in case you didn't know, we have a VI Analyzer Enthusiasts community group that has all sorts of cool VI Analyzer downloads and discussions. Check it out!
I assume you caught a few ideas for VIA use cases out of that.