LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event structure problem

HI!
 
I am a Labview Newbie and i have some problems with my event structure in the program "Biegelinie"! I get always failure from the event-structure in the failure-list!
Could somebody help me???
 
best regards,
 
Peter
Labview 7.1 on Windows 2000
0 Kudos
Message 1 of 8
(3,376 Views)
 

Hello Peter

You need to define the Event which each case has to act on. You do this by right clicking the event structure boarder and choosing "Edit Events Handled by This Case..." from the pull down menu. There you can define if the event should be triggered if some control has changed its value. You can choose from some predefined events. See this link for a graphical view.

https://www.ni.com/en/support/documentation/supplemental/06/event-driven-programming-in-labview.html

As this tutorial explains you can find a lot help about using the Event Structure in the LabVIEW User Manual.

Regards

Mohadjer

NI-DK

Message 2 of 8
(3,361 Views)

HI!

Thank you for your fast answer! But i have a problem, on my system is the base version of labview installed. Because of that i can't configure the event structure!

Could you or somebody do that for me, because it*s very urgent ??

Best regards,

Peter

Labview 7.1 on Windows 2000
0 Kudos
Message 3 of 8
(3,358 Views)
 

Hello Peter

I will help you since this is an urgent matter but just as a reminder or as information I have linked to the following site that explains why you can not use the Event Structure with the base package of LabVIEW.

http://digital.ni.com/public.nsf/websearch/86256A47004E16D286256B490060C5A1?OpenDocument 

When that is said, what Events would you like to implement in the different cases? You need to give at least one event for each case.

Regards

Mo

0 Kudos
Message 4 of 8
(3,351 Views)

HI!

I have red that document and i started the Upgrade Advisor. To upgrade my system to the full version is very expensive and I need only in that program the event function.

Yes it*s very urgent and i hope you can help me!

When the user pushes the Graph Botten the data should be displayed on the graph, with the clear button i wan*t to clear the graph and with the stop button i want to close the program!

Thanks a lot!
 
Best regards,
 
Peter
Labview 7.1 on Windows 2000
0 Kudos
Message 5 of 8
(3,349 Views)
For a less complicated system, you can achieve nearly the same functionality without using an event structure.  Simply poll the state of the booleans you require and feed them into case structures.  By placing these case structures and the polling into a loop with a "wait until ms multiple" set to around 50 or 100ms, the responsiveness of the code should be high enough without bogging the processor down with the polling.

If you want have a look at the example VI I've attached.

Hope this helps

Shane.


PS Are you sure the document linked below is relevant for you?  It states that the event handler isn't in the base 6.1 version of LabVIEW, but your sig says you're using 7.1........

Message Edited by shoneill on 07-25-2005 11:30 AM

Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 6 of 8
(3,338 Views)

Its correct what Shane writes, you could do without the Event Structur but the application will poll for the changes. I have done as you wish but maybe it will be easier for you not to use the Event Structure since you are not able to do any changes when needed. I have removed the case structures that you had in the event cases since you did not have any code in the false cases.

Regards

Mo

0 Kudos
Message 7 of 8
(3,332 Views)

HI guys!

 

Thank you for your help. I tried all two possibilities (Case structure, event structure) and the worked.  I had found another possiblity with a two array functions. Because of that, i won*t use event-structures in future Smiley Wink

THANKS A LOT!!!!

 

Best regards,

 

Peter

Labview 7.1 on Windows 2000
0 Kudos
Message 8 of 8
(3,326 Views)