05-25-2006 09:51 AM
05-25-2006 10:13 AM
ok, I have notice what is exactly my program, I send you a .vi to show you it. I have associated "Boolean" to key enter. When I press enter i get different values for "Numeric" depends on the moment I press the key. But if I delete the block wait(ms) I allways have the same value of "Numeric", it allways get the value in the last iteration, and I don't want this. I want information of excatly the moment I press the key, not after. What can I do?
Thanks a lot.
Luz
05-25-2006 10:14 AM
05-25-2006 10:51 AM
Luz,
I am not able to run your VI at my PC cos I do not have any HW.
However, it seems has something to do with your flow control...
Your For-Loop runs only after the DAQmx Read.
If you remove for-loop delay, it may run too fast before you are able to capture it by hitting "Enter" button
If you add for-loop delay, it take Xms * No. of data to finish the for-loop. And, of course, hitting "Enter" button during this period will capture the loop iteration to "Numeric". However, during this period, your Stop button will not stop the VI promptly.
Not sure if I am correct about this... hope this helps in one way or another. Someone else might be able to run your VI in order to investigate it further.
Regards,