LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an .exe that can pass variables into

Hello to the folks on this forum!!!

 

I have created a .exe several months ago and now I need to integrate it into another program.  However, I need to be able to pass in some initial parameters into the .exe.

 

I think this is possible, but I have no idea where to start.

 

Any ideas??

0 Kudos
Message 1 of 3
(2,270 Views)

This can be achieved fairly easily...

 

Read this...http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364 to see how to configure the build spec

 

Then read this...http://decibel.ni.com/content/docs/DOC-10281

to see how to access the arguments in LabVIEW

 

The following code shows how a LabVIEW executable can access the arguments that were passed into the exe...

CMD Line Args.PNG

The index array is only there to pull out the first argument.

If you were to build this into an exe called Test.exe then from the command prompt should you call the exe using the command line "C:\Test.Exe --argument", the exe will put the text 'argument' into the one button dialop popup.

 

Hope this helps.

Davy.

Senior Software Engineer
www.Adansor.com
Message 2 of 3
(2,262 Views)

Cool beans!!!

 

Thanks a bunch!!!

0 Kudos
Message 3 of 3
(2,234 Views)