LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using the keydown option in order to trigger an event

Solved!
Go to solution

Hi all,

 

This is my first question on this forum, and that is probably because i just started learning labview.

I came across with an error, i could most likely solve in another programming language using C, but not in labview.

I was wondering if someone could give me a hand with the following:

 

I attached the program, which is probably a bit bad-written. Basicly, what im trying with the part on the left, is read all values from a controller on a GPIB bus.

This part works like a charm, because i get all the values i want without any problem. After that, in the last step of this program, you have a while loop, with in there an event structure. The reason i took a while for that is because i dont want the program to start over at step 1. The event structure was first used with clicks of the mouse on the buttons, and a changed value with the numeric controls. Because a changed value did not work, cause the loop was constantly reading the values coming from the initial phases, i wanted to change the way the events were handled by a keydown of 'Enter'. I think, when you change a value in a numeric control and press enter, this could be perfectly used to trigger the events, instead of the value changes (because everytime the program reads the values in the sides, i think its considered like a value change). The fact is i dont really have an idea how to use the keydown as an event handler, any info on this would be greatly appreciated.

 

I'm sorry if my english isn't the best, it's only my 3th language. Hope you understood and i can get some help for this issue 😉

 

Thanks in advance

 

Thomas De Landtsheer

Student

 

 

0 Kudos
Message 1 of 11
(3,918 Views)
I tried to make your code a little more efficient. I think I added what you want for the value changes. See the code below.
Tim
GHSP
0 Kudos
Message 2 of 11
(3,899 Views)

Thanks for putting some time in this, but sadly i cannot open the file. It appears to be written in version 9.0, and i forgot to mention im using Labview 7.0.
Is there any way i can convert it into a 7.0 myself or you sending me an older version of the file?

 

Kind regards,

Thomas

0 Kudos
Message 3 of 11
(3,893 Views)
No. I can not go back farther than 8.6 currently. Maybe you can get someone to downgrade it for you. It will be worth the effort.
Tim
GHSP
0 Kudos
Message 4 of 11
(3,889 Views)

Hmm i just found out my friend has 8.6, if you could send me in 8.6 version, i will be able to make the same but on 7.0 🙂

Thanks for your effort

0 Kudos
Message 5 of 11
(3,881 Views)
Message 6 of 11
(3,869 Views)

First of all, thank you aeastet.

 

I/We have checked your program, but since we are both not so great at labview yet, it is quite hard to understand this program you have written me.

Could you give us a little explanation of what you have been writing? For example, we do get the big picture, with the case to initialize and after that dispatcher + sending. The problem is a few blocks we havent really seen yet. All these numerics and stuff outside the while loop, what are they exactly, or are they just a different way of viewing them? The stuff with the digital at at INI phase, The block in the lower right corner of the INI phase, and the digital block in the dispatcher phase we didn't really understand. 


Thanks

0 Kudos
Message 7 of 11
(3,859 Views)

The problem is a few blocks we havent really seen yet. All these numerics and stuff outside the while loop, what are they exactly, or are they just a different way of viewing them? The stuff with the digital at INI phase, The block in the lower right corner of the INI phase.

 

 La_BD.png

 

 

The digital block in the dispatcher phase we didn't really understand. 

 

I am not sure what you mean here can you circle it and send me a picture so that I can explain.

 

Tim
GHSP
Message 8 of 11
(3,852 Views)
Solution
Accepted by topic author ThomasDL89
La_BD2.png
Tim
GHSP
Message 9 of 11
(3,848 Views)

 This case is solved!

Thanks mate, i really appreciate it.

Have a good evening

0 Kudos
Message 10 of 11
(3,838 Views)