NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 2 條)
2,154 檢視

您好,

可以用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 積分
2 條訊息(共 2 條)
2,103 檢視