multiple control for switch case structure

I have four process past... my first process is supposed to work for 12 hours and next three deal for 1 hour each. Since I have many variable to display I use tab control. Now my question is how use two controls for the case selector one based on the tab control where the user can see the second and individual process parameters based on time where the process should be automated according to the time it's when 12 elapsed hours that the second process continues to the next process 1 HR even 3rd and 4th. can someone help me please

I enclose my vi

This?

Tags: NI Software

Similar Questions

  • Locking for a case Structure function

    Hello

    Need help on a solution. I have a limit of input switch on a digital line that is used to modify a case structure. The case structure True and False is for forward and back for an engine. For the moment, when the limit is triggered/high the engine starts running but once he spent the race returns to setbacks. How is it possible to keep/latch the case structure who spend only a true value of the limit will change the structure of the case.

    Kind regards

    It seems that you have attached to your original code because there is no feedback node in this VI?

    Anyway, shown below is how to achieve what I have described using a selection instead of the structure of the case function. Note, I think you can also use an Exclusive or instead (as shown in the below screenshot, but I haven't tested that)

  • Timed Boolean switches with case structure

    I'm trying to implement a control for a switch that, when enabled, a signal of 'essential' lights up for 2 seconds and then turns off, as soon as the essential signal sat for two seconds that the VI should send say that the switch is turned on.  I can't get it work the way I want to. I think it might be a way to do it with a machine to States, but I don't know much about them.

    Hello

    I changed your Boolean lock so it will break again in the off position.  This stops the VI into the case again and again until turns off.  Then I added two registers to hold the values of the indicator to shift.

    I guess that my bias is that you would like to continue to operate in the while loop, which goes back to the case of 'OFF '.   If expand you this to a state machine, you might have several cases, shift registers would provide the 'flag' access status to other cases.

    It is a single method, it fits your application.  How would you install it in a larger design?

    Copy the snippet on the desktop, drag on the VI.

    Did you want the keyturn to turn on for two seconds and then have the activated LED light?   If so, you have to move the location of the indicator in the target time while loop, this will in turn while the target time loop times two seconds.

  • By using labels of control tab as controllers of case Structure

    Hi all

    I have a basic question.

    I want to use the tab control label string as a trigger for structure options case. Sorry for the download is not my program because it's too complicated.

    I wonder how can I extract the label (the page name string) strings in order to be used as initiators for various cases of a box structure.

    I appreciate your time in advance.

    Kind regards

    Arman

    That makes no sense at all. It is simply wire the control to a case statement. It is an enum and the case statement admits that. With a right click, you can create a folder for each tab.

  • Constants of output for the case of Structures

    Hello

    I have a pretty basic question about the case structures in labview. As indicated in the attachment below, using the structure case I've pretty much tried to create a three position switch. I'm trying out a value for the first (in the range and Coerce) and another value to the second. If [5-0] 0, [0 0] case for case 1 and case 2 [0, 5]. However when I try to connect all the way to the top, a broken line appears.

    How can I do this without error?

    Thank you

    Justin

    Something like this maybe? You need to change the task UP as well.

  • How to use the 3 buttons to control the transitions in my case structure?

    Hello world

    I hope that this will be an easy fix... Although I can't get out?

    I'm building a state machine inside a while loop with the following States:

    1. idle system.

    2 PCI self-cal.

    3. run DAQ and do my treatment.

    4. stop the vi.

    I can't do that with the help of an enum no problem (with the State 1. System idle as the while loop initialization status)... But I really want to have is 4 buttons on the front panel, one for each of the 4 States, so that the user needs to do is press the button corresponding to the State they want to and the appropriate transition multibordure... For example, when the vi runs first, the idle state is on... When the user is ready can then press 2 for a self-cal... Is auto-cal is ok, they hit key 3 for data acquisition... Once completed the acquisition of data the user can hit the 4 button to stop the vi...

    My problem is that I need the current key to pick up when another button is hit...

    Any suggestions?... It kills me!

    Thank you

    Jack

    Here's what I had in mind. You can easily add conditions so that code runs only once after a change of control, for example.

  • Case Structure range

    I have a simple application, where I use a pneumatic cylinder using the compressive force.  The user enters a set-point of load in the front panel and my LabVIEW program reads the force coming from the load cell and adjusts the current in an electric regulator to control the load to the desired value.

    I would like to have a Boolean simple of LED on the front panel to warn the user if the actual load is in about 2% of the set value that they entered.  For example, if they have 100 N entry, I want the Boolean value of LED to be green when the load is in 98 N and 102N and red when it is not.

    I thought that I would need a structure to deal with a numerical range to control the Boolean value.  The problem is that the load set point will change based on user input, so the beach in the structure of the case will change.  Is it possible to use the structure of the case where it can use the percentage of the target value of load as the limit for the beach?  Or y at - it another way to code this feature?

    Thank you

    Russell

    You can't do that with a case structure.

    You want to look In Range and force.

  • Synchronize the case structure with enum update

    Hi, I created a control enum initially with the "First" and "Second" values. In the block diagram, I created a node of this enum control property and it is connected to a box structure. The structure of business allows me to manage the condition "First" or "Second" correctly.

    I then modified the items in my enum so there is now a 'third party '. My problem is that structure business conditions still show as 'First' and 'second '; That is to say, I can't handle the "Third" condition My question is how to synchronize my case structure to show the updated enum values?

    VI, attached, the sample created with LabVIEW 2009 version 9.0f3 (32-bit) running on Windows 7.

    Thank you all for your help in advance.

    Michael O'Shea

    First tip: remove the value 'default' first case

    If you have done your VI pauses when you change your enum, which is a good thing.

    Now to synchronize, do a right-click on the border of the structure of the case and select 'add the case for all values', this is the option you are looking for.

    Tone

  • Get the names of all cases by programming in a case structure

    Hi all

    I have a Subvi, which is a diagram of States (some control test equipment), with many States (i.e. each "State" is a case of a business structure), a text string chooses the case. All cases are appointed.

    In this sub - is VI possible for me to get programmatically the name of text for each case of this business structure? I want to be able to recover these channels so that the main VI will be able to call the valid States.

    I have the error handling to ensure that if a State not valid is called (using the default case) that an error will be returned to my main vi, but I prefer to be able to retrieve the string to avoid any typo etc.

    Don't know if I've explained this well.

    Thank you

    DS1

    ds_1 wrote:

    [...]   The script I can watch in many it may seem a little complex [...]

    It is not too complex, but it won't work in an executable file.  This program gets a reference to the structure of the case (by searching for the text of the label) and returns a list of names of frame.

    Perhaps my plugin CaseSelect will help you with your Machine States based on a string.  You can put any valid States in string constants by double-clicking a list of cases.

  • Confusion of case Structure

    I started to do a program to monitor some measurement devices that measure permanently: flow, temperature and pressure of the water. There are many limits to the user set. For each meter (there are 3) the user can set soft limits for the 3 parameters. If the data passes above the max or below the min, the indicator box to yellow... The user also defines the hard limits, which are the same idea, but when these are exceeded, I would like the indicator box to turn red. When data are very good, I want the indicator box to be green.

    When I run the program, it seems that in response to a case structure causes blocking the program, even if it is a while loop that should only stop when I press a button. I will attach the code, and I hope that someone knows how to fix this situation.

    P.S. If you know a better way to make comparisons and change the color, I would be more than happy to hear it!

    Thank you!

    I removed the DAQ stuff because I do not have a data acquisition installed, and I put in a random number generator to create the data table.  It worked very well.  It continued until I pressed stop.  Maybe you have a DAQ error that prevents your vi.  In your code, you should include Error In and error Out.  Also, you should put a clear DAQmx at the end of your code function.  Your method to change the colors, that's what I would use.  The fact that you have so many controls adds to the code.  Instead of using upper and lower, you could simplify your code by using the function in the range and force.  You can code in a function in the scope soft limits and hard limits in another function in the range.  You need to hard limits substitute the soft limit, as you do now.

    Simlify the code, you can also create tables to contain all limits.  Pass your array to read data acquisition data in a loop of Foor with indexing enabled.  Inside the loop, you use the loop index in parallel the limits berries, then use the stove functions to determine violations of the hard and soft limits.  You would need a business structure to dictate what update indicator.  Thread index of the loop the selector of the case.  It would be dealing with one channel at a time, but its so fast that I don't think you have seen a difference.  The code would certainly smaller and easier to read.

  • event structure vs case structure

    I am developing LabVIEW: tool of control and vision. Front Panel has a lot of buttons, each button will execute a single or a group of the screws.

    I found that:

    1. event structure is good for digital change. i.e. the user change a corordinate and motors are moved.

    2. the structure cases is suitbale where such that use click "run MTF", a case structure is executed to calculate MTF.

    I tried to use the structured event to pick up button click but it isn't reliable workign, such as the user clicks too quickly and LabVIEW does not record events or LabVIEW records the event even twice

    However, I have a number of clicks functional structures. My block diagram will be uncontrollable.

    Any idea/tip/trick be greatly appreciate!

    -best

    If you understand how LabVIEW works and understand the principle of data flow, what I'm going to say the will of sense.

    The idea of a Structure of the event, it's that he's sitting there, don't take no time CPU until an event (usually a change in a Front Panel control) takes place.  Then he does everything you ask in its event arguments.  The trick is to do almost nothing in the structure of the event, but to say another loop, running in parallel, to do something.

    The key here idea is you have two loops, running in parallel, independently, at their own pace.  One, the event loop, waiting for an 'event '.  When it happens it it "sends a message" to another loop (or loops) that make treatment (which may take some time) as defined by the event loop.  The point is that it is very fast to send him the message (which is usually done via a queue), so the event loop is able to respond much more quickly that the user can push buttons on a façade.

    However, when the hands of loop event off the Message 'go do this task' another loop, the task may take longer.  If the tasks are put in a queue and then they get finished, the next task is running.  The key thing here is that the two loops, the loop «Ask» (events) and the loop ' Do ', run indepedently and at their own speed, nor dependent on the other.

    Bob Schor

  • How to track down where a specific enum is used in a switch case statement?

    Hi all

    I have an application of simulation of machine quite complex state that I add a 'mode' feature for. Some States in the application, rather than the blocks by default of running code, a VI a VI class for each mode will be instead (for example for modes A and B, initialization status has now Initialization_modeA and Inilitalization_modeB). This results in many cases structures everywhere, and I can't figure out how to ensure that, when adding a new mode, I have add the case of this mode of each switch case. Is it as simple as having a default case with a pop-up box? Or is it possible OOP I can handle this?

    Go right on what you told us, you could have each mode inherited from a common ancestor that defines a set of common States (or methods in this case). Whenever you want to add a new method, you can create a new class and override simply each method with this specific class has to do. Instead of having a State of init for each mode, you only then a common State of init, which would then distribute the code correct init based on what class you are using.

  • RandomGen elements, case structure nothing if it's false, while the loop passes iterations, can not get the values in table outside the structure of the case

    Hello!

    I tried to build a trigger that triggers a true value each 1000 milliseconds (from the first real);

    which real command structure box to a value of the randomNrGen of the sample and place it in a table.

    but I would like to USE this table and I can't do this beacause I can not get out of the structure of the case.

    AND:

    the while loop ignores samples; If you run the vi and look at the speed at which the table fills, ypu notice it is not periodic: the first few items are inserted at 1 second interval, but then it jumps one;

    would it be because of the wait time 1ms?

    1. How can I create a structure that does this:

    If set to True, it samples a value from Genesis at random and places it in the table

    OTHERWISE, it does NOTHING, without zeros sent to the table just waiting for the next true and only the values sampled at True remain in the table?

    2. How can I stop it pop samples (multiples of 1000 in my case)?

    In conclusion: I need to be able to take samples on the sample generator and store them in an array of 3d in a zig - zag (1.jpg) way, but able to think about it, we need to go beyond these two questions.

    Please ignore the meter.

    Please help me!

    TibiG wrote:

    Thanks, Crossrulz!

    This did not omit all values and it works fine.

    Is it possible to get information in a case without making use of the large loop?

    My program will become very complex (I need to synchronize a magnetometer and a stepper motor to make a 3d map of the magnetic field of the magnet) and I want to do everything as simple as possible.

    If there is a way to get information about a case structure, other tnan using registers with shift on the big loop, and you know it, please show me.

    Thank you!

    You could also use a Feedback node, just keep it out of the structure of the case.

  • Y at - it a keyboard shortcut for switching windows?

    I see that there is a keyboard shortcut for switching tabs in a window of Firefox, but I would also like one to switch between the windows of the browser. I guess it's easier on Windows, where each browser window kind of behaves as an application separate, but on the Mac OS, an application can have multiple windows. Thus, the operating system does not provide supported to switch between browser windows via a keyboard shortcut; It allows to switch between applications, which brings all of the windows in the application target forward.

    To switch between using Firefox windows: Cmd (Shift) + ~ (Tilde)

    See http://www.danrodney.com/mac/#windows

  • Case structure works is not as expected

    Hello all

    I have a business structure which does not seem to work there in the State on.

    I created the circuit 1st in 1st red slice and it works each led flashes on then off in sequence, but when I try this logic in a case statement (in the 2nd red block) they are all remain lit.  What is the way in which the case statement suppose to work?  Is their a workaround solution?

    Thank you

    First of all, you have here a block diagram.  A 'circuit' is what you create in the material of electric wires and components with electronic.

    All your case structures all work as expected.  What you were doing in the upper part is different from the bottom.  In the background, each LED is located inside a special case.  This particular case only runs when something is true.  You have no way of writing a fake to the LED, because if the LED is going to be false, this case will not run.  Up there, the LEDS are always in the path of execution, so that they get a value True or False, written for them, as appropriate.

Maybe you are looking for