Can I replace several elements of an array within one time? The number of elements are not fixed

Hi all,
I want to replace some elements of a 2D array, but the number of elements are not known beforehand. I dont want to do it with a loop, which may slow down the speed, and the update of elements will not happen simultaneously.  The indexes of elements to be updated are not continuous. I wonder if there is a way to do that efficiently? Do I have to programme it in LabWindows/CVI? Thank you.
Best wishes,
Bo
My blog Let's LabVIEW.

Use the replace elements function. For non-continuous replacements  of of multiple elements you would nee to iterate at least the number of continous pieces.
For example:
1,2,3,4,5,6,7,8,9
Replace elements 1,2,5,6,8
You would need 3 iterations in which you can replace (1,2), (5,6) and (8).
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

Similar Messages

  • Can I replace my power adapter for free within warranty for the hook which is used to coil the cord on the power adapter is broken.

    Can I replace my power adapter for free within warranty for the hook which is used to coil the cord on the power adapter is broken when fall down.

    Hello vanexe,
    Welcome to the HP Consumer Support Community.
    This is a peer-to-peer community for customers to connect and share solutions regarding their HP products. It is not a venue to contact HP directly. If you have additional or direct feedback for HP about their products or services, please use the link below for alternate contacts.
    http://www8.hp.com/us/en/hp-information/summary/ww​-contact-us.html
    If you have other questions and concerns about using the forum, please feel free to send me a private message.
    Thank you.
    Clicking the "Kudos star" to the left is a great way to say thanks!
    When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
    Rules of Participation

  • Get the number of elements in Array

    Hi everyone,
    Could anyone give me idea on how to get the number of elements in an Array (not number of rows) ?
    I tried to find that in both property node and array functions but nothing.
    Thanks,
    -Kun

    You are going to have to provide some proof that the Array Size does not work correctly. Right click on the input to it and select 'Create Indicator'. Run the VI. Go to the front panel and select 'Edit>Make Current Values Default'. Save the VI and attach it to your post.
    You can also check the array size yourself. Right click on the index display of the array and select 'Advanced>Show Last Element'. I will bet you that number shown is equal to Array Size -1.
    p.s. The number of elements in an array is equal to the number of rows in a 1D array. If you define the number of elements as anything else, you are mistaken.
    Message Edited by Dennis Knutson on 04-21-2009 10:40 AM

  • Enable the Number of Elements in the Array

     
    once the Un-Initializing the array(1D or Multi) Placed ,we can not select the Number of element to Enable.
    byproviding the below option we can easily Enable the Elements in any array dimention.

    Already possible by typing a value (usually the default value) once you've set the indices to the size you want to initialize

  • How Do I Print the Number of Elements in An Array

    How do I print: "There are ____ number of elements in the array?"

    If you have a String holding a sentence, and if you split on non-empty sequences of whitespace (if the string has newlines in it, you'd probably need to pass the argument that makes \s match newlines, and for that you would probably need to use java.util.regex.Pattern -- see the docs and try some tests), when you'd get an array of Strings that were the non-whitespace parts of the original String. That makes for a reasonably good definition of the words in the sentence, although you could arguably get into some gray areas (does "isn't" count as one or two words? Does a sequence of numbers or punctuation qualify as a word?). In that case, counting the number of elements in the resulting array of String. using .length, would be a reasonable way to get the number of words in that sentence, yes.
    But rather than asking for confirmation on forums, why don't run some tests?
    import java.io.*;
    public class TestWordCount {
      public static void main(String[] argv) {
        try {
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          String line;
          while((line = in.readLine()) != null) {
            int count = // your code here, to count the words
            System.out.println("I see " + count + " words.");
        } catch (IOException e) {
          e.printStackTrace();
    }Put your word-counting code in there, then run it from the command line. Type in a sentence. See how many words it thinks it found. Does it match with your expectation, or the examples given (hopefully) with your homework assignment?

  • I want to install Google Toolbar for Firefox, but this is availaible only for Firefox 4. Can I replace My Firefox 6 with this older one Firefox 4, please?

    Question
    I want to install Google Toolbar for Firefox, but this is availaible only for Firefox 4. Can I replace My Firefox 6 with this older one Firefox 4, please?

    Which Windows version are you running?
    Try to run the Firefox installer as Administrator (right-click: Run as Administrator) and maybe the Firefox program also just one time.

  • Change Photoshop Elements 11 for windows into Phot now I don't have a windows PC anymore. Can change my windows serial number into a MAC/OS serial number? What do I have to do to get Elements 11(download) for OS an a serial number for Elements 11 for OS ?

    I have Photoshop Elements 11 (full version with Serial Number) for windows; now I don't have a windows PC anymore. Can change my windows serial number into a MAC/OS serial number? What do I have to do to get Elements 11(download) for OS an a serial number for Elements 11 ?

    You can download PSE 11 via the following linked web page:
    PSE 10, 11 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html

  • Ive purchased a black coloured iphone 5s but i dont like the colour, can apple replace my current phone with a white one?j

    Ive purchased a black coloured iphone 5s but i dont like the colour, can apple replace my current phone with a white one?j

    If you purchased your iPhone from Apple within the last 14 days then you can return it to switch it for another color if you wish.
    If you purchased it through your carrier, then you will need to look at their returns policy, but I expect it would be similar.

  • Can I replace my land line with an iPhone and keep the same phone number?  Thanks.

    Hi,  Can I replace my land line with an iPhone and keep the same AT&T phone number?  Thanks.

    Hi
    There are always some wrinkles in this kind of change.  If you have a home security system like ADT they require a land-line for their system to work.  This less of an issue in apartments and condos - it's mostly a "house" issue.
    Before you make the switch (and there may be a switching fee) just make sure you cover all the bases.
    Cheers

  • How to get the number of elements in a tilelist

    I'm writing test cases for a flex application using FlexSelenium and I need to get the number of elements displayed in the tilelist.
    I know that that the tilelist is fed by an array. but i can't access that array from my test case.
    Can anyone tell me how I can get the number of elements in a tilelist on the application? which property of the tilelist can provide that number?

    try tileList.dataProvider.length;

  • In the attached VI I dont understand why data from the inner case structures are not being transmitted to the array.

    In the attached VI I don't understand why data from the inner case structures are not being transmitted to the array.
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    TEMP.vi ‏25 KB

    It took me some time to figure what you are trying to do but I think I have it now.
    The SR is still required.
    What is happening is your "Bundle By Name" is replacing all of the fields of the cluster, not just the value coming out of the case structure. So to maintain the cluster stuff you do in earlier iterations you can either...
    1) Put the "Index array, Bundle by name, and Replace array" inside the case structure and ONLY bundle the value you are setting in that iteration. (as you will see Tim post shortly)
    OR
    2) Move the Index array before the Case, unbundle all of the fields and feed teh case structure and run them across the case so that ALL of your output tunnels come from the coresponding input tunnel EXCEPT for the filed you are trying to set.
    Ben
    Message Edited by Ben on 05-05-2010 01:31 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I be certain the contact list in my iPod touch updates my computer Outlook contact list when I sync and not go the other way? The options in iTunes are not specific enough.

    How can I be certain the contact list in my iPod touch updates my computer Outlook contact list when I sync and not go the other way? The options in iTunes are not specific enough. In other words, I want to replace the information in my computer Outlook contact list with the data from my iPod touch. 

    How is your iPod configured to sync music from your iTunes library?  In other words, what options and configurations do you have enabled from under the iPod's Summary and Music configuration panes in iTunes?
    B-rock

  • How can i find all included pictures in the Online-Library which are not in a album?

    Hi
    I use Adobe Photoshop Elements 13 with (Revel). My question ist how can i find all included pictures in the Online-Library which are not in a album? I would like only to have pictures in Library which are included in a online album.

    Hi there,
    I'm afraid I don't quite understand your question. All images are in your Library and only those you specifically select from that Library would be in an Album. What platform are you using? Revel Mac, Elements, web browser, etc?
    Here is a link with some helpful information:
    FAQ: File Basics: How do I Upload, Download, Share, and Delete files in Revel?
    Thank you,
    Glenyse

  • Count the number of elements in an Arraylist

    My arraylist has these elements inside it.
    [house,tom:, agent,, person,, untidy,jack:, ordered,, tidy,, tiled,roof,tom:, agent,, person,,.....]. The list continues like this.
    How can I count the number of elements after each tom upto before each jack and same for all words after jack and upto before tom? [for example in the first case there are 3 words after tom and there are 4 words after jack.]
    Thanks

    don't collapse your lists together. They represent separate data entities and should be kept separate. Go check your [other thread|http://forums.sun.com/thread.jspa?threadID=5416414&tstart=0].
    Edited by: DeltaGeek on Nov 17, 2009 11:07 AM

  • Determining the number of elements defined in an enum

    Hello,
    I have an enum and I want to determine the number of elements (constants) defined in this enum by source code. I know I can use reflection but I just want to know if there's an easier way.
    Thank you very much.

    Hey JavaWisdom,
    You can use the ordinal method. I made a simple example to demonstrate.
    public class NumberOfEnums {
         public static enum Enumeration {
              item1, item2, item3, item4
         public void count() {
              Enumeration[] values = Enumeration.values();
              int numElems = 0;
              for (Enumeration type : values) {
                   if (type.ordinal() > numElems) {
                        numElems = type.ordinal();
              // Correct 0 indexed numbering
              numElems += 1;
              System.out.println("numElems : " + numElems);
         public static void main(String args[]) {
              NumberOfEnums noe = new NumberOfEnums();
              noe.count();
    }Cheers,
    Cypher

Maybe you are looking for

  • One of the skype account has a problem

    one of the skype account has a problem when the telemarketer agent makes over 75 calls on line, he gets an error message saying that he needs a subscirption. The account name is transfer2231. We want to know why is this happening and what can be done

  • MOVE statement

    Hi all,             I added one more extra word to move statement and it is not cming in the final report . when i put it in the second line it is giving error like two lines not permitted. I am using this in a Report where page width is fixed.. Than

  • Failed to start VMM

    I have SCVMM 2012 R2 installed with Update Rollup 4. High availability of VMM management servers is configured, but there’s no HA configured for SQL machine. Last night my all physical machines went suddenly shutdown due to UPS issue. Now when I am s

  • External Table Loads - Insufficient Privs

    Hi...please advise: Facts: 1. I have 2 schemas: SCHEMA_A and SCHEMA_B 2. I have an oracle directory 'VPP_DIR' created under SCHEMA_A and granted WRITE and READ on the dir to SCHEMA_B. 3. The physical dir on the unix server to which VPP_DIR points has

  • SSL on weblogic is not working properly on IE8

    Hi, I have enabled SSL Port on weblogic and disabled NON-SSL port on weblogic.... and now when i run my jdeveloper application, my page is working fine with https but after running my application on https if i change it to http then also it is workin