From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-28-2010 05:21 AM
Hi all,
I have three case structure.
I want to define the execution sequence as shown in the following ex .
Please help its urgent
03-28-2010 05:43 AM
Hi Cool : ASDF,
you can do it with a state machine. You need only one case structure for it. Create a case for each of your actions.
Mike
03-28-2010 05:53 AM
Thanks for quick reply
I dont know basics about state machine, can u provide one example how to implement my code.
actually i dont have that much time to understand about the state machine,
as i have to provide it to customer.
thanks
03-28-2010 07:12 AM
Hi,
is it your homework for tomorrow?
For more information on this, see the example finder.
Mike
03-28-2010 08:06 AM
Cool,
Just type in 'State Machines' in NI's website search bar, there must be hundreds of examples already available. If you dont have time to learn about a state machine then your 'customer' should get his 3 execution software written elsewhere.
03-28-2010 10:33 AM
03-28-2010 04:57 PM
03-28-2010 11:44 PM
03-29-2010 08:23 AM - edited 03-29-2010 08:23 AM
Yamaeda wrote:
The quick and dirty solution is to put them in a sequence structure to force execution order.
I'm surprised to see this suggestion but please do not follow this advice. LabVIEW is a dataflow language, not a traditional sequencial language. If you follow this advice you will not be able to harness the full power of dataflow programming. Please take some time to learn the basic concepts of dataflow programming. State machines are very easy to implement in LabVIEW and they are a fantastic programming model. As suggested by Harold earlier in this thread take the time to learnhow to use them. It will pay off many fold in the future.