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

Similar Messages

  • How to change the case structure to string input?

    Hi,
    I have the inner case structure that it will decide to set "DC Voltage" or "DC Current" mode. The "Output Function" contained the selection of function "DC Voltage" or "DC Current". So far it only work with DC Voltage not DC Current. My question is how do I change the case structure to string selector? When the output function is selected to DC Voltage then the case structure is selected DC voltage case. Please help Thanks.
    Attachments:
    test.vi ‏35 KB

    You don't really need to convert the value to a string? The problem is that the value of the individual ring items are not 0 and 1, as you assumed. The values generated by the controls are:
    DC Voltage: 1006
    DC Current: 1007.
    You can find this out by viewing the properties for the "Output Function" and going to the "Edit Items" tab.
    So, all you need to do is change the 0 to 1006 and the 1 to 1007 for your case items.
    By the way, your sequence frame serves no purpose.

  • How can we serialize a c++ structure with an vector inside it in coherence using PofWriter?

    How can we serialize a c++ structure with an vector inside it in coherence using PofWriter?
    Any help is appreciated.
    Thanks.

    The link you gave was the same link that had already been given, and that points to an article about AIR 3.6.
    I’m not sure if AIR 3.9 has changed fundamentally with regard to this problem though, but here’s a work around someone used, to make the subsequent loads seem like a new file:
    https://gist.github.com/sportebois/6969008
    Would it be possible to just keep a reference to the loaded swf, after the first load? Then you can removechild it when you’re not needing it, and addchild it back when you do need it.

  • Multiple boolean values to be used in case structure

    Hi,
    I am trying to implement a case structure with multiple boolean cases and am having trouble with that. What I want to do here is : I have a set of 5 values, each of them being "true" or "false". For each "true" value, I have a certain set of steps to be executed. The "false" of each can be ignored. Ideally, I would like to have a case structure for the 5 "true" cases. I am not sure how to go about wiring these boolean outputs to my case structure. Also am using LabView 6.1.
    Any ideas?
    Thanks,
    Sukanya
    Solved!
    Go to Solution.

    Additional comments regarding code:
    It is a mistake to configure the serial port inside the loop. This is a waste of time and resources. Configure outside, read in the loop, and close outside after the loop is done. The flushing of the buffer would be part of the "configure outside".
    The default values of the controls for the VISA Configure Serial Port VI are such that the termination character for reads is enabled, and the character is set to a linefeed. This means the VISA Read will read until it sees a linefeed or reaches the value wired to its byte count input. Thus, the VISA Bytes at Serial Port isn't really necessary.
    You should not rely on the settings in the LabVIEW option for automatic error handling. You should explicitly handle errors in your code. Thus, you probably want to stop the loop on an error and provide a dialog via the Simple Error Handler.

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How do I use Qt and OpenGL with Visual Studio

    Hi! I mainly want to program in C++ and I want to use Qt and OpenGL with Visual Studio.
    I am currently revising C++ and later on i am going to start reading Qt and OpenGL. I have a background of
    Embedded firmware design(C and Assembly).
    The Visual Studio Version I have is 2013 ultimate. How do I use Qt and OpenGL with Visual Studio?
    Thanks
    Alexandros

    Hi ClassicalGuitar,
    The forum supports VS setup and installation. And your issue is not about the forum. I will move the thread to off-topic forum. Thanks for your understanding.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How do i use my mac book with my HP 6510 e all in one series printer

    how do i use my mac book with HP photosmart 6510 e all in one series

    Hello Marilynatsea,
    Thanks for using Apple Support Communities.
    To learn more about printing in OS X on your Mac, and how to add a printer, take a look at the article linked to below.
    Mac Basics: Printing in OS X - Apple Support
    Cheers,
    Alex H.

  • How do I use my gigaware webcam with my mac?

    How do I use my gigaware webcam with my mac? I just bought this webcam on amazon http://www.amazon.com/gp/product/B00IJE0ISS/ref=oh_aui_detailpage_o07_s00?ie=UTF 8&psc=1 and I want to use it with my mac. Is there an adapter or any software to make it compatible? Thanks.

    Your amazon link states, in part, that this webcam is:
    Compatible with Microsoft Windows 7,Vista, XP, 2000
    Use a Mac OS X Compatible Webcam like one of those shown in the linked article instead.
    For best compatibility and security, also update your OS X Mavericks (10.9.2) to the current OS X version by restarting Mac and then downloading and installing OS X Mavericks 10.9.4 Update (Combo).

  • How do I use a foot pedal with my mac?

    how do I use a foot pedal with my mac to use on YouTube?

    Can you be more specific? What kind of foot pedal? What is the foot pedal used for?

  • How do i use a new computer with my ipod?

    how do i use a new computer with my ipod?

    See this apple support communities user tip…
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • How do I use cell number associated with iPad 2 3G

    How do I use cell number associated with iPad 2 3G

    For Messages you can can use your email address, the iPad doesn't have a phone number that you can use.

  • How do i use 2 ipod touches with 1 itunes account?

    how do i use 2 ipod touches with 1 itunes account?  can they share apps and music etc. I'm not very good at any tech so advise would be much appreciated.

    Yes. You can sync an unlimited number of iDvies that you control to one iTunes library/account. If using the same iTunes library on the same comutr just make sure that yu go to the ap. music and other pane for the iPod in iTunes and select sycn selected items. Not the the whole library.  That way each iPod can have it own contents.

  • How do I use a regular printer with my iPhone?

    How do I use a regular printer with my iPhone?

    you can't unless it's an AirPrint enabled printer or you purchase a 3rd party app like printopia.

  • How do I use a bluetooth headset with garageband?

    How do I use a bluetooth headset with garageband? I can't get it to work after many tries.

    I can pair the headphones with the computer but the sound from GB is distorted and muffled. I can barely hear it. The set works with iTunes, but not with GarageBand.

  • How do i use my Platronix bluetooth with iPhone 4 to listen to music.

    How do i use my Platronix bluetooth with iPhone4 to listen to music.
    Its a mono bluetooth paired with the phone.
    I dont want to buy a new stereo headset but can i use this same one.

    One way is to sync the contacts from the old iPhone to iCloud. Then when you turn on the new phone and set it up for iCloud and turn on the Contacts in Settings >iCloud, they will come to the new phone. http://www.apple.com/icloud/setup/

Maybe you are looking for