04-08-2011 08:00 AM
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??
04-08-2011 08:50 AM
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...
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.
04-12-2011 07:35 AM
Cool beans!!!
Thanks a bunch!!!