yaonianha 发表于 2005-10-23 18:50:16

怎样结束所有子vi?

请问各位,能不能通过点击窗口右上角的关闭按钮来结束程序?(这时有可能有子vi正在运行),如果不行的话,用什么方法可以实现?

cpubbs 发表于 2005-10-23 22:21:44

可以的,在VI的EVENT STRUCTURE里面有一个东西,就是程序退出的事件,您在这里处理程序,设定为EXIT LABVIEW这个就可以!

yaonianha 发表于 2005-10-24 04:11:03

这个吗?如果另外一个case里正在执行一个程序,这样也可以关闭?

yaonianha 发表于 2005-10-24 04:16:04

<img src="attachments/dvbbs/2005-10/2005102320160983.bmp" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-10/2005102320160983.bmp\');}" onmousewheel="return imgzoom(this);" alt="" />
页: [1]
查看完整版本: 怎样结束所有子vi?