How can you stop a LabVIEW VI from MATLAB script?

조회 수: 2 (최근 30일)
jearky Lai
jearky Lai 2023년 4월 27일
댓글: Luke 2025년 1월 16일
Hey!
I was wondering if I could stop a LabVIEW VI through a command/function in MATLAB. I just want to stop the VI at a specific time through my MATLAB code.
I have learned how to run a LabVIEW VI through a command/function in MATLAB from the blog https://forums.ni.com/t5/LabVIEW/MATLAB-calling-subVi/td-p/906758
Does anybody have an idea?

채택된 답변

Sachin
Sachin 2023년 5월 12일
Hi
I understand that you want to stop the LabVIEW from MATLAB script.
You can use “Abort” function to stop a LabVIEW VI.
Refer the following link to Abort LabVIEW VI.
Refer the following MATLAB Answer for more information:
  댓글 수: 2
jearky Lai
jearky Lai 2023년 5월 12일
Thank you for the detailed answer !
Luke
Luke 2025년 1월 16일
When i launch a LabView vi from matlab,matlab will wait for the vi to close before it continues so that i cannot stop the vi through matlab script.Do you know how to deal with this problem?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 LabVIEW에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by