Is there an easy way to convert a long string into an array?

I can convert a long string into a 1-d array by parsing and using build array, but I would like to know if there is a function to make this easier.
For example:
from/   aaaaaaaabbbbbbbbccccccccdddddddd         (string of ascii)
to/       an array that is 1-d with each element having eight characters
          aaaaaaaa
          bbbbbbbb
          cccccccc
          dddddddd
Thank you.
Solved!
Go to Solution.

Try something like this:
(If you can guarantee that the string length is an integer multiple of 8, you an drop the two triangular modes in the upper left. )
Message Edited by altenbach on 03-14-2010 06:40 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ChopString.png ‏9 KB

Similar Messages

  • Is there an easy way to convert from a String with a comma, ie. 1,000.00 to

    Is there an easy way to convert from a String with a comma, ie. 1,000.00 to a float or a double?
    thanks,
    dosteov

    Like DrClap said: DecimalFormat. However, make sure you understand the Locale things, as explained at http://java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html (which refers to NumberFormat as well) and use them explicitly. Like
    public class FormatTest
      public static void main(String args[])
        try
          // see NumberFormat.getInstance()
          DecimalFormat fmt = new DecimalFormat();
          Number num = fmt.parse("1,000.01");
          System.out.println(num.doubleValue());
        catch(ParseException pe)
          System.out.println(pe);
    }most likely seems OK on your system, but may print "1.0" (or even fail) on some non-English platforms!
    When performing calculations, also see http://developer.java.sun.com/developer/JDCTechTips/2001/tt0807.html
    a.

  • Is there an easy way to make a long chapter into a book with many chapters?

    I have a long, book length text file (50 chapters). It's one file in one ID chapter. I would like to make it 50 files in 50 ID chapters in one book (indb). Can that be easily done?
    Thanks

    You can "move the pages" which make one chapter in your ID file in the new documents and then save the new file, similarly you can do it for the 50 chapters and then compile this 50 chapters together in a book.

  • HT204406 after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?

         after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?  thanks.

    thanks for the reply.  guess i'll have to do that.  apple, not really happy with what you've done with this latest update.  have not been able to enjoy my music in my car since the update.  most of us dont mind changes that progress timely, but this was much more than just a progression.  this was a complete change.  and not a good one, at all.  thanks to the two people that replied.  appreciate it.

  • Is there an easy way to convert original images to b&w ?

    I have a canon 5d mark II and when I decide to shoot b&w pics, this is what i do : I set my camera to b&w and shoot raw+jpeg. raw files come out in color all the time but jpegs show up in b&w when i import them . I decided to do so as it is very time consuming to convert the original images to b&w one by one.
    Is there an easy way to do it?? Any suggestions? 

    Little known hint well worth knowing:
    If you use the menu selection "Photos→Add Adjustment" or "Photos→Add Adjustment Preset", the operation is done to all selected images.
    In addition to what Frank says, you could also apply a B&W Adjustment Preset when the files are imported.  These adjustments are like any others -- they can be toggled on and off, removed, and adjusted with the settings in the Bricks used.
    For grayscale, it is well worth the time exploring the included Presets and the slider controls.  Afaik, sophisticated grayscale photographers optimize their images in color prior to converting to grayscale.
    JPG is 8-bit and lossy.  RAW is (up to) 16-bit and unconverted (no loss of data, but "lossless" isn't quite right).  If the JPG conversion and quality suffices, there is little reason to shoot RAW+JPEG.
    In essence, you can use the in-camera-created grayscale JPGs, with their fixed and baked-in conversion settings, or you can use Aperture's broad (and time-consuming) grayscale controls.  If you do the latter, and settle on a conversion that works for your camera and subject(s), save it as an Adjustment Preset and use it.

  • Is there an easy way to convert and import MTS files from a external hardrive so that I can edit them in FCP?

    I am trying to convert game footage that is in MTS format to something that I can edit into a quick highlights video. I have final cut express and the standard IMovie '09. looking for easiest solution, everything seems to involve using one application to convert to Quicktime and then dropping file into Iphoto etc. is there an easy way?

    I'm not completely sure that MPEG Streamclip can convert AVCHD footage (.mts files).  If MPEG Streamclip doesn't do the job, then get a copy of Clipwrap, which was designed for transcoding .mts files to QuickTime/Apple Intermediate Codec (that's the format/codec you need to convert the .mts files to for use in FCE).

  • Is there an easier way to convert bytes into bit(boolean) arrays?

    I am currently using this method to convert bytes into bit arrays:
    /*convert byte to int such that it is between 0-255 this is the bytes[] array
                        if ((bytes/128)==1)
                             bit[c+0]=true;
                        else
                             bit[c+0]=false;
                        if ((bytes[i]-bitInt[c+0]*128)/64==1)
                             bit[c+1]=true;
                        else
                             bit[c+1]= false;
                        if ((bytes[i]-bitInt[c+0]*128-bitInt[c+1]*64)/32==1)
                             bit[c+2]=true;
                        else
                             bit[c+2]= false;
                        if ((bytes[i]-bitInt[c+0]*128-bitInt[c+1]*64-bitInt[c+2]*32)/16==1)
                             bit[c+3]=true;
                        else
                             bit[c+3]= false;
                        if ((bytes[i]-bitInt[c+0]*128-bitInt[c+1]*64-bitInt[c+2]*32-bitInt[c+3]*16)/8==1)
                             bit[c+4]=true;
                        else
                             bit[c+4]= false;
                        if ((bytes[i]-bitInt[c+0]*128-bitInt[c+1]*64-bitInt[c+2]*32-bitInt[c+3]*16-bitInt[c+4]*8)/4==1)
                             bit[c+5]=true;
                        else
                             bit[c+5]= false;
                        if ((bytes[i]-bitInt[c+0]*128-bitInt[c+1]*64-bitInt[c+2]*32-bitInt[c+3]*16-bitInt[c+4]*8-bitInt[c+5]*4)/2==1)
                             bit[c+6]=true;
                        else
                             bit[c+6]= false;
                        if ((bytes[i]-bitInt[c+0]*128-bitInt[c+1]*64-bitInt[c+2]*32-bitInt[c+3]*16-bitInt[c+4]*8-bitInt[c+5]*4-bitInt[c+6]*2)==1)
                             bit[c+7]=true;
                        else
                             bit[c+7]= false;

    You can loop through and use a bitwise operator instead. Here is an example without the loop.
    byte b = 6 ;
    if( b & Math.pow( 2, 0 ) == Math.pow( 2, 0 ) ) ;
    // the 2^0 bit is on
    if( b & Math.pow( 2, 1 ) == Math.pow( 2, 1 ) ) ;
    // the 2^1 bit is onetc...
    You should get something like 110 when you're done.
    If you're wonder what & does (no, its not a boolean &&), it takes the bits in the two numbers you give it and returns a number with all the bits on that are on for each of them.
    For example:
    10011011 &
    11001101 =
    10001001
    So if we take
    110 (6) &
    010 (2^1, or 2) =
    010 (2 again)
    Which means that the number (6) has the 2^1 bit on.

  • Is there an easy way to create or import tables into muse

    I'm trying to create a website that used tables for things like league tables and results, but I need an easy way of placing them into muse.
    I've had a go at creating tables in dreamweaver and importing the resulting html and i've created tables in Indesign and imported them as jpegs, but this obviously then does not allow me to edit on the fly.
    Can anybody help.

    DAndrews1969 wrote:
    well I've since found out that CS5.5 exports pages from indesign to html, but the link I was reading about CS6 was as follows:
    http://www.adobe.com/products/indesign/features.html
    I tried exporting a table from 5.5 but it doesn't seem to recognise the specific column spaces I have set up, hopefully 6 will have improved on this.
    We hope so. From my experience with indesign cs5.5. The export to HTML feature does not maintain the layout of an indesign document. You will require a developer with knowledge of HTML to style accordingingly in DW. I don't think this is an intended workflow by Adobe. Until then I dont think Muse or Indesign will export to HTML while maintaining the integrity of the layout design including adaptive fluid layout support. The closest the Adobe team have been able to do is to export to epub format.
    My observation, Adobe should have given print designers option of exporting indesign files to Muse(With support for fluid/adaptive layout just as the export to epub format is supported). That way the fear of killing another tool in the Adobe bouquet won't arise. Something like 'Export to Muse' in Indesign cs6 would have been the killer. Why? Web design trend is converging with print design metaphor. I think Adobe should be leading that trend now. Tomorrow might be too crowded.

  • Is there an easier way to convert files from Windows Media Player to iTunes

    I have many gb's of music in my Windows Media Player...now that I have an ipod I want to move the music over. Do I really have to do this one file at a time or is there away to move over whole albums at once? Is there a way to transfer the entire library at once? Do I have to reload ALL of those CD's? PLEASE HELP !!!!

    Maybe you can help me out too. I have copied over 250 gigs of music in WAV loss less files to windows media player. On media player I see the artist, album etc. However, when I add the file, either as the song or whole album only the track number and song title copy to the itunes. How do I get all the other information like genre, album title, artist. If I convert to applelossless I still do not get anything and when I search AppleSTore for album art nothing happens. Please help.

  • I have lots of beta monkey drum loops in WAV format, is there an easy way to convert format for garageband use?

    to convert all these files for garageband use (apple loops)

    You will have to convert them to proper Apple Loops - add tags for key and tempo, category.
    One way to do this would be to use GarageBand to add the wav files to the Loop Library one by one:
    Find out the tempo and the key (if applicable) of one of your loops.
    Set the key and tempo for your project.
    Import a loop to a real instrument track and name the track, select the loop and use the command "Edit > Add to loop library". Set all the tags correctly, so the loopp will be properly indexed.
    There used to be a SoundTrack Loop Utility, but I am not sure if it is still available somewhere. My old links don't work anymore.
    Regards
    Léonie

  • Is there an easier way to load songs and albums into itunes library?

    I have MP3 files on my computer, is it possible to load songs to my library from the file location itself, rather than opening itunes, then adding it to the library by directing itunes to the folder?

    Easier? No idea how File -> Add folder to library could be considered in any way "more difficult" than any of the following but...
    Double click the songs.
    Drag them to the Automatically add to iTunes folder inside the iTunes media folder.
    Drag the top level folder or the entire drive to the iTunes icon.
    If iTunes is open, drag the drive, top level folder, lower level folder or file(s) to the library icon in iTunes.

  • Is there an easy way to import an addressbook file into addressbook server?

    Hi,
    I have a fairly complex addressbook with around 4000 contacts and many groups.
    What is the best way to import this in address book server?
    If I drag the users and then the groups I end up with many duplicates.
    Tks very much

    Hello, I am also working with a fairly complex addressbook with around 4000 contacts and many groups; I'm migrating from (old) Outlook 2003 and have made some progress but am not finished.  I exported my contacts to (very old) Excel 2000 and cleaned up the info there.  Then I opened the spreadsheet with Open Office and saved it in CSV format.  Then I imported/mapped that CSV file into Apple contacts successfully; however, I have to fix some long entries in the Notes field that were cut off, and I still have to figure out how to do Groups (was Categories in Outlook).  Due to limitations of Outlook 2003, fixing the cut-off Notes field entries will be manual/tedious; however, I'm hoping to figure out, or hear of, a smart way to do Groups.  Regards, -Michael

  • Is there an easy way to get my podcasts back into regular playlists?

    I have an iPod Touch 4th Gen. One of the main things I use it for is to listen to podcasts in my car during my daily commute. I listen to a number of different podcasts, which I manage through iTunes. I use Smart Playlists to store the podcasts, and sync these to my iPod. Since my upgrade to iOS 8, this approach no longer works.
    The Smart Playlists still exist, and still show as having contents in iTunes. However, they only show up on my iPod within the Podcasts app. It seems that Apple's new approach to managing podcasts means that they will no longer show up in normal playlists. I can get to them through the Podcasts app from Apple, and I have read various articles touting competing podcast apps as being even better. However, I don't want to mess with an app while I'm driving, for obvious reasons. My car (2010 Honda Civic) has fairly basic iPod integration built in, but it allows me to navigate through playlists by using the radio controls. The smart playlists meant to hold podcasts still appear in my car, but when I select any of them, it displays "1" (just "1"), and crashes.
    I know Apple probably has bigger problems than this right now, but I would like to see my basic functionality restored. Accessing podcasts through the app is fine, but it doesn't seem necessary to have removed access through other ways, like through regular playlists.
    If anyone has any ideas, I'd appreciate it. Thanks!

    I don't think it's possible anymore. I'm mildly surprised you were able to keep podcasts in regular playlists this long - I thought this option disappeared back with iOS7.
    I do share your pain. I've finally grown used to having the podcasts in a separate app, but I still don't like it.

  • Is there an easy way to import entourage email groups into address book?

    I don't want to import the contacts individually, but as group. Any assistance would be appreciated. Entourage 2004 and address book is 4.1

    First go to the avid site and download the avid codecs for the mac. Not sure if they'll have compatible codecs for such an old version, but worth a shot. then do a test export from the avid. It would probably be smart to convert the clips using compressor to match your fcp sequence settings. Not sure if the timecode would come across. You could note the timecode of the first frame on the avid and then modify the clip once imported into fcp. Test your workflow before doing a lot of work.
    You might also check if automatic duck's got something that would work.
    www.automaticduck.com
    Wes Plate from AD posts occasionally here and is very helpful.
    Message was edited by: Michael Grenadier

  • Is there as easy way of batch converting RGB files to CMYK in OS Lion?

    Is there as easy way of batch converting RGB files to CMYK in OS Lion?
    I was using a photoshop droplet on my desktop but this no longer works due to the fact it requires rosetta support.
    Thx P

    From another forum after googling:
    Your computer came with everything you need, because ColorSync can do that and Apple provided AppleScripts for it. Go to your Applications folder and look for the AppleScript folder. Double click on the 'Example Scripts' alias and then open the ColorSync scripts. Drag and drop your images on the the 'Match to CMYK' script.
    You can open AppleScript Editor from Launchpad (it's in Utilities). Go to Help to Open Example Scripts Folder. In the ColorSync folder is a Match application. Double click to make it run.
    Now you know what it does you may need to change it for batch conversion.
    Go to AppleScript Editor and open what you've just found. And I'm sorry that's as far as my knowledge goes, hope some one can fill in the gaps.
    Or you may just want to look at something like Graphic Converter?
    Regards,
    Colin R.

Maybe you are looking for

  • Syncing ipod touch with more than one computer

    I have a home computer and an office computer. My home computer has all my music, podcasts, etc. and when I sync my Ipod Touch with it, everything gets on the Ipod Touch. However when I then want to sync my Ipod Touch with my office computer, mainly

  • Space utilization of Oracle XDB

    hi, There is a significant difference in the size of .dbf files for USERS tablespace & size of individual tables. Total size of .dbf files is 30 GB approx. Total Table size = 2853 MB 1. Is there a way to find how has Oracle allocated the remaining sp

  • Transfer of legacy open P.O with attachments to SRM

    Hello SRM Folks, Can some one let me know How we can transfer Open P.O or closed P.O from Legacy system to SRM with  Attachments directly.. Need your inputs.. Thanks in advance

  • TABLES parameter obsolete

    Dear all, I noticed that in SAP ECC 6.0 the tables parameter is obsolete (warning about it). After trying some things out and reading on the forum, i found that u can pass an internal table as a changing parameter for example, but the parameter has t

  • HT201260 how can upgrade my mac os 10.5.8 to mountain lion in india

    well i really want to upgrade my current os 10.5.8 to mountain lion, i have been doing some reading over the net and found out that fisrt i need to upgrade to snow leopard and than to lion. but how can i upgrade to snow leopard ? i have been searchin