LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ereigniss Programmierung Diagramm Vergrößerung.

Ich bin Student und entwickle gerade für meine Diplomarbeit ein Programm in Labview. Das Problem bei dem ich nicht weiter komme ist eine Ereigniss gesteuerte Schleife um ein Diagramm zu vergrößern. Meine Idee war das der Benutzer im Frontpanel mit der Maus auf ein Diagramm geht und sich dieses dann auf Bildschirmgröße vergrößert und das wenn der Benutzer den Diagrammbereich mit der Maus verläßt das Diagramm wieder die Erstellungsgröße hat. Ich wäre für jede Hilfe sehr dankbar.
0 Kudos
Message 1 of 9
(3,330 Views)

Propertynodes,  ähh Eigenschaftsknoten  in Verbindung mit Mouse over Events

 

Message Edited by Henrik Volkers on 03-03-2006 05:14 PM

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 9
(3,325 Views)
Thanks for your answer. You were a very grat help for me!
0 Kudos
Message 3 of 9
(3,320 Views)
Hi,


First, sorry, my German is a bit rusty..


If I understand correctly, you want an object (graph?) to resize when the user moves it's mouse over it, and to size it back when it leaves the object.


I hope you use LV7 or higher, or this won't work...


You can do this with an event structure. Put one in your loop, and add a case for "mouse enter" where you put a property of the obect to resize it. Add a second case "mouse leave" where you also add a property to resize it, but to it's original size.


You can also use "Register Event Callback" in Communication>ActiveX menu. Just wire an object reference to "Event", and select the event (click on "Event"), right click "create callback vi". Do your resizing there.


Let us know if you need more help with it.


Regards,


Wiebe.
"Grenzgänger30" <x@no.email> wrote in message news:1141398640309-333238@exchange.ni.com...
Ich bin Student und entwickle gerade für meine Diplomarbeit ein Programm in Labview. Das Problem bei dem ich nicht weiter komme ist eine Ereigniss gesteuerte Schleife um ein Diagramm zu vergrößern. Meine Idee war das der Benutzer im Frontpanel mit der Maus auf ein Diagramm geht und sich dieses dann auf Bildschirmgröße vergrößert und das wenn der Benutzer den Diagrammbereich mit der Maus verläßt das Diagramm wieder die Erstellungsgröße hat. Ich wäre für jede Hilfe sehr dankbar.
Message 4 of 9
(3,325 Views)

Bitte, gern geschehen  (Die 'Währung' in diesem Forum sind die kleinen Sternchen Smiley Wink)

Auch wenn der Anteil an Deutschen hier im Forum recht hoch ist, siehe

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=570#M570

würde ich in Zukunft versuchen die Fragen gleich in Englisch zu stellen. 
Für einen Studenten einer technischen Studienrichtung (richtig?) sollte Englisch keine Fremdsprache sein!
 
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 9
(3,316 Views)
Hi

you must not say sorry for your german, I have think that were a german Discussion Forum and that were the reason that I write not in english.


Then I want say you that you have understand very good. You have give me the exact answer for my problem. Thanks for your help and a nice weekend for you.

Best Regards
0 Kudos
Message 6 of 9
(3,306 Views)
Ich dachte das ich hier im Deutschen Ni Disscussion Forum wäre deswegen habe ich in deutsche geschrieben. Aber danke für den hinweis.

Regards
0 Kudos
Message 7 of 9
(3,305 Views)
Hi Mr.Wiebe@CARYA,

now I contact you again,because I have aquestion.

The Program what I have write is for the simulation of the electrical energy of a residantil bulding with a solar generator and a wind generator. When the program is starting the it read the txt file(the second file what I send you) and work with the data for one time.

Labview I have learn only for my diploma thisis at the last three month.

For that what you have send me yesterday, for event loop with value change and for the save option im must make a while loop about my program. But that were impossible for the program, because that may be working only one time.

I you think also the solution of this problem were impossible then were this for me that I have finish the work at my program.

Thank for your time upfront.

Best Regards Olaf
0 Kudos
Message 8 of 9
(3,299 Views)
Hi,


(There sure is some room for optimalisation in your program, should you run into speed problems. (E.g. the for loops near the end: why don't you use "split 1D array", it does exactly the same as the for loops with auto indexing))


You should really consider some sort of architecture for your program. Once you have such a program structure, it will be much easier to implement new features.


You can still use a while loop, but you need a way to stop it. A simple way to do this is to use a local variable. Set it to true before the loop starts, and set it to false when the calculation is finished. If you set it to false with a "Value (signaling)" property, you can ad an event case for the controls value change event, and that event will have a True constant that stops the while loop.


If you use the ActiveX registeration function you don't need any loop, but it is "kludgy"..


Regards,


Wiebe.


"Grenzgänger30" <x@no.email> wrote in message news:1141494045050-333630@exchange.ni.com...
Hi Mr.Wiebe@CARYA, now I contact you again,because I have aquestion. The Program what I have write is for the simulation of the electrical energy of a residantil bulding with a solar generator and a wind generator. When the program is starting the it read the txt file(the second file what I send you) and work with the data for one time.Labview I have learn only for my diploma thisis at the last three month.For that what you have send me yesterday, for event loop with value change and for the save option im must make a while loop about my program. But that were impossible for the program, because that may be working only one time.I you think also the solution of this problem were impossible then were this for me that I have finish the work at my program.Thank for your time upfront.Best Regards Olaf



Einzelkomponenten1.vi:
http://forums.ni.com/attachments/ni/170/171464/1/Einzelkomponenten1.vi



STunden+Diffus+Direkt+Verbrauch+Wind.txt:
http://forums.ni.com/attachments/ni/170/171464/2/STunden+Diffus+Direkt+Verbrauch+Wind.txt
Message 9 of 9
(3,288 Views)