LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW在編譯成exe檔後,可以在exe檔後加上傳遞參數執行嗎?

假設我有支程式要編譯成 exe 執行檔

那麼可以在執行檔後加上傳遞參數執行嗎?

如:Test.exe x=1,y=2

0 Kudos
Message 1 of 6
(4,400 Views)
Please post your question in English, or post in the appropriate foreign language board.  http://forums.ni.com/ni/board?board.id=1170
0 Kudos
Message 2 of 6
(4,396 Views)
You need to enable the passing of command line arguments for the application's build specification. In order to do this follow these steps:

   1. Open the properties for the application's build specification
   2. Navigate to the Advanced category
   3. Check the Pass all command line arguments to application box

Regards
MY
0 Kudos
Message 3 of 6
(4,376 Views)

 

<< You need to enable the passing of command line arguments for the application's build specification. In order to do this << follow these steps:

<<   1. Open the properties for the application's build specification
<<   2. Navigate to the Advanced category
<<   3. Check the Pass all command line arguments to application box

 

嗯~"Pass all command line arguments to application"已打勾了,也編譯成執行檔了

但執行檔後加上傳遞參數執行,還是沒有用....還是參數指令下錯了?

 

我測試的VI(Test.vi)是 x + y = z 很簡單的加法功能

編程程執行檔後下

Test.exe x=1,y=2

 

但就只是開啟 Test.exe 的畫面而已,x 和 y 的 value 還是沒變.....

 

還是執行檔後的傳遞參數應該怎麼下呢?

0 Kudos
Message 4 of 6
(4,348 Views)

Hello All.

 

建議正體中文者到以下論壇

 

ni.com/taiwan/forum.

 

Thanks.

 

最近有一個客戶問以下的這個問題,是關於command line argument,在LabView>>Find Example>>裡頭找到解法。
搜尋Command,可以找到CommandLine.vi。
Block Diagram如下:

 

1

0 Kudos
Message 5 of 6
(4,320 Views)
<<

<< Hello All.

 

<< 建議正體中文者到以下論壇

 

<< ni.com/taiwan/forum.

 

<< Thanks.

 

<< 最近有一個客戶問以下的這個問題,是關於command line argument,在LabView>>Find Example>>裡頭找到解法。
<< 搜尋Command,可以找到CommandLine.vi。

 

 

OK Thanks

0 Kudos
Message 6 of 6
(4,300 Views)