You can close front panel which is parent panel as you call sub-vi.
use Vi property node. call Vi reference, it is available
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
现发上我的程序,请高手帮忙看看.
运行mainwindow.vi后,点击button1按纽,会弹出一个子vi的前面板(subvi.vi),点击Test 1 按纽,会弹出一个对话框.此时如果点击对话框中的stop按纽,则mainwindow.vi和subvi.vi都会停止运行.
如何做到点stop按纽后,停止subvi.vi的运行并且关闭其前面板,但同时保持mainwindow.vi继续运行???
谢谢帮助!!!
帖子被篮球之鬼在09-06-2005 08:08 PM时编辑过了
现发上我的程序,请高手帮忙看看.
运行mainwindow.vi后,点击button1按纽,会弹出一个子vi的前面板(subvi.vi),点击Test 1 按纽,会弹出一个对话框.此时如果点击对话框中的stop按纽,则mainwindow.vi和subvi.vi都会停止运行.
如何做到点stop按纽后,停止subvi.vi的运行并且关闭其前面板,但同时保持mainwindow.vi继续运行???I can understand "red" remark well. would you tell clear ?
should you want to "close main panel and keep SubVI running ?" if you want to 停止subvi.vi的运行并且关闭其前面板,但同时保持mainwindow.vi继续运行???is it any difficult ?
Subvi has a function which close front pannel as stop !
谢谢帮助!!!
不好意思,我没说清楚.
问题的关键是subvi.vi中,先弹出对话框(对话框也是用子vi做的), 紧接着下面还有程序要运行,如果点击continue按纽, 就继续执行以下的程序. 我想做到的是, 点击stop按纽后就不执行以下的程序了, 相当于在程序运行的中间强行停止, 并且能关掉subvi.vi 的前面板, 但同时不影响mainwindow.vi 的运行. (按我现在程序里的做法,点stop 按纽后,subvi.vi 和mainwindow.vi都停止运行了,而且关不掉subvi.vi的前面板).
我把三个vi分成三个帖子发上来, 请大家帮忙看一看.