Reporting success or failure of labview command line build
We've set up a nightly build for our project, using a batch file for compiling the C++ code in our project on Windows. Thanks to some other posts on this subject, we've gotten the command-line build to work in Labview 8.2. I'd like to add the Labview build command to same batch file as the C++ build. We found how to check within Labview if the project built or failed; however, I didn't see a way to report the success or failure status of the build from the Labview environment back up into the calling batch file (as/just before Labview exits).
One option is to have the batch file check for the existence of the Labview output executable file(s). Does anyone have a more elegant solution?
Thanks,
Adam
Hello Adam,
Based on what you have described, your method seems to be the simplest way to do it. You can not only check whether the executable files were created, but you can also check to see the modification dates to make sure that they are from the latest build.
body { margin: 0 0 0 0; padding:0 0 0 0 }
td,div { font-family:Arial;font-size:10pt;vertical-align:top }
body { margin: 0 0 0 0; padding:0 0 0 0 }
.transcript { background-color:#d2d2d2; }
.messageBlock { margin-left:4px; margin-bottom:3px }
.message { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-spacere; }
.messageCont { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-spacere;}
.other { color:#39577a;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.myself { color:#da8103;font-style:normal;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont { font-size:8px;text-align:right; color:#39577a;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.myselfCont { font-size:8px;text-align:right; color:#da8103;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.system { margin-left:4px; word-wrap:break-word;color:#da8103;font-style:normal;font-weight:normal; white-space:-moz-pre-wrap; _white-spacere; }
.showTimestamp { margin-right:3px; float:right; color:#999999;font-style:normal;font-weight:normal; }
.other1 { color:#ac2000;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont1 { font-size:8px;text-align:right; color:#ac2000;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other2 { color:#3c9fa8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont2 { font-size:8px;text-align:right; color:#3c9fa8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other3 { color:#e25614;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont3 { font-size:8px;text-align:right; color:#e25614;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other4 { color:#0b6ac8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont4 { font-size:8px;text-align:right; color:#0b6ac8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other5 { color:#b23290;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont5 { font-size:8px;text-align:right; color:#b23290;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other6 { color:#02e7c7;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont6 { font-size:8px;text-align:right; color:#02e7c7;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other7 { color:#5b3284;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont7 { font-size:8px;text-align:right; color:#5b3284;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.tsDisplay { display:block }To check if they exist, you can use the following batch command to check if a file exists:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
IF EXIST some.txt DOSOMETHING
Good luck!
Kameralina
Ask NI (ni.com/ask)
Search The KnowledgeBase
NI Developer Zone
Measure It. Fix It. ni.com/greenengineering/
NI Vision ni.com/vision/
Similar Messages
-
Revision: 14412
Revision: 14412
Author: [email protected]
Date: 2010-02-24 17:48:22 -0800 (Wed, 24 Feb 2010)
Log Message:
Added the Syndication.swc to the command line build config file for the AkamaiPluginSample project.
Modified Paths:
osmf/trunk/apps/samples/plugins/AkamaiPluginSample/AkamaiPluginSample-build-config.xmlI think it is not supported through ant script and you may have to contact Oracle Support. Please go through below thread (hisaak's reply) -
Re: Export OSB configuration jar file using Ant
Regards,
Anuj -
I'm trying to do a command line build for my project. I have a main application, that uses a couple of libraries and there are about 10 modules.
I can compile the main application using mxmlc, but when I try to compile the modules I get an error saying it can't find the main application.
My question is, there seems to be 2 paths here. The mxmlc way that I've been playing with and an ant build way. I don't mind switching to the ant build way if it's easier, but I just don't know what the recommended or preffered way is.
Here is my current mxmlc script for the main application.
%FLEX_home%\mxmlc -library-path+="../libs/3rd_party/Library1.swc" -library-path+="../libs/3rd_party/Library2.swc" -theme=${flexlib}/themes/Halo/halo.swc MyApplication.mxml
What would the correct way to build the modules be?use OJDEPLOY
Its in your jdeveloper\jdev\bin directory.
Make sure you can deploy from the jdeveloper ide with the Application>Deploy>whateveryourserver.connectionis
If you can deploy your ear to the server from the IDE then you can use OJDEPLOY
.\jdeveloper\jdev\bin\ojdeploy -profile SOME_DEPLOYMENT_PROFILE_NAME -forcerewrite -workspace c:\projects\SomeProject\SomeProject.jws
The deployment profile is the key that connects JDeveloper UI deployment to the OJDEPLOY command line tool.
OJDEPLOY will create the ear file or war etc.....
To deploy this to a sever use the servers deployment tools.
To deploy to Weblogic I use:
java weblogic.Deployer -user weblogic -password weblogic1 -deploy -upload C:\path.to.my.ear\MY-EAR-File.ear -name My_Ear_File_name_I_want_to_see_in_weblogic_console -remote -verbose
Hope this helps...
JJ Everett -
Revision: 13165
Revision: 13165
Author: [email protected]
Date: 2009-12-22 14:04:24 -0800 (Tue, 22 Dec 2009)
Log Message:
unused import was breaking the command line build.
Modified Paths:
osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/AllExamples.asCarey,
I have tried london1a1's workaround, and it has not made any difference.
It seems that london1a1 suggests changing the Camera.h file in this location:
Users/london1a1/Documents/DW_NAF/PhoneGapLib/PhoneGapLib/Classes/Camera.h
Whereas you're saying to change the Camera.h file in this location:
/Applications/Adobe Dreamweaver CS5.5/Configuration/NativeAppFramework/DWPhoneGap/iphone/PhoneGapLib/Classes/Camera.h
I've tried changing the Camera.h file in both locations. Neither has made a difference. -
Revision: 13544
Revision: 13544
Author: [email protected]
Date: 2010-01-15 17:13:13 -0800 (Fri, 15 Jan 2010)
Log Message:
Attempt to fix the broken command line build.
Modified Paths:
osmf/trunk/apps/samples/framework/DynamicStreamingSample/DynamicStreamingSample-build-con fig.xmlIf there was a magic bullet to keeping clients healthy, then keeping clients healthy would not be an issue.
However, ConfigMgr 2012 does have a a built-in client health tool called ccmeval -- this is run using a scheduled task on client systems every day and does a very good job of keeping clients healthy.
Using a task sequence or anything directly deployed by ConfigMgr won't work because its a catch-22: how is the ConfigMgr agent supposed to run a deployment if it or a dependent component is not healthy.
Other things to keep clients healthy:
- Don't give users local admin privileges.
- Beat users that hard shutdown or reboot systems (this is IMO the number 1 cause of client health issues)
- Get rid of XP
- Use client startup script that supplements ccmeval
Jason | http://blog.configmgrftw.com -
[svn:osmf:] 13639: Attempt to fix the command line build.
Revision: 13639
Revision: 13639
Author: [email protected]
Date: 2010-01-19 14:58:36 -0800 (Tue, 19 Jan 2010)
Log Message:
Attempt to fix the command line build.
Modified Paths:
osmf/trunk/apps/samples/framework/DynamicStreamingSample/DynamicStreamingSample-build-con fig.xmlHi,
I am new to this field.
I imported the strobe media playback to my flash builder.
I am getting the error
unknown configuration variable 'swf-version'
When i imported the strobe media playback in flash builder
the ADDITIONAL COMPILER ARGUMENTS in the projec>properties>actionscript compiler>
was having value
-swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true
please help me out -
Revision: 14411
Revision: 14411
Author: [email protected]
Date: 2010-02-24 17:45:22 -0800 (Wed, 24 Feb 2010)
Log Message:
Adding command line build config files for the syndication library.
Added Paths:
osmf/trunk/libs/Syndication/syndication-build-config.flex
osmf/trunk/libs/Syndication/syndication-build-config.flexcov
osmf/trunk/libs/Syndication/syndication-build-config.xmlRevision: 14411
Revision: 14411
Author: [email protected]
Date: 2010-02-24 17:45:22 -0800 (Wed, 24 Feb 2010)
Log Message:
Adding command line build config files for the syndication library.
Added Paths:
osmf/trunk/libs/Syndication/syndication-build-config.flex
osmf/trunk/libs/Syndication/syndication-build-config.flexcov
osmf/trunk/libs/Syndication/syndication-build-config.xml -
Command line build and source control (svn)
Using Flash Builder, what should be checked into source control to enable a command line build without any user interaction? Just checking in all the source directories is apparently not enough - as far as I can tell the individual projects have to be added to the workspace for the build to work.
I've experimentally determined that .metadata/.plugins/com.abobe.flexbuiler.project and .metadata/.plugins/org.eclipse.core.resources are the 2 directories required for my build to work. the com.adobe.flexbuilder.project directory is pretty straight forward and it's obvious what needs to get checked in. the org.eclipse.core.resources directory has quite a bit more files contained in it - do all of these need to be checked into source control for the build to work? Deleting the .history folder appears to be ok.Hi GB_Austin,
What you need to do is set up a Single Source Layout (SSL) to
build with the conditional tags. If you are not sure how to do
this, let me know. Let's assume you have a SSL that can do this and
it is called "General". To build it using Command Line Compilation,
use the following command:
rhcl [address of your project's xpj file] -l "General" -o
[address of the output directory]
The -l (lower case L) tells the caommand line to use this
SSL. If you leave -l "General" out it will compile your Primary
Layout instead. If you leave out the -o and the address, the output
chm file will be placed in the current folder. So the basic command
is just:
rhcl [address of your project's xpj file]
I hope this has helped,
darkagn -
Solaris/Linux Reports 6i modify object names from command line
We are running Solaris 2.6 and are converting Reports from 3 to 6i.
We want to change the name of certain objects at the command line, preferably in batch mode.
Any help gratefully received.Looks like the command is being split in some way - the connection to sqlplus is being made before it completes the whole string
It appears to be seeing the @instance_name as a script to execute rather than a db to connect to.
Is the database on the same server as the script?
If so, try setting your environment to the correct databsae, so that you can omit the @instance_name part of the syntax and see if it helps
Also just noticed the failure to open the decrypt script. It would appear uyou are not using a full path name. Have you checked which directroy the scheduled job starts in? You may need to look at running some environment specific scripts first.
Edited by: LindaA on 05-May-2010 07:43 -
Labview command-line interface
Hi,
I have another simple Labview question. I am trying to determine if Labview is suitable for my purposes. I have no data acquisiton needs and Labview was suggested to me as a language for GUI development. I am going to start learning Labview to give it a fair shake for GUI development, because I have some experience in C# and Java. However, the graphical programming aspect of Labview might be advantageous. My question is Can Labview be used to develop a command-line application?
Thanks for your help,
WillOK, so you just need a command-line version of the application you already have? LabVIEW has an application method that allows you to get the command-line arguments passed into a LabVIEW app:
This will allow you to call a LabVIEW app from the command line and pass in some arguments. The LabVIEW app doesn't need to display a GUI.
Note that when I say "LabVIEW app" I mean code that you've compiled into an application that you run with the LabVIEW Runtime Engine. I'm not referring to the LabVIEW application itself.
Message Edited by smercurio_fc on 03-06-2008 12:28 PM
Attachments:
Example_VI_BD.png 1 KB -
Use labview command line custom
Hay,
This is the forst time i wanna try the command line tool for Labview. i want to use the command line to fill in a parameter. In the end i want to do this:
C:\hex.vi --5340020A0050 //the digits represent hex values
copy the hex values into a string(type hex string) and send this to my comport.
Can some one help me out? I did find something about property nodes but i have no idea how to use them.
TnxNote: You would actually have to build an application from your VI to get command-line arguments. If you open a VI into the development environment it's actually LabVIEW that would receive the command-line arguments, not your VI.
-
How to check the Success or Failure of a command
Hi,
I have forms 10g in which I made delete button on a tabuler canvas behind the button I wrote DELETE_RECORD buil-In, I want to know how can I make sure the delete process is successful or fail.
Thanks in advance.
KhawarHi Francois,
I will check detail in Help for Form Success and Failure, Thanks for reply.
Khawar -
Hello All--
Is there any way I can invoke jdev.exe from the command line with an option to specify that it build my .jpr project file, and without invoking the IDE or requiring any other interaction? I'm new to JDeveloper, and I got used to this nicety over many years of using the -build option of JBuilder (which is now WAY too pricey for my needs). BTW, I know I can use an Ant configuration file, and that is specifically what I am trying to now move away from, and keep things as simple and streamlined as possible.
If there is currently no way to do this, I'd like to add this to the feature request list. Maybe the developers could squeeze that in before final rollout :)
Thanks.If this is a requirement what is wrong with using Ant? You can generate the Build.xml from the project by using New > Ant > BuildFile from Project so you don't have the pain of maintaining the basic script. Likewise you can use Ant as your build-system in the product as well if you only want to use one method. I find useful for making and testing all in one go.
Anyway in answer to your question no - to see the command line options to the IDE type jdev -help from the command prompt. -
We have a large help project I'm migrating to RoboHelp 6
(nearly 3000 topics, 12 chms plus a master file). We generate using
a script that calls the command-line option. One of the projects
fails during command line processing, even though I can build it
from within the GUI without fail. When I run the command line
command, this is the message that is returned:
"D:\quartus\robohelp\subs\reference>"d:\Adobe\RoboHelp
6.0\RoboHTML\RHCL.exe" reference.xpj
Adobe (R) RoboHelp Project Command Line Compiler version
6.00.099
Copyright (C) 2006 Adobe Macromedia Software LLC. All rights
reserved.
Project: D:\quartus\robohelp\subs\reference\reference.xpj
Layout: Microsoft HTML Help.
Output: D:\quartus\robohelp\reference.chm.
Scanning project for compilation....
Error: Failed to scan all the project files. Please use
RoboHelp to recover the project.
Unexpected Error: Failed to prepare single source data for
RHCL. Please try to compile it in RoboHTML."
If I open the project in the GUI and compile it, then compile
from the command line, it works fine. But if I clear the directory,
run the NGCMD.exe command and get the files out and run the
RHCL.exe, I get the same error message.
ThanksFinally I figured out this problem.
It is because one .fpj file missing in the image folder.
When I was using X5, there is no image.fpj in the image
folder, but after upgrading to RH6, using the command line compiler
will fail if there is no the .fpj file under the image folder.
Checking in the image.fpj to the server, then check it out to
your build machine, everything is OK now.
AG2MM -
Command Line Build - Java heap space error
I'm attempting to build a Flex app via the command line. Even though the build works fine from within the Flash Builder IDE, I get the following error when I attempt to build via the command line
C:\code\software\web_stuff>"C:\Program Files\Adobe\Adobe Flash Builder Beta 2\FlashBuilderC.exe" --launcher.suppressErrors -noSplash -application org.eclipse.ant.core.antRunner -data "C:\code\software\web_stuff" -file C:\code\software\web_stuff\build.xml WebControlBrowser
Buildfile: C:\code\software\web_stuff\build.xml
WebControlBrowser:
[fb.exportReleaseBuild] Compiling 1 application to C:\code\software\web_stuff\WebControlBrowser\bin-release...
[fb.exportReleaseBuild] Exception in thread "Code Model Worker" java.lang.OutOfMemoryError: Java heap space
[fb.exportReleaseBuild] at org.eclipse.core.internal.runtime.InternalPlatform.getLog(InternalPlatform.java:404)
[fb.exportReleaseBuild] at org.eclipse.core.runtime.Plugin.getLog(Plugin.java:282)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.bridge.WorkspaceSpecification.log(WorkspaceS
pecification.java:136)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.parsing.ASTokenizer.parseTokens(ASTokenizer.
java:386)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.search.SWCSearchDataProvider.indexFiles(SWCS
earchDataProvider.java:440)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.search.SWCSearchDataProvider$2.run(SWCSearch
DataProvider.java:364)
[fb.exportReleaseBuild] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[fb.exportReleaseBuild] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[fb.exportReleaseBuild] at java.lang.Thread.run(Unknown Source)
BUILD FAILED
C:\code\software\web_stuff\build.xml:4: java.lang.OutOfMemoryError: Java heap space
Total time: 1 minute 0 seconds
FlashBuilderC:
An error has occurred. See the log file
C:\code\software\web_stuff\.metadata\.log.
I've attached the .log file that is referenced.Why isn't this documented somewhere? or if it is why isn't it easy to find?
This link ought to have a link to common issues people run into.
I just spent an hour trying to solve this same problem. FlashbuilderC.exe wouldn't even work on very small projects until I found this post, so thanks.
Maybe you are looking for
-
Time Machine seems to be dead, since I'm unable to reset it. As soon as I try anything, it goes to back to the "OFF" Position. Would appreciate any Help, to get my external Hard Drive to work. Adolffrom Peachland! Product, 2012 IMac 21.5"
-
Hello! I having trouble to print out the array to a JTextArea. This is an asignment so please do not spoonfeed me with code. To test that I have added elements correctly in my array I sat it up to print out in console, wich works fine. Please give me
-
How do I set my IPod to play all my new podcasts continuously?
-
Purchase of Dreamweaver Internationally
I apologise if this is in the wrong section, but I just wanted to find out whether the purchase of Dreamweaver, or any Adobe product for that matter, is region specific. In other words, am I able to buy it, say, in the USA and use it in Australia? Or
-
Hi all, can someone can give a details on how exactly to crean an query, i have tried but get a little consfused, a step by step instructions would be helpful. regards