08-08-2012 02:51 PM
hello
i was wondering if anyone can direct me to some easy examples for case structures
i have gone through the theory of structures in LABVIEW FOR EVERYONE still i need some examples to get the concept of the structure spot on.
i shall appreciate if i can get some examples for the select function as well
thanks in advance
jalashwa
08-08-2012 02:55 PM
What part of them are you not understanding? It is a little too wide open to say "I want examples of case structures." Is there an aspect of them you need to better understand? That would be better for all of us if we had a more narrowed subject matter.
08-08-2012 02:56 PM
Have you searched the NI Examples that come with LabView? There are examples there as well as many examples that have been posted on this forum.
08-08-2012 03:16 PM
In LV Examples you have "Simple case Structure" example under fundamentals. Are you trying to understand different way of using a case structure or just to understand a basic use for case structure?
What is that Select function you mentioned? If you cna explain it would be good.
08-08-2012 03:23 PM - edited 08-08-2012 03:25 PM
doesnt "LABVIEW FOR EVERYONE" come with a CD? look in chapter 13 folder, there's a couple of architectures there (ie,State Machine,Event Structure Data,Queued Message Handler).
08-08-2012 03:24 PM
Hi,
Look the attached.
Best Regards,
08-08-2012 03:24 PM
Be sure to have Context Help turned on. For example, if you drop a Select function on the block diagram and move your mouse over it, you will see a brief description of it in the window. Click on the Detailed Help and you will get more. In the Detailed Help, is a good example of how many different ways you can use the Select. That example even includes one way to use a Case statement.
08-09-2012 02:44 AM
08-09-2012 07:54 AM
@Jalashwa wrote:
i was thinking about various possibilities where i can use a care structure. I know the basic function of a case structure but wish to know more about its area of application
I think the better question is where is it NOT used. State machines are probably the most known. The other really popular case is the Action Engine. But the case structure is such a fundamental function you can't really reduce it to a single (or few) area(s) of application.
08-09-2012 08:17 AM
@Jalashwa wrote:
i was thinking about various possibilities where i can use a care structure. I know the basic function of a case structure but wish to know more about its area of application
Do you have any programming experience? LV is often easier for programmers to grasp because a lot of the methodology used in LV has the same functionality in text-based programming. The case structure is such a "case." But if not, you will have to work harder to grasp the concepts of LV, but start with the basics. And this is a very basic question and something that should be able to be answered easily with a little research and examples. I use case structures all the time for various different functions. I use them mostly in functional globals (action engines minus the steriods) and state machines. In fact, I probably use this structure more than any other. The cases will be executed depending on the state of your selector terminal. Have you read the context help or looked at any examples?