LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure problem...

I have a problem with the Event structure in conjunction with my switch. Basicall my switch has two positions true and false. Every time there is a value change event I would like to populate a table differently according to the switch value. I have a time out value of 150ms for the event structure.  I have attached the code where I was trying implement the mentioned  functionality. What actually happens with this code is that  my whole front panel freezes affter just one switch . Plus no  update of table takes place.  Please help.

\

0 Kudos
Message 1 of 36
(4,086 Views)

They the following:

Right Click on event, select event handled by this structure. And uncheck the box “Lock font panel until the event case for this event completes”.

0 Kudos
Message 2 of 36
(4,062 Views)
Plesae attach your code, we cannot troubleshoot an image. Have you tried execution highlighting?
 
What's in the TRUE case of the case structure?
 
What is happening in the timeout case of the event structure? Why do you even need it?
 


Message Edited by altenbach on 06-05-2008 02:39 PM
Message 3 of 36
(4,061 Views)
FightONSCTrojan,
OMG, I am a grad student in USC too! What a coincedance.Smiley Happy
Fight ON!
0 Kudos
Message 4 of 36
(4,055 Views)

What is your major? If my suggestion did not help you...please post your code here. If I can't help you, I am pretty sure that altenbach will. His post are usually top notch.

Best

Fight On!

0 Kudos
Message 5 of 36
(4,052 Views)
The disable lock  thing did not work. Now front GUI does not freeze but it does not update the table either.  My timeout case is empty.  It will be interesting to know how to implement this functionality without  event struc. but I am interested in the event structure because I will have to add other dynamic GUI functions later on. Thanks.





Download All
0 Kudos
Message 6 of 36
(4,039 Views)
I am an EE guy.Smiley Happy


0 Kudos
Message 7 of 36
(4,037 Views)

The main problem, is that your event structure only executes once (It is not inside a while loop), so once it times out, it has done its job.

Also, if your prof/lab can afford it, I would recommend The LabVIEW Style Book. I can see that you had experiences programming before. But to effectively do so in LabVIEW, the fastest way is to get some great sample code/books.

 

 

Best,

 

Santiago

Message 8 of 36
(4,026 Views)
In my code above please ignore the sequance structure.  The  code  of interest is in the above event structure. Thanks.

0 Kudos
Message 9 of 36
(4,026 Views)
This code is an absolute nightmare, with all these stacked sequences. Where did you get these ideas?????
 
Anyway, here's the problem: Your event structrure will execute the empty timeout case 150ms after start of the program, and is done afterwards. It will never run again in that session.
  1. Delete the timout case and the timeout value. It does not do anything useful.
  2. Place the event structure inside a while loop so it can service another event once it is done with the current event.

 

0 Kudos
Message 10 of 36
(4,023 Views)