LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke Labview application from Command line

hi,
 
I have a labview program which does some analysis on my Test data.
My application is that,i have a Test sequencer program(Different application) which collects data and stores it in .dat file.
After this i invoke exe of Labview Analysis program from Test sequencer & i enter the Test data filename as a command line argument.
 
My first step in  analysis program is read command line argument(thru App.Args property) & get filename(the command line gives array output , index 0 will be Labview,index 1 will show filename)
 
This works absolutely fine.
 
I made a copy of this analysis prog to include some more functionalities and renamed it as different Labview program(prog structure is same) & trying to do the same abovesaid process.
But somehow im not able to get Command line arg(basically here filename) passed to labview.
 
The error im getting is that it's showing the path of my application (say if my application is in C)."C:\xxxx.dat is not a LABVIEW data file".
 
My question is:
Is there any settings changes to be done for Command line args property node when we make a copy from one prog to other prog.? Im not having clue why this should occur?
 
-Murali
 
Message 1 of 3
(2,875 Views)
Just to confirm I understand what you are asking... you copied the App.Args property from one vi to another, compiled the new vi to an exe, new exe doesn't receive the command line parameters.

Did you make sure the "Pass all command line arguments to application"
check box (in the 'Advanced' category of the application builder) was checked for the new application?
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Message 2 of 3
(2,872 Views)

hi,

Thanks for the reply.

1. Yes your understanding is right,I copied the property node to new vi and build the the exe.

2. I guess you are right,i haven't selected the checkbox of "pass command line arguments". in application builder.

I haven't still tested the new application after making this change.But i feel this was the one i was missing.

I will reply to you once i test it.

Once again Thanks for the support.

-Murali

Message 3 of 3
(2,861 Views)