From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI產品與技術 討論區

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec.vi

大家好,

 

目前想透過labview去控制Jlink透過swd介面存取soc內部的register資訊

 

手動執行的方法如下:

在window的介面中執行Jlink程式打開後,需要鍵入"connect"指令、CPU core,interface,interface speed資訊,如下圖:

SWD.jpg

 

如果想要全部透過System Exec的function執行完所有上述的內容該怎麼做

目前程式打開對應的程式已經能夠成功了,但後續的那些指令我該怎麼繼續讓labview幫我執行呢

 

程式如下:

Jlink.jpg

執行後會跳出windows視窗Image 18.png

先謝謝各位回答了

 

爬文有看到網友說使用batch file,但batch file方式跟我想要的應用是相符的嗎?

 

 

 

 

0 Kudos
Message 1 of 2
(2,166 Views)

您好,

可以用batch file方式,提供以下資訊參考:

how bat file gets System Exec.vi standard input ?

https://forums.ni.com/t5/LabVIEW/how-bat-file-gets-System-Exec-vi-standard-input/td-p/3735223

 

Using the System Exec VI to Launch Applications from the Command Line

https://forums.ni.com/t5/Example-Programs/Using-the-System-Exec-VI-to-Launch-Applications-from-the-C...

 

System exec batch file run problems

https://forums.ni.com/t5/LabVIEW/System-exec-batch-file-run-problems/td-p/1729874

 

0 Kudos
Message 2 of 2
(2,115 Views)