Загрузка страницы

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

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.

Видео How to Run a LabVIEW VI from Command-Line and Pass Parameters! канала Rashid Malik
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
15 октября 2019 г. 16:27:28
00:25:31
Яндекс.Метрика