How can a Labview VI be run as a background task through an ActiveX call ? (without keeping ActiveX busy)

后端 未结 2 403
轻奢々
轻奢々 2021-01-23 16:27

I would like to execute a Labview VI through ActiveX in Matlab.

I use the following commands:

e=actxserver(\'LabVIEW.Application\');
vipath=\'C:\\DATA\\L         


        
2条回答
  •  终归单人心
    2021-01-23 16:43

    You can either:

    • Launch LabVIEW.exe as a process, specifying VI as argument (search help for this). There is for sure a way to tell Matlab to not wait for end of process execution
    • Run the VI dynamically, using VI server, inside a launcher VI, and have Matlab call the launcher VI. The latter will return immediately after calling your VI, and Matlab will not wait for your main VI to end.

提交回复
热议问题