HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Run a LabVIEW VI from Command-Line and Pass Parameters!

8,055 views October 29, 2019 25:31

Watch on YouTube
ChannelRashid Malik

Description from the creator

Sometimes we need to run a VI from the command-line terminal and we need to pass parameters to the VI so that it may do its designated job. We will learn how a command line called VI can retrieve the command line arguments that it was called with. We will learn how to separate the command line arguments, process them, sort them to be filled into its individual front panel controls, convert them from string (Commandline received) format to the controls-expected data formats. We need to set the command line called VI to run whenever it is called, we will see how that can be achieved.

#commandline #commandlineterminal #passingparameterstoVIoncommandline #dataconversion #runwhencalledproperty #runningVIfromcommandline #formatofcommandlinestring #callingVIfromcommandline #receivingcommandlineargumentsinVI #labviewexepath #creatingrelativepaths #labview #labviewtutorial #labviewforbeginners
Next, we will create another VI which we will use to create the command-line string that we will be passing to the command line VI from the terminal. For that, we would need to know where LabVIEW is located on our hard drive, its exact path, that would be used to call the command-line VI. Next we would be creating path to the command-line VI (programmatically); after that would come the actual argument names (control names that would be receiving the arguments), followed by the values that those controls would be receiving; we will learn how that whole command line string can be created, formatted and stitched together. Lastly, we will see a demo, where we will use the command-line string creating VI to generate the complete and properly formatted command-line string for us, we will then close LabVIEW, call windows command line, paste the string there and call the command-line VI, confirming that it is being loaded and receiving its command-line parameters properly.

About this tutorial

Rashid Malik published this 25:31 video tutorial on October 29, 2019. It has been watched 8,055 times on YouTube.

Category
Education
Duration
25:31
Published
October 29, 2019
Views
8,055

Tags

Share

This tutorial in other languages