From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-30-2014 10:44 AM
@bruce008 wrote:
billko,
The reason I want to run our VI right after I open it is that people are testing our source code as we're writing it at a rather rapid pace, and we don't want to have to build an executable each time. We have a really long build time and a really short development cycle time lately!
Hey, I appreciate you taking the time out to explain it to me! Kudo for helping a fellow forum member (me)!
05-30-2014 10:53 AM
@bruce008 wrote:
Jeff,
I'd like to be able to programmatically run or not, although your solution would work if I only wanted to run. I want the people who test my code to run it from the source (not the executable), in which case it would run, or I might want to edit that source, in which case it would not run.
Have you built a unit test for the vi? This is the type of thing the Unut Test Framework is exceptionally good at. At which point your "Launch vi becomes a call to "Run tests from File.vi" and View Results.vi
05-30-2014 11:00 AM
Jeff,
I don't have the Unit Test Framework. Is there a way to run a "unit test" without it?
05-30-2014 11:10 AM
If you have the NI Developer Suite, then you have the Unit Test Framework. It is one of those things I've really been wanting to really play with. It is actually quite simple to setup. Everything is done in the project.
05-30-2014 12:01 PM - edited 05-30-2014 12:04 PM
Do look at the shipping examples for the UTF the example projects are really nicely done (Athough, they mostly got a large boost in the 2013 example upgrade with clearer documentation so if you have 2013.....) The 2012 examples appear to source from a "pre silver" version based on FP Background color.
But seriously the price uplift from LabVIEW Professional to Developer Suite is cents on the dollar for the LabVIEW addons it encludes. Plus the LabWindows/CVI and associated other stuff makes it (IMHO) very attractive. Although, I personally have a Design Reference Library Ala the Alliance Partnership so I do not need to debate the costs with my boss. You may have a harder time
To answer the other question. You do need a UTF License to run unit tests. I just opened a example project in the next cube over (he is stuck on a "Full" LabVIEW dev key) the project opens with warnings on the UTF files.
05-21-2018 12:09 PM
This is what I did.
Have vi run when opened.
One shortcut string.
execute labview include two arguments. Project file and vi file.
"C:\Program Files (x86)\National Instruments\LabVIEW 2013\LabVIEW.exe" "C:\_096 Rev F.lvproj" "C:\_096 Rev F.vi"
Hope that works.