LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control adquisition with keyboard

Right click a Control > Advanced > Key Navigation...
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 11 of 14
(746 Views)

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

0 Kudos
Message 12 of 14
(742 Views)
Here is the program
0 Kudos
Message 13 of 14
(741 Views)

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,

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 14 of 14
(735 Views)