Possible to do this with case structure?

Essentially I want the case structure to do: If case1 = run OR case2 = run, do this, else do case3++
I'm using a string case structure right now, where for example, the inputs could be SWEEP_A or SWEEP_B but I want the case structure to use case SWEEPAorB. This is so I can have different names for the input string BUT run the same case (this is to avoid redundant code for what I'm doing).
Thanks.

For more complex logic use can use create a boolean array and convert it to a number.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Can I control pages in tab control with case structure?

    Hi there!
    I'm quite new to Labview and my company wants me to make some programs for testing of electronics. I'm currently working on the GUI and I would like to control three pages in a tab control with buttons.
    I only got the base package of Labview 2009 so I can't use Event structure.
    If you open my .vi you can see I have a tab control with three pages. In the first page I got a "Start" button that should open the next page in the tab control. In the middle page I have a "Tilbake (Back)" button that should go back to the previous page. The button called "Lagre (Save)" should work as a next button and go to the last page. On that page I have a "Tilbake(Back)", "Ny test(New test -> go to first page again)" and "Avslutt (Quit)".
    The buttons under the tab control where something I copied from an example just to try out. That works perfectly, but I cannot edit the Event Structure from the example.
    Is this possible to solve with Case Structure? Or maybe there are other solutions? Feel free to edit my .vi if you like
    Thanks for the help!
    Regards,
    Even Myhre
    Test engineer
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Solved!
    Go to Solution.
    Attachments:
    Test GUI.vi ‏29 KB

    Hi again!
    Well it solved my problem, but I got a strange error while running my program.
    When I press "start", the tab control changes page. When I press "tilbake(back)" it is totally random how many clicks it is necessary for it to change back to the first page. It can be from 1 to 20-30 clicks. Which is very strange since all other navigation buttons works perfect. "Tilbake(back)" button on the last page works correctly and has the same structure as the "tilbake(back)" button on the middle page.
    I have tried all the different options on how the button will response on a press.
    Regrads,
    Even
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Attachments:
    Test GUI2.vi ‏28 KB

  • My client with autism needs to be able to speak/sing into a microphone and simultaneously hear his voice through a headset, preferably with reverb set on high.  Is it possible to do this with the iPad and OS7?  If so, what setup do I need?

    My client with autism needs to be able to speak/sing into a microphone and simultaneously hear his voice through a headset, preferably with reverb set on high.  Is it possible to do this with the iPad and OS7?  If so, what setup do I need?  I have a SM58 type mic and-over-the ear headphones.

    This implies that ODP.NET does NOT need to be installed on a client. However, I cannot find OraOPs9.dll on a machine with Client Release 9.2 installed. Should OraOps?.dll automatically come with a Client installation of 9.2 or higher?
    ODP.NET needs to be installed on the client. OraOps9.dll is part of ODP.NET, not the Oracle Client.
    Also, if an application is built with the 10g ODP.NET, can it be run from a machine with OraOps9.dll?
    If an application is built with 10g ODP.NET, it can be run with 9.2 ODP.NET as long as you do not use any 10g APIs. The new features in 10g ODP.NET are included in the doc and the ODP.NET FAQ for your reference.

  • Help with case structure

    In the VI that i'm enclosing, i have used a boolean array of two booleans to operate two case structures. Inside the case structure, when the boolean is true the shift register value is to be incremented once.The difference between the two incremented values is taken as count. I am facing two problems, firstly, the increment takes place continously instead of just once every time the boolean is true, secondly, the count switches to zero when the switch is turned back to false.
    Thanks in advance.
    Attachments:
    New.vi ‏11 KB

    Try something like this.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    NewMODCA.vi ‏8 KB

  • Broken Arrow with Case Structure Input Selector

    Generally We get a broken arrow when a case structure 
    is wired incorrectly to its case selector .
    I found that even after this is fixed, the arrow remains broken.
    however when you click on the broken arrow, the VI 
    starts to execute instead of highlighting the error.
    Seems like a compiler Issue.
    I want to know if anyone has faced this issue.
    I am currently using LV 8.6
    Regards,
    Sundar.

    SUNDAR.N wrote:
    Generally We get a broken arrow when a case structure 
    is wired incorrectly to its case selector .
    I found that even after this is fixed, the arrow remains broken.
    however when you click on the broken arrow, the VI 
    starts to execute instead of highlighting the error.
    Seems like a compiler Issue.
    I want to know if anyone has faced this issue.
    I am currently using LV 8.6
    Regards,
    Sundar.
    I can confirm that. I HAve seen it with type defs as well as LVOOP classes.
    I have never been able to reproduce it on demand but it always seesm to be associated with situations where a type or class definition was changed. I think I have seen this issue on and off from LV 8.2 thru LV 8.6.
    Ben
    Message Edited by Ben on 07-31-2009 06:59 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Need help with case structures- please help :)

    Hey all.
    I'm currently trying to program a infrared furnace. I'm setting a temperature, subtracted my set temperature from the actual temperature (thermocouple hooked up to SCB-68), and voltage is being sent to the controller of the furnace accordingly. However, I need to hold the set temperature for a certain amount of time. I need help programming this: when the VI reads the set temperature from the thermocouple, it results in a timer running down. When the timer runs down to 0, the While Loop ends. I'm thinking case structures is most appropriate, but if you have a better suggestion, please let me know.
    Thanks

    You should probably implement a state machine.
    The state machine would keep track of the temperature and making ajustments on a timely basis.
    There is a template of a state machine is you select under the File menu > New > From Template.
    You can also look under Help > Find Example > and do a search for state machine.
    There are lots of state machine examples on this forum, some of which may be quite useful.
    RayR

  • Timed boolean switches with case structure

    I am trying to implement a control for a switch that when toggled, turns a "key signal" on for 2 seconds, and then turns off, as soon as the key signal has been on for two seconds the VI should send say that the switch has been enabled.  I cannot get this to work how I want. I think there might be a way to do this with a state machine, but I do not know much about them.
    Solved!
    Go to Solution.
    Attachments:
    VFD on switch.vi ‏26 KB

    Hi,
    I changed your Boolean to latch so it would snap back to the off position.  This stops the VI from entering the on case over and over till turned off.  Then I added two shift registers to hold the indicator values. 
    I guess my bias is that you would want to continue to run in the While loop, going back to the "OFF" case.   If you expand this to a state machine, you might have multiple cases, the shift registers would provide the "flag" status access to the other cases.
    This is only one method, it matches you request.  How would you fit this into a larger design?
    Copy snippet to desktop, drag onto VI.
    Did you want the keyturn to turn on for the two seconds, and then have the enabled LED turn on?   If so you have to move the location of the indicator into the time target while loop, this will allow it to turn on while the time target loop is timing two seconds.
    Mark Ramsdale

  • Is it possible to do this with subtemplates ?

    Please give your valuable suggestion... Thanks in advance !
    We have a requirement in EBS, where there are 4 different Invoice Layouts (RTF Templates) for 4 operating units. We created 4 different templates and attached to the data definition (which is linked to one concurrent program). It works great.
    During runtime, user needs to pick the correct layout and get the correct results.
    BUT, we want to build a logic that a specific layout is defaulted (depending on Operating unit or say, some other XML data element). In other words, Just use/launch a specific template automatically without user choosing from the list of templates.
    So that user doesn't choose wrong template and we can restrict templates based on operating unit.
    There is no easy way I could find to accomplish this.
    I want to use the subtemplate logic, but that doesn't seem to work for this.
    In subtemplates I can only define part of the template logic like header/footer or body part.
    When I put the tags of <?template:Template_Name?> at the very beginning of the layout ,the first character of Header and <?end template?> at the very end of the report, it seems to totally ignore the Header portion.
    Actually, I want to launch a complete RTF template with headers/body/footers by itself.
    The calling (dummy) Template RTF has no formatting at all... Just calls to other templates..
    I want to use one dummy template just to call four other complete templates based on some XML data element (like operating unit).
    Can any guru tell me, if this is possible at all ??

    You can use the same logic we use in Bursting to automatically apply a different template based on some Operating Unit element in the XML message.
    HTH,
    Nilanshu

  • Is it possible to do this with Flash...

    I have this little problem with my blog on MySpace and I'm curious to find out if I can solve it by creating
    a Flash header/game for my blog that will solve it.
    I experience routine cycles where on certain days I will get tons of hits, usually this is just before the night I go out to the club to have fun.  People never, ever comment on my blogs, nor do they subscribe, so I have no way to know who is viewing (spying on) me so regularly and diligently.  This is far beyond annoying.  I've also, in the past, encountered real life problems due to people slandering me from taking things I say way out of context, or simply because they are drama queens who get off on screwing with peoples' lives.
    Now what I want to do is basically take the pyramid with the all-seeing eye from the back of the U.S. one dollar bill, turn it into a big, colorful and interactive work of art with the eye looking around, blinking, staring at the user, emanating, IDK, rage or focus idealized while a marquee then scrolls along the bottom of it telling people that I'm watching those who watch me, or something like that, while in the background recording their friendIDs with a date and time stamp which will then get compiled and forwarded to me on say a weekly basis.
    This will give me peace of mind in knowing who's just browsing, who's friendly and who's doing this to try and hurt me, things I can figure out on my own by checking their profiles and determining whether I am familiar with them or not, and on what terms.
    What do you think, is something like this possible with Flash or would it take Java?

    you can do that with flash.
    you can do a little more and display the user's ip address in your flash header.  and it's possible (with server-side scripting) to display the geographic location of the user based on their ip address.

  • Possible to do this with an Interface?

    ok i have this method in a class called PlayerGUI
    public void play()
              try
                   song.play();
              catch(Exception e)
                            e.getMessage();
         }and this is everything in a class called PlayControl
    public class PlayControl implements ActionListener
         private PlayerGUI gui;
         public PlayControl(PlayerGUI p)
              gui = p;
         public void actionPerformed(ActionEvent e)
              gui.play();
    }so these two classes "communicate" with each other that way.
    now if I make an interface called PlayerGUIListener and put this method (first one above) in it instead of PlayerGUI
    public void stop()
              try
                   song.play();
              catch(Exception e)
                            e.getMessage();
         }and then have PlayerGUI implement it i get these errors
    java:26: interface methods cannot have body
    ^
    Aava:46: interface methods cannot have body
    ^
    java:66: interface methods cannot have body
    ^
    java:75: interface methods cannot have body
    ^
    4 errors
    now the GUIListener has to have some reference to PlayerGUI in order for the method to work......so can anyone point me in the right direction? im basically trying to take the play method out of PlayerGUI and put it in another class file

    When you create the code for the PlayerGUIListener Interface, you do not put in anything except the method declarations. Then you create a class that implements the interface and has code inside the methods. Just like the way PlayControl implement the ActionListener interfacepublic interface PlayerGUIListener {
       public abstract void play();
    public SomeClass implements PlayerGUIListener {
       //bunch of stuff
       public void play() {
          try {          
         song.play();
              } catch(Exception e) {
                          e.getMessage();
    }

  • Possible to do this with Library?

    Hi all,
    I encoded my cds into itunes as 192 bit rate....but as expected I am only getting about 700 songs on my 4 gb nano. So I am wondering if I can have two libraries (or how should I do it)....one leave at the higher bit rate and the other knock down to 128. Maybe I am not thinking about this right but my reasoning behind wanting to do this is that I am worried if I knock the bit rate down and find I notice the quality difference, then upsizing back to 192 would not work and I would have to re imort all my cd's which would be a pain.
    Any thoughts?
    Tammy

    Tammy,
    Transcoding your 192kbps files to 128kbps will degrade the audio more than if you had ripped them into 128kbps originally. See: Buegie, "Oh so tinny" #5, 11:53am Nov 7, 2005 CDT
    I have a 4GB mini and fit ~500 songs on it using AAC/256/VBR encoding. That's still 34+ hours of music with one load. As I have over 300 hours of music, I am not carrying my total collection around with me any way. Why even bother reducing the size of your current files?
    If you want to manage a 'Dual Library', try starting at this Thread:
    Buegie, "Apple Lossless Conversions to Lower BitRates" #6, 09:45pm Sep 14, 2005 CDT

  • Is it possible to achieve this with Pacman?

    I have seen different positives and negatives in each package manager and I found rPath's (Foresight) quite interesting. Is it possible to develop pacman to be able to just download the files that need to be updated when updating an app, instead of downloading the whole package all over again? Sorry to mention this if it's already possible/available/planned.

    That would actually be brilliant ... Downloading the whole OOo all over again because of a very minor update is a bit annoying

  • How do I use a Case Structure with Strings?

    I need to use a string list to set up a set of cases to be performed. Is it possible to tell a single case structure to do "a, b, c, and d, but not e or f" or "do a, c, d, and f, but not b or e" etc... when you use a string containing the cases to be used?

    Blackavar,
    A case structure will only execute a single case at a time. If you want to have multiple cases execute in parallel, then you would need to have multiple copies of the case structure and split the string apart and wire them to all of the needed case structures.
    This could be done with reentrant subVIs to run truely in parallel. Anther method would be to have 6 different case structures, all with 7 cases each. The 7 cases would be "a", "b", "c", "d", "e", "f", and "0". Your input sting will need to be built up so that it will always be 6 characters long and then split up so that each character goes to one of the case structures. You would have your needed code for cases a - f. Case "0" would do nothing.
    Randy Hos
    kin
    Applications Engineer
    Nationsl Instruments
    http://www.ni.com/ask

  • How can I make easier case structure? Or can it possible to have one Pause and reset button in same structure.??

    hello,
    I am tring to convert my main test vi in case structure so latter on i can make some changes in that for example i want creat one pause button and reset button in that.
    I am not so much familer with case structure i want your guidence that how can i make my vi in globle case stucture in that i m having case 1 ,case 2...
    i already tried for that but then i got confused.
    here i am attaching my .llb file in that aa.vi is my main testing vi.
    will you plese guide me so i can make confort vi in case structure.
    Or can it possible to have one pause button and one reset button in same stucture,so User can pause or reset execution at any time when they want.
    Thank you very much in advance.
    Attachments:
    aa.llb ‏3338 KB

    Hello,
    I have change my entire structure ,now is it possible to have pause and reset button.
    here i have attached my changed vi.
    if still any changes required then please suggest me.
    Thank you.
    Attachments:
    aa.vi ‏75 KB
    aa1.llb ‏3333 KB

  • Tab control with a case structure

    I am having trouble getting my tab control to work with case structure. I have 4 tabs that i want displayed on my front panel, each with a separate graph. When I click on any tab besides the first one there is nothing shown on the graph. I think i have some wiring issues. Any ideas?
    Attachments:
    version1.vi ‏379 KB

    See also this and this discusion. Most of the time, tab controls don't need any code.
    (You also have a couple of breakpoints (one on the entire diagram and one on the while loop). Make sure you remove them. Look for the red outlines.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Apple Mail software and Blackberry Anomaly

    I find this weird, I have Apple Mail set up with my Gmail account, but mostly I just use the web for email. But when I do use Mail to compose a message, as I type, if I stop typing for any reason my Blackberry then alerts me that I have an email to m

  • W510 - Cannot go into sleep mode

    The latest patches do not fix this issue, and not only W510 but also all series have the same issue. edit note:- Title changed to suit the issue. Solved! Go to Solution.

  • Unauthorised change of email address

    I just received an email saying that I have successfully changed my email address, which I didnt. Please let me know how i can solve this obvious hack and allow me to cancel my account.

  • Bug when adding a af:image into a ADS enabled table

    This looks like a bug, but wanted to check with others to see if they had seen it. Enable MDS with a column in a table For example: <af:table value="#{ContactCollectionBean}" var="row" id="t2" horizontalGridVisible="false" verticalGridVisible="false"

  • Formula auditing tools in Numbers ´09?

    Are there any formula auditing tools/functions in Numbers ´09? In MS Excel, this features are of great help!