LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure Response Time & Simultaneous Execution of Events

Solved!
Go to solution

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

0 Kudos
Message 1 of 9
(2,623 Views)

Can you reupload it in 2011/2012

File>Save for previous version

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 2 of 9
(2,620 Views)
0 Kudos
Message 3 of 9
(2,613 Views)
Solution
Accepted by topic author makewayforkhairil

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

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
Message 4 of 9
(2,605 Views)

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!

0 Kudos
Message 5 of 9
(2,591 Views)

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

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 6 of 9
(2,586 Views)

Oh I see what you did there. Thank you so much. Oh btw for Key Up, it is on purpose

 

Thank you!

0 Kudos
Message 7 of 9
(2,572 Views)

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.

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 8 of 9
(2,563 Views)

I see... Thank you for your help! 🙂

 

0 Kudos
Message 9 of 9
(2,554 Views)