LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application builder: passing arguments to pre/post action VIs

Hi,

 

Is there any chance to put the "command line" argument to the pre/post action VIs in the App Builder?

 

uitiuytiuytiytiuutt.PNG

 

I'd like to put the build version number into it.

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

Hi MimiKLM,

 

You can call a command line script in a VI using the LabVIEW function Sytem Exec.vi.

 

Multiple commands can be used in one Sytem Exec call and the way to use this function is showing in the KB below:

 

“Execute Multiple Commands With One System Exec Call”:

http://digital.ni.com/public.nsf/allkb/4AF9BB1ECC5DD0308625722E00834050?OpenDocument

 

Don’t hesitate to reply to my post if you have any other concerns.

 

Thank you.

 

Regards,

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

As you are building within the LV environment, you have no command line to use (unless there is some batch building mode I missed).

However you could add controls to the Pre/Post build vis and program them as you would do with any other vi. You may also read parameters from a file.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 3
(2,612 Views)