The cause of the error should not be "将冲击采集放到整个循环的外面", because I've made a test, it's OK.
I don't know your virtual channel setting, so I can't make a test of your VI. Please recheck your channel setting and the state machine of your program.
The framework of the VI which I enclose here is quite right, just do a little modification. I think it can fit your requirement.
Hi farocean7979 ,
Today I will go back to my hometown. I'll give you a reply after national day, maybe 7days later.
Jiangsu Changzhou which is famous for its China dinosaur park. You are welcome.
Happy National Day!!!
帖子被篮球之鬼在10-07-2005 06:02 AM时编辑过了