在 04-23-2009 09:54 PM
Hi,
OldVal is the value before the button is pressed.
By the way, since you need it to be a sub function, please see attached the revised version.
It is using 'polling' method, please watch out for the memory usage 😉
ian fung大大好厲害,你的程式我看好久才懂,不過還是有個問題,我希望off也是要確定按3秒才off,
現在只要按一下就off了,麻煩在幫我修一下,還有可以的話因為我的是7.0版的,請降版存檔謝謝.
在 04-27-2009 08:07 PM
91825 (hope you are not a cop etc :p)
By the way, although I can do it quickly for you, but I still hope that you can try it out yourself.
That way, you will learn.
Please give it a try by refering to the existing example.
我想改一下小地方,可是都改不出來,就是我想改成按3秒後on,不要滑鼠放掉才on,因為這樣才知道什麼時候要放掉滑鼠,
不然總覺得要按好久.
因接觸labview時間不久,所學的大部份都是看書上寫的,自己寫的程式功能達的到,但卻很複雜,
所以想多看看大大們寫程式的技巧,並能吸收學習,因為很多是書上沒有的,謝謝各位大大的
無悔的指教,我會努力的.