Command line: Mass compile and LLB Conversion
Using LabView 8
Using a script (Perl or VBScript) I would like to extract some VI from our source control,
mass compile them to be to the current LabView version and then create a LLB from that directory.
The need for this is to have a synchonisation between 2 applications.
Since this needs to be done from a script, I need a way to perform this from the command line.
(The other solution we have, is to perform this manually every time a modification is made to the original files,
But sometimes memory can be defective and then .... )
Any suggestions, ideas...
Thanks
EricG
Eric,
That sounds like quite an undertaking, but I think you might be able to implement it (or at least most of it). LabVIEW does not have command line arguments for all that you want to do, so I would recommend building a VI that does what you want and then building that VI into an executable that utilizes command line arguments.
In this VI, opening VIs and mass compiling them can be accomplished through VI Server in the form of an Invoke Node -- these functions are methods under the Application class. Bear in mind that mass compiling can only bring VIs forward in versioning, not backward. For the LLB functions, you can use the Libraryn VIs that ship with LabVIEW -- they are "hidden" in the LabVIEW root directory under vi.lib/Utility/libraryn and are pretty intuitive. As far as the source code control, you are on your own, as that will be dependent on the specific SCC software you are using and will most likely require using ActiveX.
Once you have a VI built that does everything you want and you are ready to build it into an executable, you will want to configure it to accept command line arguments. There is a great online Knowledgebase on this subject, which I have linked here. And of course, if you run into any specific problems along the way you can get help from this great online community!
Best of luck!
E. Sulzer
Applications Engineer
National Instruments
Similar Messages
-
Pass the command line argument (argc and argv) to a LabVIEW built shared library.
Hello,
I have successully use this trick to build a LabVIEW application that runs on Linux without X Display.
http://digital.ni.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6
I'd like to know if it's possible to pass the command line arguments ( ./TEST A B C D) directly into the shared library without having to pass the arguments using a array of strings which would require to write code using DSNewHandle, DSSetHandleSize, extract the arguments and ..... (I'm not proficient in C, but if I don't have a choice I will do it and improve my C skills).
int main(int argc, char *argv[])
Test(argc, argv);
return 0;
Thanks,
Michel
Solved!
Go to Solution.Well, you can always flatten it back into a space separated single string and pass it like that. Basically reverse what the OS does when it calls your main function with the command line parameters. And while the first element in the array is always the program name itself you can just skip that here, but then format all the rest into a single string.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Hi
I’m upgrading our SSIS packages from SQL 2005 to SQL 2012 .
Everything is working fine in Visual Studio, but when I’m submitting dtexec.exe it’s finishing right away in the command line (the actual execution takes long time).
It looks to me that as the return code doesn’t pass properly.
As I have depending tasks how I can make sure all jobs will be executed in the proper order.
(We never had this issue in SQL 2005)
C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn>dtexec.exe /ISSERVER "\"\SSISDB\Direct_Prod\Direct_SSIS_Package
\DD_Load_Customer.dtsx\"" /SERVER TORSQLSIS01 /ENVREFERENCE 2
Microsoft (R) SQL Server Execute Package Utility
Version 11.0.2100.60 for 32-bit
Copyright (C) Microsoft Corporation. All rights reserved.
Started: 10:21:55 AM
Execution ID: 21138.
To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report
Started: 10:21:55 AM
Finished: 10:21:56 AM
Elapsed: 0.766 secondsAs per MSDN /ENVREFERENCE argument is used only by SQL Server Agent
see
https://msdn.microsoft.com/en-us/library/hh231187.aspx
below part is what it says
/Env[Reference] environment reference ID
(Optional). Specifies the environment reference (ID) that is used by the package execution, for a package that is deployed to the Integration Services server. The parameters configured to bind
to variables will use the values of the variables that are contained in the environment.
You use /Env[Reference] option together with the /ISServer and the /Server options.
This parameter is used by SQL Server Agent.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Acroread command line issue nUp and a custom page size
When I use the dialog box with the settings I need - It works fine..
Using acroread 9.5.5 on a Linux box.
Does not work in command line with -toPostScript -nUp 6 4 0 -size=1296x1440 -pairs <file_name>.pdf <out_file_name>.ps
If I choose size=legal or size=tabloid the resulting ps has reduced size pages and does flow correctly but
I want to use Large Paper 18"x20" and not downsize the original PDF input files.
Basically placing the images side by sideWere you ever able to get it to print on large paper? I'm facing a similar issue. A pdf with page size 11x17 but when I run it thru acroread it changes the page size to 8.5x11.
-
Problem with command line argument files and quoted strings
I'm trying to use the following custom tag:
-tag com.me.Test.testTag:f:"My Test Tag"
This works fine when sent straight to the command line, but if I put it in an argument file (@argfile) along with the rest of my command, I get the following error:
javadoc: Illegal package name: "My Test Tag"
Any idea why this is happening? If I use a one-word tag header and omit the quotes, javadoc runs with no problems. I'm using Sun's SDK 1.4.1.
Thanks for your help!
Linda HowardWhite space is treated a bit differently in an @argfile,
to enable users to put packages or options on separate lines.
You might try escaping the spaces:
"My\ Test\ Tag"
or using a non-breaking space:
"My Test Tag"
What operating system are you on?
-Doug Kramer
javadoc team -
Command lines for compiling forms
Hi all,
I want to know if there are command lines producing the actions equivalent of Maj+Ctrl+K and Ctrl+T when we are working with a form.
Thank you very much indeed.Hi,
Have you try up this command.
ifcmp60 userid=user_id/password@con_str batch=y module=madule_name.fmb upgrade=yes compile_all=yes output_file=log.txt
Nilaksha -
Command-line mp3 tagger and file renamer programs
I've been looking around and haven't come across a command-line program to edit mp3 tags and rename files based on those tags. Any suggestions?
Have a look at http://home.gna.org/lltag/ - it's in the AUR: https://aur.archlinux.org/packages/lltag/
-
Command Line - Remove user and group updates
I am remote at the moment and not able to access the GUI on a number of OS X server boxes. How do I remove a user and the user from group via the command line.
ThanksI am remote at the moment and not able to access the GUI on a number of OS X server boxes. How do I remove a user and the user from group via the command line.
Thanks -
JAVA command line options -cp and -jar don't work together?
Running JSDK 1.4.2 under Windows. I have a Java application that tries to dynamically load a class name that the user enters as follows:
try {
classResult = java.lang.Class.forName(strFilterName);
catch (ExceptionInInitializerError e) {
strErrorMessage = "ExceptionInInitializerError loading class: " + strFilterName;
catch (LinkageError e) {
strErrorMessage = "LinkageError loading class: " + strFilterName;
catch (ClassNotFoundException e) {
strErrorMessage = "ClassNotFoundException loading class: " + strFilterName;
This works fine if the classes that make up my application are left as class files in the classpath, but fails to work if they have been collected and run from a JAR file. Note: I can even dynamically load the class when running from the JAR file, if the class I'm trying to load is within that JAR file too. The problem really occurrs when the dynamically loaded class is located someplace else in my classpath. I've tried using various combinations of the "-cp" and "-jar" Java command line options - but when loading and running from a JAR file - the "-cp" parameters seem to be ignored. Is this a bug? Has anyone ever seen this before?
I run my program from the JAR file using this command:
java -cp .;e:\entmgr\filters -jar EntMgr.jar
Where "e:\entmgr\filters" is where the class I'm trying to dynamically load is. (This class has no package name, but loads perfectly as long as I'm not running the application from the JAR file). The class name specified by the user has to be fully specified with a package name (if it has one).
I have tried forcing the "java.lang.Class.forName(strFilterName);" call to use the system class loader, the parent of the system class loaded, and even the null bootstrap class loader - all with no success.
I am suspecting that the class loader that is loading and running my main program from the JAR file, is just not paying any attention to the "-cp" parameter when the "-jar" parameter is present. Indeed, I have never seen any change in the failure, no matter what I put in the "-cp" parameter when using the JAR file.
When I run this without using the JAR file, here is the command I execute:
java -cp .;davidp\snmp;filters davidp.snmp.EntMgr
Where this is executed in a directory that has a "filters" and "davidp\snmp" directory. In this case, because the "filters" directory is in my class path - I can dynamically load my class from it using just its simple name (i.e. "TestTrapFilter").
So, is there some bug that precludes the "-cp" parameter from working correctly when the "-jar" parameter is used? Is there some other way to initialize or set up the classloader I'm using, so it can find things outside of the JAR file I'm running from? I would hope that it is possible to get the same behavior from my program, no matter if it is run from a JAR file or not.
Thanks for any assistence!
DaveThese posts are pretty old, but this page came up in a google search while I was having the same problem, so I thought I would throw my own (Later found) solution in.
The -cp and -jar options did not work together for me, but I later learned that they didn't really have to (and you don't have to mess with jar manifest files).
While on the command line, if you want to set a specific class path and also run a jar, all you need to do is add the jar to whatever extra class path you need to use in the -cp <arg>, and then specify which class you want run from inside the jar.
IE:
java -cp <YourSpecialClasspath>: <PathToJar> <ClassToRunInsideOfJar>
in my case it was like:
java -cp /home/user/WebRCP.jar:./StandaloneInstaller.jar InstallLoader
Remember to put a ":" in between the two arguments for the class path (-cp).
Hope this helps someone in the future,
-Josh -
Passing * as command line argument
I need to take some arguments from cmd in my java program which need to be of this form:
java myprogram 4574 10 *
Everything else works fine but when it comes to the asterisk (*) it is replaced by the file list and the args[] in my program becomes
4574
10
myprogram.class
myprogram.java
123.txt
Now i know that instead of giving * if i give "*" the program would be fine.... but is there any way to pass only * (without quotes) in arguments and get the * character in my args array.Compiled with the free command-line Borland compiler and run from cmd:
#include <stdio.h>
void main(int argc,char *argv[]) {
int i;
for(i=0;i<argc;i++)
printf("%d [%s]\r\n",i,argv);
C:\temp\efemer34\xx>a *
0 [C:\temp\efemer34\xx\a.exe]
1 [*] -
How to compile EJB 3.0 in command line
Dear all,
I want to know how to using command line to compile the EJB 3.0 bean.
I have a set of source written in EJB 3.0, if i put in NetBeans and help me to build a ear, it works.
But when i try to using command mode , it has problem.
The Step to compile:
1) Compile the source, all can compile .javac -d . -classpath %JAVAEE_HOME%\lib\javaee.jar;. ..\src\foo\*.java
2) using the same "META-INF" that compiled by netbeans, include with the compiled class and build an jar file
3) build a ear
How ever when i deploy to glassfish 2.0
It prompts me the descriptor error, cannot deploy to server.
Can anyone tell me which step is missing ?
Thanks
Best Regard,
BenAs long as you are not more specific about the steps you take to verify that the ears are the same, I cannot offer any more help. All I can say is: your assumption is wrong, because if they were the same, it would work. Simple logic is usually the best.
-
How to create and use library JAR files with command-line tools?
Development Tools -> General Questions:
I am trying to figure out how to put utility classes into JAR files and then compile and run applications against those JAR files using the command-line javac, jar, and java tools. I am using jdk1.7.0_17 on Debian GNU/Linux 6.0.7.
I have posted a simple example with one utility class, one console application class, and a Makefile:
http://holgerdanske.com/users/dpchrist/java/examples/jar-20130520-2134.tar.gz
Here is a console session:
2013-05-20 21:39:01 dpchrist@desktop ~/sandbox/java/jar
$ cat src/com/example/util/Hello.java
package com.example.util;
public class Hello {
public static void hello(String arg) {
System.out.println("hello, " + arg);
2013-05-20 21:39:12 dpchrist@desktop ~/sandbox/java/jar
$ cat src/com/example/hello/HelloConsole.java
package com.example.hello;
import static com.example.util.Hello.hello;
public class HelloConsole {
public static void main(String [] args) {
hello("world!");
2013-05-20 21:39:21 dpchrist@desktop ~/sandbox/java/jar
$ make
rm -f hello
find . -name '*.class' -delete
javac src/com/example/util/Hello.java
javac -cp src src/com/example/hello/HelloConsole.java
echo "java -cp src com.example.hello.HelloConsole" > hello
chmod +x hello
2013-05-20 21:39:28 dpchrist@desktop ~/sandbox/java/jar
$ ./hello
hello, world!I believe I am looking for:
1. Command-line invocation of "jar" to put the utility class bytecode file (Hello.class) into a JAR?
2. Command-line invocation of "javac" to compile the application (HelloConsole.java) against the JAR file?
3. Command-line invocation of "java" to run the application (HelloConsole.class) against the JAR file?
I already know how t compile the utility class file.
Any suggestions?
TIA,
DavidI finally figured it out:
1. All name spaces must match -- identifiers, packages, file system, JAR contents, etc..
2. Tools must be invoked from specific working directories with specific option arguments, all according to the project name space.
My key discovery was that if the code says
import com.example.util.Hello;then the JAR must contain
com/example/util/Hello.classand I must invoke the compiler and interpreter with an -classpath argument that is the full path to the JAR file
-classpath ext/com/example/util.jarThe code is here:
http://holgerdanske.com/users/dpchrist/java/examples/jar-20130525-1301.tar.gz
Here is a console session that demonstrates building and running the code two ways:
1. Compiling the utility class into bytecode, compiling the application class against the utility bytecode, and running the application bytecode against the utility bytecode.
2. Putting the (previously compiled) utility bytecode into a JAR and running the application bytecode against the JAR. (Note that recompiling the application against the JAR was unnecessary.)
(If you don't know Make, understand that the working directory is reset to the initial working directory prior to each and every command issued by Make):
2013-05-25 14:02:47 dpchrist@desktop ~/sandbox/java/jar
$ cat apps/com/example/hello/Console.java
package com.example.hello;
import com.example.util.Hello;
public class Console {
public static void main(String [] args) {
Hello.hello("world!");
2013-05-25 14:02:55 dpchrist@desktop ~/sandbox/java/jar
$ cat libs/com/example/util/Hello.java
package com.example.util;
public class Hello {
public static void hello(String arg) {
System.out.println("hello, " + arg);
2013-05-25 14:03:03 dpchrist@desktop ~/sandbox/java/jar
$ make
rm -rf bin ext obj
mkdir obj
cd libs; javac -d ../obj com/example/util/Hello.java
mkdir bin
cd apps; javac -d ../bin -cp ../obj com/example/hello/Console.java
cd bin; java -cp .:../obj com.example.hello.Console
hello, world!
mkdir -p ext/com/example
cd obj; jar cvf ../ext/com/example/util.jar com/example/util/Hello.class
added manifest
adding: com/example/util/Hello.class(in = 566) (out= 357)(deflated 36%)
cd bin; java -cp .:../ext/com/example/util.jar com.example.hello.Console
hello, world!
2013-05-25 14:03:11 dpchrist@desktop ~/sandbox/java/jar
$ tree -I CVS .
|-- Makefile
|-- apps
| `-- com
| `-- example
| `-- hello
| `-- Console.java
|-- bin
| `-- com
| `-- example
| `-- hello
| `-- Console.class
|-- ext
| `-- com
| `-- example
| `-- util.jar
|-- libs
| `-- com
| `-- example
| `-- util
| `-- Hello.java
`-- obj
`-- com
`-- example
`-- util
`-- Hello.class
19 directories, 6 filesHTH,
David -
Command Line and Resource Manager
When using the command line to compile a Robohelp project, is there a way to update the shared resources within the project before generation?
For example, say you have Project1 and it is using snippet1 in that project. However, snippet1 has been modified in the resource manager (just say, for argument's sake, that snippet1 is also used in Project2, and you modified the snippet there and synced it to the resource manager). When you do a regular command line compile, the snippet is not updated.
Is there a way to sync the snippets and images from the resource manager in the project before doing the command line compile (other than opening the project and syncing manually)? After all, if I have to open the project, there's no reason to command line compile since I'm already there and can just compile it from the project.
Thanks!I don't think that is possible as, correct me if I am wrong, even within RoboHelp the images don't get updated automatically. It's something you have to do.
It's a good point though so I suggest submitting a feature request.
The more people who request a feature, the more likely it is to be actioned. Please follow this link.
http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Compiling command line utilities for Linux with static libc
Hi,
The following command used to compile and link BerkeleyDB with both static libdb and static libc:
make clean
env LDFLAGS=-static ../dist/configure --disable-shared
make
Now the command only statically links libdb and not libc.
[root@fedora8 ~]# ldd /usr/local/BerkeleyDB.5.3/bin/db_dump
linux-gate.so.1 => (0x00110000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00c15000)
libc.so.6 => /lib/libc.so.6 (0x00a88000)
/lib/ld-linux.so.2 (0x00a69000)
[root@fedora8 ~]#
It appears that the link of the command line utilities has now been moved into "make install".
Can anyone suggest how to also force a static link of libc?The command line utils are in /opt/novell/ncl/bin. There are man pages for
them to describe how they work. If you run "ncl_man" it will list all the
NCL man pages.
>>> On 9/1/2006 at 8:42 AM, in message
<[email protected]> , Joseph
Marton<[email protected]> wrote:
> Are there any command-line utilities for the 1.2 client? I'm thinking
> what if my X gets hosed and I want to access my server. It'd be nice to
> be able to still login and map drives. Granted there's always
> samba/CIFS,
> but if I have a working Novell Client installation and my X just fails
> for
> some reason it'd be nice to still utilize the Novell Client.
>
> Joe -
Since flash became a complex environment and application are
often part of huge and hard to mantain projects is very very
important for us and many like us (as I see in hundreds forums) to
have an external command line .fla compiler. That because building,
testing automation could be simply realized if we have such a
command "exe" to call. We tried using macro recording system, but
it is a really disaster beacause compilation time is always
different.It seems that JSFL could help in automate compilation. It
opens ide and can launch build action according JSFL istructions.
It could be also done on a .fla fileset.
Some interesting posts about that:
http://www.mikechambers.com/blog/2003/09/11/executing-jsfl-files/
http://www.actionscript.org/forums/showthread.php3?t=148946
http://www.gskinner.com/blog/archives/2004/08/jsfl_fla_batch_1.html
Maybe you are looking for
-
Exchange Profile not working in EP system
Hello All, In our EP 6.0 system , if i try to view the exchange profile it throughs up some exceptions . First my doubt is , wheather an exchange profile is maintained for an EP system like our XI/PI systems ? If it is maintained then it has some pro
-
Can't print to HP LaserJet Prof. P1102w_1 wireless printer with my iPad.
I cannot print to HP LaserJet Prof. P1102w_1 wireless printer with my iPad although it appears that this is a compatible printer. My computer prints to this printer. All other components of my wireless options and router are working.
-
Binding RESTful web service / being exposed to a RESTful web service
Hi , I have two quick questions 1. can ORACLE BPEL bind a RESTful web service? 2. can a BPEL process be exposed to a RESTful web service? Thanks
-
Urgent !! :-( - Problems with CLOB
Hello all, I want to write and read in a CLOB. Every thing is OK. But I've a problem !! :-( When I close my clob I still have an cursor (table_...) open on my data base(Oracle 8i) Can you help me ??? This is my class witch woks with CLOB : import jav
-
Directory - Org Unit Listing Not Returning Any Results
Hello Everyone, We are using Nakisa v4.1 on EHP7.0 at the moment. In the user interface, Directory > Org Unit Listing is not returning any results while Employee and Position Listings are working just fine. What would be the cause ? Appreciate your h