孜孜 发表于 2006-6-15 02:13:24

请教关于timed loop的用法

我现在想在一个while loop中显示两个wave chart图,其中chart1是由一个timed loop控制5秒中显示一次数据,
而另一个chart2是在while loop中不停的显示数据,可是现在我发现timed loop外的内容也要5秒中才执行一次,
即两个图是同步显示的(我原理解的是 chart2显示的频率要高于chart1的),
请问大请有什么办法可以使timed loop外的程序不受限于timed loop的存在吗?


<img src="attachments/dvbbs/2006-6/200661418131667037.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/2006-6/200661418131667037.bmp\');}" onmousewheel="return imgzoom(this);" alt="" />

孜孜 发表于 2006-6-15 16:49:11

<P>只能用这样的办法解决吗?</P>

cpubbs 发表于 2006-6-15 17:25:53

这里有二种方法啊,呵呵!直接把TIME LOOP拖出来外面就可以!

cpubbs 发表于 2006-6-15 06:23:13

<P>再新建一个与这个WHILE并行的WHILE,就是独立在外面再放一个WHILE,在这个新的WHILE里面放上你的那个随机数产生和显示的,这样就可以的!或者直接把这个TIME LOOP放到WHILE外面也可以!</P>

love515354 发表于 2009-7-16 09:33:47

我想再问一下,定时结构中能向外或外面想里面传递参数吗? 4# cpubbs
页: [1]
查看完整版本: 请教关于timed loop的用法