NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

如何在子程序运行过程中强行停止运行并且关闭前面板, 但不能影响主程序的运行???

如何在子程序运行过程中强行停止运行并且关闭前面板, 但不能影响主程序的运行???
 
希望高手帮忙解决这个问题,谢谢了!!!
0 项奖励
1 条消息(共 23 条)
8,396 次查看

You can close front panel which is parent panel as you call sub-vi.

use Vi property node. call Vi reference, it is available

________________________________________________________


Try to make everything Automatic
0 项奖励
2 条消息(共 23 条)
8,361 次查看
You'd better change your subVI to dynamic VI.
---------------------------
Lady And Basketball Vividly In my Exciting World !!!
Daniel.Tang E-mail: tangye@friendess.com
0 项奖励
3 条消息(共 23 条)
8,352 次查看

请问如何使用 Vi property node和 Vi reference ???

如何使用dynamic VI ???

谢谢了,我是新手,谢谢指导!!!

 

0 项奖励
4 条消息(共 23 条)
8,328 次查看
Use function in Application Control palette to call vi reference and call dynamic vi.
 

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).

---------------------------
Lady And Basketball Vividly In my Exciting World !!!
Daniel.Tang E-mail: tangye@friendess.com
0 项奖励
5 条消息(共 23 条)
8,322 次查看

现发上我的程序,请高手帮忙看看.

运行mainwindow.vi后,点击button1按纽,会弹出一个子vi的前面板(subvi.vi),点击Test 1 按纽,会弹出一个对话框.此时如果点击对话框中的stop按纽,则mainwindow.vi和subvi.vi都会停止运行.

如何做到点stop按纽后,停止subvi.vi的运行并且关闭其前面板,但同时保持mainwindow.vi继续运行???

谢谢帮助!!!

0 项奖励
6 条消息(共 23 条)
8,302 次查看
参照example中的old event handler和new event handler这2个例子。

帖子被篮球之鬼在09-06-2005 08:08 PM时编辑过了

---------------------------
Lady And Basketball Vividly In my Exciting World !!!
Daniel.Tang E-mail: tangye@friendess.com
0 项奖励
7 条消息(共 23 条)
8,298 次查看

现发上我的程序,请高手帮忙看看.

运行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 !

谢谢帮助!!!

________________________________________________________


Try to make everything Automatic
0 项奖励
8 条消息(共 23 条)
8,293 次查看
下不了你的例子,这样是你的意思吗?
——————————————
党教育我们要忠于人民
0 项奖励
9 条消息(共 23 条)
8,289 次查看

不好意思,我没说清楚.

问题的关键是subvi.vi中,先弹出对话框(对话框也是用子vi做的), 紧接着下面还有程序要运行,如果点击continue按纽, 就继续执行以下的程序. 我想做到的是, 点击stop按纽后就不执行以下的程序了, 相当于在程序运行的中间强行停止, 并且能关掉subvi.vi 的前面板, 但同时不影响mainwindow.vi 的运行. (按我现在程序里的做法,点stop 按纽后,subvi.vi 和mainwindow.vi都停止运行了,而且关不掉subvi.vi的前面板).

我把三个vi分成三个帖子发上来, 请大家帮忙看一看.

 

0 项奖励
10 条消息(共 23 条)
8,277 次查看