justus Posted February 20, 2006 Report Share Posted February 20, 2006 I have a VI that is executing a case structure and within it are twe events in the same structure where event 2 requires event 1 as an input. I have put event 1 right above event 2 but the program is picking event 2 before event one and hence confusing the process. Is there a way I can condition the VI that event 1 has to be perfomed first before event 2 in the same case? Thanks Quote Link to comment
crelf Posted February 20, 2006 Report Share Posted February 20, 2006 The order of exectuion has nothing to do with the position of elements on your block diagram. LabVIEW is a dataflow programming language, meaning that elements will execute once all of their inputs have data on which to execute on. Check out these links for more information: Dataflow definition Wikipedia LabVIEW definition Quote Link to comment
Mark Balla Posted February 20, 2006 Report Share Posted February 20, 2006 I have a VI that is executing a case structure and within it are twe events in the same structure where event 2 requires event 1 as an input. I have put event 1 right above event 2 but the program is picking event 2 before event one and hence confusing the process. Is there a way I can condition the VI that event 1 has to be perfomed first before event 2 in the same case? Thanks Posting your code or some example of what you are trying to do would make it easier to help you. Quote Link to comment
Louis Manfredi Posted February 20, 2006 Report Share Posted February 20, 2006 Hi Justus: A case structure executes only one panel-- as specified by the input to the structure. Perhaps you want to use a Sequence Structure, which executes panels in order, instead? Best Regards, Louis Quote Link to comment
orko Posted February 21, 2006 Report Share Posted February 21, 2006 I have a VI that is executing a case structure and within it are twe events in the same structure where event 2 requires event 1 as an input. I have put event 1 right above event 2 but the program is picking event 2 before event one and hence confusing the process. Is there a way I can condition the VI that event 1 has to be perfomed first before event 2 in the same case? Thanks I agree that there isn't quite enough info in your post about how your program is structured, but what it appears you're after is a state machine. I've attached a simple example just in case it will help you out. Download File:post-3266-1140491062.vi Joe (orko) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.