LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to launch events or process, without keyboard or mouse

I'm doing a machine under labwindows/cvi software, and the control for it, at operator level, is only PASS and FAIL external buttons or switchs, through an In/Out 8255 based board.
But from the user interface i see that only can launch a control or event with the mouse or with the keyboard. I need to check the external buttons, but under RUNUSERINTERFACE() process really i can`t find the manner to make it.
At this moment i only see the manner to do it is with a closed loop with GETUSEREVENT() and check the Inputs board to see the buttons, and if press them, associate it to a key through FAKEKEYSTROKE() function in orden to launch a control.

My question is if there is another method more simple to do it.


Thank you very much for you collaboration.
0 Kudos
Message 1 of 2
(2,576 Views)
You can use RunUserInterface with a hidden panel wich contains a timer, for example to scan the buttons.
GetUserEvent() will work for a control or menu !
You can use a loop too without RunUserInterface() call and scan the buttons.
0 Kudos
Message 2 of 2
(2,576 Views)