LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to handle multiple events for the same front panel?

Hi,

 

I am using a front panel for more than one sensor, say here, 4 sensors. But i need to start each sensor only on a click of a start button placed over it (sensor) module which is separated by a vertical and horizontal splitter on the front panel. But when I use a event case I find that only first event is activated and until it is finished the system is on wait. Is it possible to have more than one event case - in my program i need 4 events to be handled simultaneously. 

 

I attached a very simple piece of code for your reference. Let me know if i need to add any other conditions on here?

 

 

Thanks in advance!

Mich

0 Kudos
Message 1 of 4
(2,990 Views)

"Much to learn you have" (little green friend)

 

  • The case structures in the event cases seem overelaborate...
  • Please include an event case for the stop button.
  • You can define several different event sources for a single event case (hit the blue '+' symbol when configuring the event sources)
  • You should learn about Producer/Consumer design pattern for parallel execution
  • ...

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,984 Views)

Regarding Norbert's last point:

 

  1. Start LabVIEW.
  2. On the File Menu, choose "New ..." (the dots are important!).
  3. From the Drop Down, choose "From Template", "Frameworks", "Design Patterns", "Producer/Consumer Design Patterns (Events)".
  4. Study the resulting VI.  Play around with it.  If there are functions you don't understand (and if the comments aren't helpful), right-click the function, choose Help, and read the Detailed Help.
  5. See if you can adopt this VI/Design Pattern to your code/problem.  We'll be glad to help you if you get stuck, or don't understand something.  Be sure to post your code and tell us where you are having difficulties.

Bob Schor

0 Kudos
Message 3 of 4
(2,975 Views)

Thank you both of you... I very well knew that I need to learn more....but was unclear of the point to start with...

 

ok let me first get into producer/consumer architecture....If i need help mid-way I hope you are there!!!

 

Thanks a lot 🙂

0 Kudos
Message 4 of 4
(2,946 Views)