How do I copy the string portion of an enum into the string portion of a cluster?

I want to do this for the an entire array of clusters.  I'm trying to use a for loop.  Can't figure out how to parse the string portion of the enum into the string portion of the cluster.
Alternatively, I'd be happy if I could figure out some way to tie the enum to the array of clusters, but I figure that gets problematic.
DH
Solved!
Go to Solution.

Dark Hollow wrote:
OK, let's say that the enumerated type has N elements.  I want to initialize an N element array of strings.  How do I reference each string in the enumerated type to get to each string?
Easy way to do this is to use GetNumericInfo.vi, part of the Variant library, found in vi.lib\utility\VariantDataType\GetNumericInfo.vi.  Wire your enumeration to the Variant input; one of the outputs is an array of the strings in the enumerated type.
The more complicated way is a for loop, in which you typecast the iterator terminal value to the enumerated type, then use Format Value.  You can get the maximum value of the enumeration by casting 0 to the enumerated type, then decrementing; cast that back to a numeric and add one to get the right value to wire to the N terminal.
EDIT: just thought I'd add, since RavensFan's reply popped up while I was writing mine - I don't like the Strings[] approach because it doesn't work on RT targets, and I lost a lot of time once due to this trying to figure out why my code wouldn't run properly on an RT system but worked great on my development computer.

