rrojas Posted February 22, 2005 Report Share Posted February 22, 2005 My apologies if this has already been address, but I couldn't find it via the search function. I have a startup-screen VI that calls three different executables (VIs) depending on what button is pressed. My question is if it is possible to configure the executable VIs to accept a number of passed in arguments when they're called as executables. Does something have to be done when creating a standalone application? Do the VIs have to be converted to sub-VIs with input nodes assigned, and those input nodes are then the passed in arguments to the executable form? Thanks in advance for any help. Quote Link to comment
FLX Posted February 22, 2005 Report Share Posted February 22, 2005 Hola diyo, here what I found from NI Support side. and here the text. NOTE: In LabVIEW 7.0, when you launch LabVIEW or a stand-alone application from the command line, you can pass user-defined arguments. In the command line, enter two hyphens (--) surrounded by spaces before the set of user-defined arguments. LabVIEW does not use any arguments after the two hyphens to launch labview.exe. LabVIEW passes the arguments after the two hyphens to the block diagram of the VI you launch. In the VI you launch, use the Application:Command Line Arguments property to read the user-defined command-line arguments passed when the executable launches. Visit the Upgrade Advisor (linked below) to upgrade LabVIEW. Refer to the LabVIEW 7.0 Upgrade Notes (linked below) for more information about using command-line arguments in LabVIEW. You also can access the LabVIEW 7.0 Upgrade Notes in LabVIEW by selecting Help Quote Link to comment
rrojas Posted February 22, 2005 Author Report Share Posted February 22, 2005 Hola diyo,here what I found from NI Support side. and here the text. NOTE: In LabVIEW 7.0, when you launch LabVIEW or a stand-alone application from the command line, you can pass user-defined arguments. In the command line, enter two hyphens (--) surrounded by spaces before the set of user-defined arguments. LabVIEW does not use any arguments after the two hyphens to launch labview.exe. LabVIEW passes the arguments after the two hyphens to the block diagram of the VI you launch. In the VI you launch, use the Application:Command Line Arguments property to read the user-defined command-line arguments passed when the executable launches. Visit the Upgrade Advisor (linked below) to upgrade LabVIEW. Refer to the LabVIEW 7.0 Upgrade Notes (linked below) for more information about using command-line arguments in LabVIEW. You also can access the LabVIEW 7.0 Upgrade Notes in LabVIEW by selecting Help Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.