LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple loops with event structures

Why can't I get the event to execute?
Thanks.
0 Kudos
Message 1 of 11
(3,634 Views)
Do you have a 50" monitor or something?

Your code makes no sense in terms of trying to understand what you're attempting to accomplish, but the event executes just fine.
0 Kudos
Message 2 of 11
(3,625 Views)
I start the vi and hit Startx number (0-1) starts to update. Hitting Ready to start 2 and start 2 does not start number 2 or 3 on my machine.
0 Kudos
Message 3 of 11
(3,616 Views)
Attached with smaller windows.
0 Kudos
Message 4 of 11
(3,615 Views)
It's all in the dataflow. Once you are running in the inner loop, the rest of the code cannot continue until the inner loop stops again. It is not a good idea to trap the code inside an inner loop.
 
Please tell us how your program is supposed to be used and how it should react to the user inputs.
0 Kudos
Message 5 of 11
(3,613 Views)
number 1 represents motors that have to be started before data is taken; numbers3 is other steps to be carried out before actually taking the data number2. Once the data is taken the motors, (number 1) need to be stopped.
0 Kudos
Message 6 of 11
(3,606 Views)
In that case, I would strongly suggest using a different design paradigm, such as a state machine. Your implementation is confusing and prone to errors (as you've already experienced), not to mention difficult to change.
0 Kudos
Message 7 of 11
(3,603 Views)
I looked up a state machine. There seems to be a lack of documentation. This seems to be the extent of it.

Standard State Machine—Use this template to build a standard state machine design pattern. Each state executes code and determines which state to transition to. Contrast this design pattern with the user interface event pattern, in which code executes in response to user actions. Contrast this design pattern also with the queued message handler pattern, in which each message handling code can queue any number of messages.


The code needs to execute user actions as well as a portion in the example
0 Kudos
Message 8 of 11
(3,589 Views)

State Machines are used in all types of Design, Software and Hardware (FPGA's ASIC's etc).  Would probably be worth looking outside of the LabVIEW community for a more general Introduction to them.  There are different variations on them too (Moore / Mealy / Queed).  However i have found them an Invaluable tool in Engineering and they are not too difficult to get your head round.

Craig

btw i have no idea how to spell Quee'd !

LabVIEW 2012
0 Kudos
Message 9 of 11
(3,583 Views)
State Machines are fundamental to good LabVIEW development.  Here is a LabVIEW tutorial that might help you get started.
 
 
 
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 10 of 11
(3,533 Views)