Similar Messages

  • How can i copy my itunes library to another computer in the same household?

    How can I copy my itunes library to another computer in the same houehold?

    If you just want to share the iTunes library with other computers in your house: http://support.apple.com/kb/ht3819
    If you want to move the iTunes library:
    For Windows: http://support.apple.com/kb/ht1364
    For Mac: http://support.apple.com/kb/ht1449

  • How can i copy a picture that has been installed with the flash player

    how can i copy a picture that has been installed using the flash player

    You can't. You can take a screen cap of it, but the container doesn't allow access to the individual images used in a SWF or FLV.

  • How do I copy and paste to my mac and undo the change attributes like I do withmy iPad. I cannot shake my mac?

    How do I copy and paste to my mac and undo the change attributes. On my ipad I can shake it and undo the change attributes but not sure how to do this on the imac? Example Excel to email and undo changes?

    Thanks for the information....It did not work,....
    I am copying information from Excel and posting it into Lotus
    It works fine in word and other application, just not in Lotus notes...
    Any other ideas?

  • How can I copy my music files to my iPAD. The CDs are currently stored in folders on my PC. Note: Synching via iCLOUD won't work because I have VISTA OS and I need at least Windows 7 or 8.

    How can I copy my music files to my iPAD. The CDs are currently stored in folders on my PC. Note: Synching via iCLOUD won't work because I have VISTA OS and I need at least Windows 7 or 8.

    Hi ladextr,
    Thanks for using Apple Support Communities.  To sync your music to your iPad, first put your music in iTunes as described here:
    Adding music and other content to iTunes
    http://support.apple.com/kb/ht1473
    Adding content on your computer to iTunes
    iTunes helps you add digital audio and video files on your computer directly to your iTunes library. You can add audio files that are in AAC, MP3, WAV, AIFF, Apple Lossless, or Audible.com (.aa) format. If you have unprotected WMA content, iTunes for Windows can convert these files to one of these formats. You can also add video content in QuickTime or MPEG-4 format to iTunes. To learn how to add these files to iTunes follow the steps below.
    Open iTunes
    From the File menu, choose one of the following choices:
    MacAdd to Library
    Windows
    Add File to Library
    Add Folder to Library
    Navigate to and select the file or folder that you want to add
    If iTunes is set to "Copy files to the iTunes Music folder when adding to library," iTunes will copy all content that is added to the iTunes library to the iTunes Music folder. To adjust this setting or change the location of this folder, go to the Advanced tab in iTunes Preferences.
    Once that's done, you can sync the music to your iPad by following this article:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/ph12313
    Cheers,
    - Ari

  • My HDD crashed in my old PC and I built a new system.  iTunes won't let me sync the music from my ipod back into the new version of iTunes I had to download.  How do I fix?

    My HDD crashed in my old PC and I built a new system.  iTunes won't let me sync the music from my iPod back into the new version of iTunes I had to download.  How do I fix?

    Syncing music via iTunes is only one way: from iTunes to your iPod.  If you need to copy the music from your iPod back to your PC, see this older post from another forum member Zevoneer covering the different ways to do this.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • After writing into serial port, the same message gets bounced back into the Inqueue also. If anyone know how to avoid this, please rpely.

    Hi,
    After writing into serial port, the same message gets bounced back into the Inqueue also. If anyone know how to avoid this, please reply.
    Thanks,
    Ganesh

    If you disconnect the cable going to the serial device, do you still get the echo? If so you have something going on in the port setup. If disconnecting the cable stops the echo then the device you're talking to is doing it - which would be my bet. One thing to check is whether this might not be normal operation. I have seen devices that if a command was successful, it simply echo'd back the command string you had sent. Also many serial devices have setting for specifying whether they are to echo commands.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How do I copy a Keynote slide and paste it into a new project?

    Running MacBook Pro OSX 10.9.5
    Keynote v. 6.2.2
    How do I copy a Keynote slide and paste it into a new project?
    jazzpsy

    open the first Keynote
    in the navigator panel, click on the slide to be copied to select
    command C to copy
    open the second Keynote
    in the navigator panel, click the slide before where you want the slide to paste, command V to paste

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?

  • How do i get my Nikon photos from viewNX 2 into the iPhoto library?

    1. How do I get my Nikon photos from ViewNX 2 into the iPhoto Library?
    2.I tried by copying them and moving to the iphoto folder. Now the Iphoto applicationwon't open because it is locked. the help item says to open it with command option keys down to get the iphoto library First aid window. it does not come up.

    How did you add the photos to the iPhoto Library folder?  The way to import photos is to drag them onto the iPhoto icon in the Dock or into the open iPhoto window.  
    it does not come up.
    What does not come up?  What happens when you try to launch iPhoto with those two keys held down?
    Try the following again being sure to hold those keys down before launcing iPhoto and until the window opens:
    Apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How do I put all the songs from a compilation album into the same /album/folder in Itunes v12

    How do I put all the songs from a compilation album into the same /album/folder in Itunes v12 i know in other versions it was via get info but as all of the tunes have the same album title , I am not sure what tio change to achieve this ?

    I don't see your screenshot but I assume you're starting with something like this, i.e., the compilation split into multiple albums:
    If you select all the items that you want to be in a single album, right-click > Get Info you'll see this:
    As you say, in iTunes 12 you don't see a field to enter a distinct Album Artist value.  You can, however, address this by clicking the Add Field button and selecting Album Artist:
    That makes the field available in the metadata dialog so that you can enter the required value:
    You can also show the pre-iTunes 12 version of the dialog by holding the SHIFT key when selecting Get Info - this allows you to enter the Album Artist directly:

  • I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up ever

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

    I have a macbook pro in which i use for church recordings. it has a built in mic so like one hole for headphones and mic. how do i get it to only pick up the sound from the external mic that is coming into the mixer to the laptop. it seems to pick up everything, like for example any little movement i make or even just asking the next person a question will get picked up by the internal mic. is there a way i can mute the internal mic so it can only pick the external mic and not every movement im making like chewing etc

  • Firefox Sync setup says "Incorrect words, try again" after receiving message "Your answer was correct. Please copy and paste the text in this text box into the box below."

    When setting up Firefox Sync, I get all the way to the "Please Confirm You're Not a Robot" screen in the wizard, and enter the captcha values. I then receive in a small scrollable text area the message "Your answer was correct. Please copy and paste the text in this text box into the box below."
    I copy and paste the code, in this case "03AHJ_Vuv1gStVScBWSYWw6M4_KKQ4wzhCDSzKqiCfv57XXGyvHtOk4ixehysQhOTIf-lsL41lc5n-piztjYJSKu6urCeRvETVfpzRDh7OmHCDZiIBZv9Qg4oyrmWDMu6JA7Eh-4C8aZn4" into the only other visible text box, and click the next button, only to receive the message "Incorrect words, try again."
    My only option is to cancel at that point. I have tried this three times, once even starting the entire process over from the start, and it ends up with the same outcome each time.

    When setting up Firefox Sync, I get all the way to the "Please Confirm You're Not a Robot" screen in the wizard, and enter the captcha values. I then receive in a small scrollable text area the message "Your answer was correct. Please copy and paste the text in this text box into the box below."
    I copy and paste the code, in this case "03AHJ_Vuv1gStVScBWSYWw6M4_KKQ4wzhCDSzKqiCfv57XXGyvHtOk4ixehysQhOTIf-lsL41lc5n-piztjYJSKu6urCeRvETVfpzRDh7OmHCDZiIBZv9Qg4oyrmWDMu6JA7Eh-4C8aZn4" into the only other visible text box, and click the next button, only to receive the message "Incorrect words, try again."
    My only option is to cancel at that point. I have tried this three times, once even starting the entire process over from the start, and it ends up with the same outcome each time.

  • While running how do I get my podcast to play one song and move to the next and not skip to the next after a few seconds into the song?

    I recently started running and downloaded the Couch to 5K webcasts, while running how do I get my podcast to play one song in it's entirety and move to the next and not skip to the next after a few seconds into the song?  I beleive it's the motion of the running that is causing it, is there a setting I need to change?

    Hello nowrunning,
    Is the "Shake to Shuffle" option turned on in your iPod's settings?  To check, head to Settings -> Music -> Shake to Shuffle and make sure it is set to Off.
    B-rock

  • 1- How do I animate a layer? and how do I add the clips that I've edited into the whole video?

    I'm super new to this. All I need are some simple instructions to these questions: 1- How do I animate a layer? and how do I add the clips that I've edited into the whole video? I know there's probably something on Adobe's website telling me these things, but I prefer this kind of thing.

    Rick has pointed you to a good set of resources. (I may be biased, since I created those resources.)
    Here is a larger set of resources for learning After Effects:
    http://adobe.ly/AE_basics

Maybe you are looking for

  • Why Payment Guarantee procedure is not appearing in change mode

    Hi All, I am displaying the customer master. The payment guar field is appearing in customer master. But when I go to change mode for the customer master, the payment guar field disappears. Can somebody throw some light on this. Note: Pls donot send

  • Hidden Sort - Order by calculation that is not displayed

    Hi, I want to sort by the absolute value of a column, but do NOT want to display that absolute value. Rod West mentioned a 'hidden sort' in a previous post, but I can't find any way to do it. Is it possible? If it matters, the column in question is a

  • Relation b/w MSEG AFKO

    Hi all, What is the relation b/w MSEG AFKO? please suggest me with sample code. regards, AJ

  • Commit after setRollbackOnly!!!

    Hello everybody, I have an entity bean in my application. In ejbRemove method, when something is wrong, I call setRollbackOnly and then I throw a RemoveException. But weblogic give me a: Exception during commit:: weblogic.transaction.internal.AppSetR

  • Is CS3 better for working with RAW images than Elements 6?

    Hi all, I am trying to find out if it is worth buying CS3 in stead of elements 6. Surprisingly, nobody has been able to tell me what the difference exactly is. The best I got so far was that elements is a trimmed down version of CS3 but what more can