12-25-2005 10:10 PM
Hi tst and Giridhar,
I agree with tst that the method of using Event structures is more elegant, simpler and would involve less programming than using query input devices.
In fact i tried a few tricks using events before suggesting this solution.
But, the reason why i choose this 'query input devices' logic over a more preferred event structure is that, Giridhar's objective was to use the enter/return key as 'switch until released' and this is not achieved by using event structures.
Regards
Dev
12-25-2005 11:15 PM
12-26-2005 12:16 AM
12-26-2005 01:21 AM
Thanks Mr.Devchander, Mr.Tst and Mr.Surrender for your examples. It really helped.
Mr.Surrender, nice to get a view from you. Howz your motion control project going on?
Regards,
Giridhar Rajan
Automation Engineer
Cruiser Controls
Mumbai, India
12-26-2005 01:32 AM
Actually, the way I understand it is that the desired result is to immediately have the button go back to false (which would happen under SUR if you immediately release the button). You could also probably accomplish the real SUR action using the Key Up event, although, as I said, your solution works even when the VI doesn't have focus, which may be needed in some cases.
@devchander wrote:
But, the reason why i choose this 'query input devices' logic over a more preferred event structure is that, Giridhar's objective was to use the enter/return key as 'switch until released' and this is not achieved by using event structures.
12-26-2005 01:43 AM
Hi Mr.Giridhar,
Glad to have been of help.
Regards
Dev
12-27-2005 12:45 PM
Hi,
Although my problem is solved, I want to know if this problem of changing mechanical action due to key navigation be reported as a bug. If yes, then how to do it?
Regards,
Giridhar Rajan
Automation Engineer
Cruiser Controls
Mumbai, India
12-27-2005 01:05 PM
12-27-2005 10:47 PM
Yes Giridhar, even i would second tst's comment on this question.
01-24-2006 12:57 AM
Hiiii, Dev
Is there any other options rather than this to create the event structure, coz i am using to much heavy files and it can't load anymore actions, coz it is already been hanged during the process.... is there any method to create a local type of variable instead of this???
Thanks,
Nishant