Dealing With Non Uniform Array Sizes

Would it be possible to store data such as
1 2 3 4 5 6
0 2 4
3 1 4 1 5 9 2 6 5 3 5 8 9
Where each row is not nessicarly the same length. I need to later call a specific row by row number and plot the 1D array. I have figured out arrays wont deal with the non uniform length and will instead fill in the extra elements so they all match in length. Is there any way around this?
Thanks

It is generally better to use Repalce Array Subset or autoindexing to build an array. Insert into Array may cause memory allocation problems. Here are two mnodifications to your VI which show both methods. If you need to see the results as you go, the Replace Array Subset is best. If you do not need the data until the for loop completes, autoindexing is the preferred choice.
Note that you may need to initialize your shift register. Run the VI multiple times and watch the results.
Lynn
Attachments:
Variable Length Arrays.2.vi ‏15 KB

Similar Messages

  • Dealing with non-square pixels from video capture (CS3)

    Hi all,
    This is the problem I have : I watch a video on my PC using any utility such as, for example, CyberLink's PowerDVD. I pause the movie to capture a frame to the Clipboard, then I paste it into PS CS3 via a newly created document.
    Because the movie was shot and recorded on the DVD in widescreen format, therefore using non-square pixels (wider than they are tall), the still image in PS appears "shrunk" horizontally. I then go to Image|Pixel Aspect Ratio and set the ratio to, say, "D1/DV PAL Widescreen (1.42)", as I am in PAL-land. The still image now looks fine, and I can save it, for example in TIFF format ; it will retain its "non-square pixel" attribute, with the black bands on top and at the bottom.
    However, what I utimately want to do is use that still image on the Web, so I need to save it as a JPEG image, and this is where the problem happens : the JPEG conversion reverts those pixels to square ones, whether I use the "Save for Web and Devices..." option, or just the "Save As..." one.
    How can I turn my very heavy TIFF into a much leaner JPEG, while retaining the non-square pixels that give the image its correct proportions ? Is there a way around this problem ?
    I'm not used to dealing with non-square pixel images, so any help and tip will be greatly appreciated. Many thaks in advance.
    Dominic.

    As Zeno said, you can simply copy&paste. Also, there is always an equivalent square pixel format for each anamorphic format that can fully accommodate the image, which would be 1024x576 for PAL widescreen. For more info on PAR conversions, I recomemnd you do some reading in the online help files for After Effects or Premiere Pro.
    Mylenium

  • Dealing with non-database elements!!

    hi all, i knew that i have to deal with non-database elements from javascript code and not from SQL code.. but i need to do some processing from SQL code and then update non-database element, how could i do this??

    You should use <?if:element = ''?> or <?if:element != ''?>
    This should work also:
    <?if:text(element)?> or <?if:not(text(element))?>
    The condition is always true (false) when either the element is empty or does not
    exist. Let me know, if you need to differentiate between both (probably using name() instead of text will work in this case).
    If a pagebreak is inside the if statement than it is only shown when the condition is satisfied.
    Hope that helps,
    Klaus

  • Minor screen drawing anomaly with non-standard page sizes in outline mode.

    When I use a page size of 5.5 x 8.5, and the window is larger than the page, the right edge of the page is drawn incorrectly. Instead of a small shadow at the right edge, there are black blotches. As far as I can tell, this only occurs in outline mode, only on the first page, only in sizes other than 8.5 x 11.
    Not a big deal, clearly, but someone ought to log it. Some memory somewhere is not getting written correction. This is easily reproducible.
    I'll post a screen shot somewhere if anyone wants to pursue this.

    It is fun to explore this question and I have tried to reproduce the problem, but my Pages09 behaves with "all" different page setups like A4, US Letter, half US Letter , US Legal. It would be nice to see the screen shots if it isn't to much trouble.
    Question - have updated iWorks with the update that came a while ago??

  • How do I deal with "non match"pictures?

    I have a folder that is supposed to keep pictures of my wife only. However these pictures have been joined by others that bear tags for other folders.
    In the left top corner of these "trespassing" pictures there is a circle with a line through it titled "non match"
    How can I stop this happening please?
    Cliff

    Cliffie,
    Make sure that youve deselected Options > Show results that do not match in the Find bar (the third line from the top of the Organizer screen). If that doesnt work, then read this thread:
    John Rolfe Ellis, "Exact match" #1, 30 Apr 2008 11:55 pm

  • Problem with non-supported paper sizes

    Hi,
    I would like to know what happens when paper size suzh as A3 is given to printer for printing, if that A3 paper size is not supported by printer. How it is handled.
    Will it print in A4 paper with A3 scaling.
    Please help,
    Thanks in advance.

    It depends on the printer model and the driver.  Typically if a printer does not support A3 format then A3 will not be a choice in the paper settings for the driver.
    Some printers do have scaling options that allow automatic scaling from one paper size to another when printing.
    Regards,
    Bob Headrick, Microsoft MVP Printing/Imaging
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How to deal with non-continuous shapes and graphic styles

    I am not sure how to frame this question so I will try to describe the problem.
    Imagine I have two shapes. One is a hollowed out circle (like a doughnut chart). The second is a smaller filled in circle. The smaller filled in circle is then poitioned inside the hoolowed out one, so you have like a target but with no "middle" band. What I would like to do is apply a graphic style to the COMBINED shape. The problem is that if I select both shapes and apply the style, each shape will have its own style, whereas what I want is for the style to be distributed over the two shapes as if they were one. And if I use the shape builder tool, when I join the two shapes, from the outer hollowed out circle to the inner filled in circle, I fill in the shape for the "middle band" whereas I want that middle band to be empty.
    You can probably tell I don't know Illustrator and come from Photoshop. In PS, I would simply select my two shapes and apply a style. Since my selection forms a shape that ignores the middle band, the style applies evenly to the whole selection. Can I do something similar in Ilustrator? In reality my network of shapes is more complex that the example above and I do need to keep it a vector.
    Thank you for your suggestions.
    Chris

    There are really two types of Graphic Styles - Object level styles and Group level styles. There is no way to tell which style is which. So if you have an Object level Style and try to apply it to a group of objects or often a compound shape, you get each individual object having the style. If you have a Group level style and try to apply it to only an object, you often get nothing applied.
    It perhaps sounds like you have an Object level style and are trying to apply it to a group.
    There's no way to convert an Object level style to a Group level style or vice versa. The best (and pretty much only) way I've found to get around this is to apply the style to teh correct level then make a note of all the style settings, select the other level and recreate the style for that level.
    Whether or not a style applies correctly has a great deal to do with specific aspects of the style in addition to what level the style was generated from. This is a frustrating aspect of Graphic Styles.

  • Replacing Xserve, how to deal with RAID5+0 array

    We're finally looking at replacing our 8+ year old Xserve, which has served us faithfully, with a new Nehalem model. The question is what to do about the two XRAID arrays that we have attached via fibrechannel. Both are fully stocked with 14 disks apiece, configured as RAID5 but then combined into a single logical drive via software RAID0.
    The question is - if we replace the old XServe with a new one, will we have to completely rebuild the RAID5+0? If so, can this be done without data loss?
    We do have the means to migrate all the data off and then back on after reconstruction but that is, of course, a lengthy and thus unappealing option.
    Any help will be most appreciated.
    Thanks,
    Cary Talbot
    Vicksburg, MS

    Hi Tony -
    Many thanks for the reply but unfortunately neither thread you referenced addressed the issue at hand.
    What I've got is two XRAID boxes with 14 disks each. All four of the RAID arrays (2 per box of course) are RAID5. However, rather than having 4 separate logical volumes, we combined the RAID5 arrays together with a software RAID0 on the Xserve host. I understand that switching out the Xserve box shouldn't have any effect on the data stored in the XRAID disks themselves but the question becomes can we simply reconstruct the software RAID0 on the new XServe and not loose all the data stored on the four RAID5 arrays? Has anyone tried this?
    Thanks for any advice/tips/experiences anyone can offer.
    Cary

  • [SOLVED]How do I deal with non-unicode filenames inside archives?

    I often get archives from Japanese Windows users with file names encoded in one of the myriad of Japanese character sets. Windows is pretty good about converting the filename to unicode before passing it on to any program or computer that expects it. However, it won't touch the filenames of things inside the archive for obvious reasons. Any way to make, say, unzip or 7z convert the filenames to unicode as they're extracted? At the moment I run Windows in Virtualbox and connect back to a shared folder and let Windows do the unzipping.
    Last edited by DJQuiteFriendly (2011-09-22 22:13:26)

    I don't know if there's any advancement WRT this, but there's a work-around here (under "UnZip Locale Issues" ) using convmv.

  • ALV Grid bug when dealing with non-ASCII character

    Dear all,
    I have a requirement to display user's remarks on ALV.  The data element of the remarks column is TEXT200.  I know that each column in an ALV Grid can display at most 128 characters.  Since my SAP is an Unicode system, I expect that each column in my ALV Grid can display 128 Chinese characters, too.  However, the ALV Grid only display 42 Chinese characters at most.  Is this a bug in ALV Grid?  How can I fix it?
    I did a small experiment.  The results are listed below.  My version is Net Weaver 7.01.  The results show that the bug does not exist in ALV List.  However, my user prefers ALV Grid, which is more beautiful and elegant.
    Type of ALV
    Max number of
    ASCII character
    in an ALV column
    Max number of
    non-ASCII character
    in an ALV column
    REUSE_ALV_GRID_DISPLAY
    128
    42 Chinese characters
    CL_SALV_TABLE
    128
    42 Chinese characters
    CL_GUI_ALV_GRID
    128
    42 Chinese characters
    REUSE_ALV_LIST_DISPLAY
    132
    132 Chinese characters
    If you encounter the bug, please post your solution.  Thanks a lot. 

    It looks like limitation of ALV grid cell, which can contain up to 128 bytes in SAP gui.
    Your unicode characters are probably 3 bytes each.
    Check OSS Note 910300 for more detailed info.
    EDIT: Note 1401711 seems to be a correction for your issue It allows to use 128 characters (even if they take more than 128 bytes).

  • QT slideshow with non-uniform transition times?

    I am creating a QT file which is composed of only still images, using "Import Image Sequence…". But I need the transition times from one slide to the next to be set individually, so one might stay for 10 seconds, another for 1. Is there any way to do this?
    I have a rough reference movie which shows the images, at low resolution. The only way I have found is to select the duration of each image in the rough movie, copy the corresponding image from the high res movie, and "Add to Selection & Scale…".
    Assuming this is the only way, what is the best way to compress the resultant movie to get good compression? I have Sorenson Squeeze.

    You've figured out how to do it: import the images into an image sequence, then import them a frame at a time, add scaled, to your final timeline, then compress the whole thing.
    For compression, I can't tell you what codec to use. But the trick is that you should NOT specify a frame rate for the export, because you want the frame rate to be 0 FPS while the images are displaying.
    Of course the problem with this method is that you will end up with another video track for each slide. To avoid that, use another method:
    Sources: Movie A is an audio track (or whatever sets your final length). Movie B is an image sequence imported at any frame rate. Movie C is a new movie which you are building into your final sequence.
    a) Select the section of Movie A for the next photo
    b) Copy, then create a new movie (we'll call it Movie D)
    c) Paste the selection into Movie D and Select All
    d) Select a photo from Movie B and copy
    e) Add Scaled to Movie D
    f) Select All of Movie D and copy
    g) Paste into the end of Movie C
    h) Close Movie D without saving
    i) IF NOT (last photo added) THEN (a)
    j) Save movie C as a reference movie, then compress it.
    Doing that, you will end up building a movie one photo at a time, and it will end up with only one video track. It's less complicated than it looks.
    --Dave Althoff, Jr.

  • Help to deal with the =Long text(size in the level of Mega ) = in JTextArea

    for general java application, memery is up to a limit memory size.
    And long plain text in JTextArea will cause "java.lang.OutOfMemoryError"
    May be I can use document in JTextArea. But it will be complicate,
    Is there any more easy one to solve this problem?
    Thanks in advance!

    Or, you could try loading the text in segments instead of all of it into memory at once. This is a more user and computer friendly way since then you aren't hogging system resources.

  • Deal with 250 GB of Mailbox size

    Folks, any possible and good options to deal with 250GB of mailbox size. As looking for BEST method to Archive the same from the server side but as was got to know with retention policy and tags this much of GB mailbox won;t work or might be having an
    issue or mailbox won;t archive . As we have third party application in place called mimecast through whcih we can use the archiving feature from that as well but that will be slow while doing the online search. So suggestion pls .. Thanks   

    Hi,
    To reduce the size of the Exchange mailbox, I recommend you split your large .pst file into serveral smaller .pst files. You can use the AutoArchive feature in Outlook to achieve this.
    With a large mailbox, you may face some performance issues. I recommend you export mailbox to PST regularly.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Belinda Ma
    TechNet Community Support

  • Data type of preprend array size in Flatten To String block

    Hi 
    The data type of the preprend array size in Flatten To String block is given as I32. Is it somehow possible to reduce the data type to I8, since the width and height of my array won't exceed 255 ?. I also need to do the same in Unflatten To String as well. 
    Best regards
    Oesen

    Oesen wrote:
    Hi 
    The data type of the preprend array size in Flatten To String block is given as I32. Is it somehow possible to reduce the data type to I8, since the width and height of my array won't exceed 255 ?. I also need to do the same in Unflatten To String as well. 
    The short answer is no.  This is because the index is an I32.  NI likes to keep integers as an I32 whenever possible for reasons like this.
    Since you are dealing with a 2D array (width and height), it will actually use 2 I32s before the actual data.
    As Ravens stated, you could put in your own array sizes before the array in the string.  But it is worth saving 6 bytes?  Not likely.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Problem Array size in Windows 7

    Hello All,
    I have a VI that by opening in a new Laptop, it show some Arrays controls misfits (with a diferent array size), however i can´t put it right.
    But when i make a EXE of this VI and if i run the EXE in another Computer, the front panel appears aligned and Ok.
    I´m using the labview 2009 Sp1 with Windows 7, this vi have been created in another laptop in a older version and always with the Windows Xp, and whenever i was updated the version of labview it always appeared correct on those Laptop, until now when i changed the laptop and the Operating System to Win7.
    Any help/advice is much apreciated
    Thanks,
    Solved!
    Go to Solution.

    Make sure you use the same font settings for all the controls that you want to be aligned. You might have some controls set to a specific font name and others left to the default Application font. LabVIEW substitutes the Application font for whatever the system default font is on a particular computer.
    Different fonts are default and available on different Windows versions so you can certainly get into trouble here if you mix font families and names in the same UI.
    If you request a specific font name and it is not available on a certain machine Windows will substitute it with a different font that it thinks looks similar but the heuristics of that substitution can sometimes  go really way south of the equator and simply give crazy results.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for