From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-12-2013 01:48 AM
Hi. I've constructed a VI using event structure. Whenever I press a button to start the program(for example I press "w" to throttle), the indicator does not respond immediately. Is this normal for event structures or is there anything I can do? Another problem I have is when I'm pressing a button, I cannot press other buttons to work simultaneously(For example, I press "w" to throttle and "d" to yaw). Is there any way I can change that? Please advice.
Thank you
Solved! Go to Solution.
12-12-2013 01:51 AM
Can you reupload it in 2011/2012
File>Save for previous version
12-12-2013 01:56 AM
Sure. Here it is
12-12-2013 02:13 AM
Hi,
Look good what you are doing with those case structures.
You can better use in range and coerce.
Already did this for you though, there is also a better way to furfill that other case structure on the right.
You had no timeout in the event structure, so it would be stuck in that case.
Added another case for key down, repeat as the name says only works if the key is put down for a little while.
I found something strange, for the w,a,s,d keys you let the value stored but with Up,Down,Left,Right you set them back at 0 after releasing.
Koen
12-12-2013 02:27 AM
Hey thanks so much Koen. Would you mind explaining what you did in key down and is it possible to press 2 buttons simultaneously? Please advice.
Thank you!
12-12-2013 02:32 AM
Its a duplicate of your key repeat.
Only changed the values to +/-2 so it would be more smooth.
It only gives one signal of at the moment you tap it.
For the multiple buttons I have to check things dont know if this possible
12-12-2013 03:04 AM
Oh I see what you did there. Thank you so much. Oh btw for Key Up, it is on purpose
Thank you!
12-12-2013 03:28 AM
Checked if it's possible to make it work.
I don't think it is, or you have to make it really complicated with shift registers.
12-12-2013 03:49 AM
I see... Thank you for your help! 🙂