04-22-2010 11:28 AM
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
Solved! Go to Solution.
04-22-2010 12:44 PM
04-22-2010 01:11 PM
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
04-22-2010 01:15 PM
04-22-2010 01:24 PM
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
04-22-2010 01:30 PM
04-22-2010 01:45 PM
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
04-22-2010 02:01 PM
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.
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.
04-22-2010 02:09 PM
04-22-2010 02:25 PM
This case is solved!
Thanks mate, i really appreciate it.
Have a good evening