Compare 2 arrays,if same value add the value.If different value show 0

hello to all! i am new to labview and i'am trying to solve a labview exercise
''compare 2 arrays 1d 1x10 (the values of them are lucky numbers from 1 to 10)  .compare them and create a new array [1,10] that saves the same values in the corresponding places ,while in the remainder places where the elements of 2 tables are different  show 0''
One Example
In this time of project i have stuck at the comparison of values of two array.and how i would achive creating the Array3! I have search the forum about founding any answer.Any ideas?
Message Edited by sdadfsdfds on 06-05-2008 12:08 PM
Message Edited by sdadfsdfds on 06-05-2008 12:09 PM

I am guessing that since this is a labview exercise it is meant as a learning experience.  There are several ways to solve this problem, I have shown one way below.  I suggest that you try and come up with other ways on your own.  Feel free to ask any questions.
Cheers
Message Edited by jmcbee on 06-05-2008 11:25 AM
CLA, CLED, CTD,CPI, LabVIEW Champion
Platinum Alliance Partner
Senior Engineer
Using LV 2013, 2012
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Attachments:
Compare Arrays.PNG ‏3 KB

Similar Messages

  • When I download a movie from iTunes the cover art disappears. I try get info and add the art, it doesn't show up. So it's just gray. It opens and plays fine. Apple can't figure it out. It's an nas drive. When I use a firewire drive I get the art

    When I download movies from iTunes to my NAS drive, I don't get the cover art. It shows up while its downloading, but when it's finish it disappears. If it has an iTunes extra the cover art is there. I tried get info and add the cover art, it never shows. Regardless of how I add it. Funny thing is, if I download the same movie to my external firewire drive, no problem its there. I've called Apple with no success. I've even tried copying the movie with the art from the firewire drive to replace the file on then NAS drive I still loose the movie cover art. I also tried several times to re download it, no luck. Any ideas? I'm out of ideas.

    Do you have any videos/movies in the video app?
    In iTunes if you right click on the video and select Get Info and go to the Option tap what Media Type is shown?

  • MacBook pro will not boot. I get the gray screen, an apple icon and spinning wheel. Tried to start in safe mode but get the same screen. The only thing different was that I loaded the zedge sync app yesterday. Now getting this problem.

    Macbook pro will not boot. I get the gray screen, an apple icon and spinning wheel. I tried to start in safe mode, but get this same screen. The only thing different is that I added the zedge update app to do a sync for adding ringtones to my apple cell phone. How can I get a good boot. I am fairly new to apple computer.

    Reset PRAM: http://support.apple.com/kb/PH4405 and then try a normal boot.
    Run the Startup Manager to select Startup disk:  http://support.apple.com/kb/HT1310
    If those did not work your disk may be sick or dying.  The top priority at this point is to make a backup copy of your data.
    Check the health of the disk.  Boot in Recovery Mode (Boot, Command-R).  Run Disk Utility.  Click on the upper left disk icon.  Does the S.M.A.R.T. status say “Verified”?  If not the disk/SSD is unhealthy and needs to be replaced.  Even if it does not show “Verified” you can still attempt a backup. 
    Click on the icon indented below, usually called “Macintosh HD” and Verify Disk.  If it finishes with a green “OK” message then all is well with the disk.  If it shows errors in red then you have found a problem to address once the system is backed up.  Do not attempt software repairs until you have secured the data.
    If the disk will not show up at all in Disk Utility as your ran the tests above then it may be dead or it may have a bad internal SATA cable.  A trip to an Apple store for confirmation would be in order.
    If you have an external disk drive you can use as a backup drive then do so.  If not Google “Hitachi USB 3.0 external hard drive 1TB” to purchase one or go to a brick-and-mortar store (including an Apple store) to pickup one.  Any 1 TB external drive will do.
    Assuming it is still breathing you can try to recover the data without booting from the sick disk. 
    Reformat the external disk.  (This will erase all data on the external disk.)
    Boot in Recovery Mode.  Start Disk Utility.  Plug in the new disk.  Select it’s disk Icon (the second one down, left justified). Select the Partition tab.
    Partition Layout > Single Partition
    Name: Emergency Recovery 1 (or whatever name you wish to use)
    Format: Mac OS Extended (journaled)
    Options… > GUID Partition Table > OK
    Apply
    Select the Restore tab.
    Drag the old system volume (Macintosh HD) to Source.
    Drag the new disk volume (Emergency Recovery 1) to Destination.
    Click on Restore.
    It may take a long time for the backup.
    If that will not complete post back for other emergency data recovery methods, including those from a brody.
    If the backup succeeds, use the First Aid tab in Disk Utility to select the old volume (Macintosh HD) and Repair Disk.  If it does not finish with a green OK message try to repair it once or twice more.  If it repairs with a green OK message, will it boot normally?  If not, boot from the Recovery Partition and reinstall OS X.
    If it is still not healthy, post back for further instructions.

  • I want to create a form that as you add the numbers it adds the data from different fields...

    I would like to create a form similar to a shopping bag where you can enter amount and unit price and it would grab the multiplied total, then it would add the sum of all in a totals section...

    Sorry FormsCentral doesn't support calculations on online forms. You could achieve something like that with a PDF form (with the logic you need in it) and then import this PDF in FormsCentral.
    If you use the PayPal integration with the online form then paypal will show the total.
    Gen

  • UWL - I want to add the column "item type" in the UWL XML config file

    Hi,
    when personalizing a view in the default UWL iView, a user can add the column "Item Type", which shows the icon of the corresponding item.
    I want to add this column to a default view configuration in the XML file, so that all users have this column available by default. I guess the right attribute to do so would be the "columnOrder" attribute of a view. I tried to add the value itemType and objectType, but none of this worked, the column did not appear.
    From help.sap.com at
    http://help.sap.com/saphelp_nw70/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    I found some attributes and I tried statusIcon, externalId and externalType. statusIcon does not show the item type icons and the other two don't work at all. The table shows that they have the attribute "Visible to user = NO".
    Does anybody know the correct value which I have to add to the columnOrder attribute or how I have to configure the XML file?
    Thanks a lot for any help,
    Fabian

    I found it myself, it's the attribute "itemTypeIcon" which has to be added to the columnOrder attribute.

  • Add the new Service Catalog Columns

    Requirement: To add the new service catalog columns because of the new patient classes.
    I have added the new service catalog columns. Price revision for all the services with the new time interval.
    Service - xxxx  has two intervals
    1st Jan 2000 to 31st dec 2004 (10 columns prices maintained)
    1st Jan 2005 to 31st dec 9999 (20 columns prices maintained)
    from NT03 => I can see only the last time interval. It is a bug or the feature of SAP if the columns are different it shows the last time interval.
    During the service upload, it doesn't enhance or adjust the service master columns for the first interval.
    My customized solution is to edit the first interval and save it in the program, then it will adjust the columns.
    1st Jan 2000 to 31st dec 2004 (20 columns prices maintained)
    1st Jan 2005 to 31st dec 9999 (20 columns prices maintained)
    My question are
    1) Does SAP has any standard mechanism to auto adjust the columns for the previous intervals
    2) Is it a standard or a bug that SAP shows last interval if the intervals has different columns.
    3) When you add the new service catalog columns. Should the start date can be back dates to the original column start date or it should be the cutover date.
    Thank you.
    Rajesh

    from NT03 => I can see only the last time interval. It is a bug or the feature of SAP if the columns are different it shows the last time interval.
    Please look at the content of the field Valid from. Depending on the date you choose the correct interval should be displayed.
    The use case "add new validity period" to an already existing service (e.g. to reflect a basis price change) is quite well covered in the [Service Master documentation|http://help.sap.com/saphelp_erp60_sp/helpdata/en/3c/0ebc3959d39c39e10000000a114084/frameset.htm], chapter [Delimiting the validity of the Service Master|http://help.sap.com/saphelp_erp60_sp/helpdata/en/39/0b7b08df3011d189fc0000e829fbbd/content.htm] .
    The handling of columns is documented [here |http://help.sap.com/saphelp_erp60_sp/helpdata/en/06/810a88dae311d28f330000e835340c/content.htm]as well.
    Regards
    Claudius

  • How do I the % of battery life to show next to pic of battery?

    How do I the % of battery life to show next to pic of battery?

    How do I add the (%) of battery life to show next to pic of battery?

  • How do I add the same description to multiple photos in the new photos app

    How do I add the same description to multiple photos? I could do this in iPhoto but I do not see a way to do it in Photos for OS X. This is a handy feature to have.

    This link asks the same question,  https://discussions.apple.com/thread/6994338?searchText=How%20do%20I%20add%20a%2 0description%20to%20multiple%20photos?
    Someone shows the method to use AppleScript/ Automator to make Photos add the same description to multiple photos. I just opened up AppleScript editor and poked around the Dictionary for Photos and saw we have access to GPS longitude,latitude and altitude. So by using a third party app/web page to get those values, an Apple Script could be used to batch add the info to selected photos. That being said, I'm really busy these days and lack time to write scripts and migrate to photos.

  • Is it possible to store a multiple indexes for the same value extractor?

    I ran into a situation where there were different queries that I was interested in doing that might have benefitted from having several indexes, sorted differently, but for the same ValueExtractor() instance.
    Is this good practice, is it recommended, and is there a clean way to do it? It seemed like the only way I could logically "trick" the system into it would be passing some sort of "query type" constant into the ValueExtractor when it was created, and then making the equals and hashCode() methods on the ValueExtractor delegate to the constant for equality, but this seemed like a massive hack.

    Hi Kris,
    First, try without each value extractor and see how the different queries compare in performance. You may find that you need only one. If you find otherwise, please let us know because it may indicate a good area for additional optimizations.
    Second, you are correct that the value extractor is the key of the index, and thus to have two indexes on the same value, you will need two different value extractors (i.e. the hashcode/equals comment you made.)
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!

  • Add and remove items by comparing 2 arrays

    I have two arrays of objects. Each object has a unique name property besides few others. One of the array is a local copy and the other one is sent from server after regular intervals. The local copy of arrays is then used to add a movieclips into a container.
    Now, I want that when I receive an array from the server, I compare it with the one which is already with me locally such that the items which were not in the received array but were there in the local array, get removed from the container and the newly added ones only get added. The items which were present in both local and remote array remain as it is. how can i do this?

    I may be missing something, but it doesn't sound like you need to compare anything, you just need to replace the local array with the newly received one.
    local array = 1,2,3,4,5
    new array  3,4,5,6,7
    Based on what you described you would get rid of 1 and 2 and use 3,4,5.  I am assuming you would use the new ones that came from the server, so you essentially end up using 3,4,5,6,7
    So you should just need to go thru the new array and if something in the container is not in the new array then remove it.

  • I want to add same value/text in every cell in a column in Numbers 3.0

    I want to add same value/text in every cell in a column.  For example, in all my file names are for pictures that are uploaded to a host site, but the name in the cell does not include the URL associated with it.  Does anyone know how to be able to add text to a whole column in front of the current text already in that column?

    Assume the filenames are in column C.
    Let's says you want to add the text before each file name  "http://www.apple.com/"
    add a new column (let's say D) and add the formula:
    D1="http://www.apple.com/"&C
    this is shorthand for... in cell D1 type (or paste from here) the text ""http://www.apple.com/"&C" without the first and last double quotes
    select D1, copy
    select the column D by clicking the letter D at the top of the column, paste
    The "&" is called the concatenate operator and joins two strings together

  • Parent Account Value don't add the children value with a formula

    Hi BPC' Friends
    I have created some accounts with a formula.
    I have assigned at these children accounts the parent.
    I have this problem:
    In the report the value of the parent don't add the value of the children that have the formula but add the children without the formula.
    why?
    thanks
    Michele Medaglia

    Hi Michele,
    The same problem have been faced by lot of people. And I would suggest you to write a formula manually for the parent member as well.
    Lets take an example. P1 is parent of C1 and C2. C2 has the below formula
    A1 + A2.
    Then,
    for P1 write the formula as
    C1 + A1 + A2.
    Note that I am not refering to C2 in the formula; since it has its own formula.
    The above is one alternative of doing this. However, before that, let me understand the version of BPC you are using, SP and the version of SQL?

  • Node attribute contains the same value:

    Hello Friends,
    I have a problem, I nee to know if the attribute of the node contains same values twice or more ?
    e.g i have a node called nodepo_tilte, this node has e.g 2 attribute, 1st title and 2nd qty...the value of 1st attribute is e.g titlexyz.....now in node there can be max 12 title, and i need to  know how many time title xyz is there among 12 title ?
    so do I need to loop twice ? like
    for (int i = 0; i < nodepo_tilte.size; i++) {
         String t_title = wdContext.nodePo_titles().getPo_titlesElementAt(i).getTitle();
         int    t_qty   = wdContext.nodePo_titles().getPo_titlesElementAt(i).getQuantity();
      for ( .... )
    and here again loop over the same node to get how many times t_title exists there ?
    or you guys have any better and elegent suggestion for me

    ok guys, thanks for your reply, but I need one more hint, ( i know we need two loops but the problem is:
    in backend for particular tilte user can oder 10 qty e.g.....now in application he can place 12 positions in one time, so if for particular title he place oder with 10 qty and later again he place the same title with qty 10, I need to show him the msg that , haay user for this title you can place max 10 qty.....
    so I have a node where actaully 1000 title and qty are: and I have 2nd node which is a table node ( where actually user gives the title and its qty )....
    So right now I loop over the table node to see if user have same title twice or more, once I have this, I try to store these title in collection or arraylist...and then loop with this aary list with the original node  to compare the qty.....
    just a question....a node is a collection ? can instead of using arrylist I can use the node as a collectino ?
    Edited by: Shah H on Jul 23, 2008 1:36 PM

  • I have installed iOS7 on my iPhone4. I am able to add/edit contacts by clicking the "contact" icon. But when I am trying to do the same after clicking the "phone" icon, it is not displaying the keypad. I believe it is a bug in iOS7. Please confirm. iPhone

    I have installed iOS7 on my iPhone4. I am able to add/edit contacts by clicking the "contact" icon. But when I am trying to do the same after clicking the "phone" icon, it is not displaying the keypad. I believe it is a bug in iOS7.
    Please confirm.
    iPhone 4, iOS 7

    Hello jayanand,
    You may need to force close all open apps, then restart the phone. If necessary, you may need to reset the phone after that.
    iOS: Force an app to close
    http://support.apple.com/kb/HT5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Cheers,
    Allen

  • How do i add the same mouselistener to many different instantiated objects?

    This is for a card game.
    The deck class instantiates 52 cards from the card class.
    The game has a deck of cards. I am dealing each player their cards, the player is to be dealt 8 cards each of which should have a mouselistener.
    How do I add the same mouselistener to each of the cards dealt.
    This is how I have it so far but it only adds a mouselistener to the last card dealt.
         public void dealPlayerACard()
              taken = availableCards.dealCard();
              taken.showCard();
              taken.addMouseListener(this);
         public void mouseClicked(MouseEvent MEvent)
              playerHand.remove(taken);
              paintHand(playerHand);
              playerHand.repaint();
    Any help would be appreciated

    Yeh I have 52 card object in the deck. Theyre not individually named, they were instantiated in the deck class.
    standardDeck.add(new Card(a, b, new ImageIcon(str), cardBack)); //creating and then adding the cards
    So i draw one card at a time, and I had a mouselistener to that particular card. But the thing is, When the cards are clicked, some checking happens and if the move is legal, the card is added back into the deck and its mouselistener should be removed. This is because that card could then be added to the computers hand, and I dont want no player using the computer players cards.
    The game deals the cards to players, players use the cards and then send them to the bottom of the deck, the deck is shuffled and then the game continues until a condition is met by either of the players.
    So i dont understand how a loop solution would work here. My mind is blank at the moment, maybe im not understanding properly. I am new to java. So if you do know the answer, please tell it to me. Please dont wait for a lightbulb to appear above my head. ;)

Maybe you are looking for

  • SAP PI CSV to Proxy Structure

    Hi All, I have scenario wherein I will be getting data from external PI system to my PI system through XI adapter so at external PI end receiver adapter will be XI adapter and at my end sender adapter will be XI adapter. Now through XI adapter i will

  • Problem in Jsp page it  doesnt shows users from database

    hi dear all... in my project i am creating new user by user registration(filling all details UserId,Passwd,retypepwd,name,emailid,dob,mob.no.,images-browse) so it will stored in my backend database oracle which is shown by using sql commands i.e.sele

  • To play games and cd's etc do i need to buy an apple superdrive

    do i have to buy an apple usb superdrive to use cd's

  • Edit folder structure in solar01

    Hello, I am creating an implmentation project. In the solar01 transaction I want to delete the subfolders 'Org Units', 'Master Data' and 'Interface Scenarios'. Any idea how we can do that. I only want to see the Business Scenarios in teh folder struc

  • Unibody Nvidia + Photoshop CS4 OpenGL bug?

    I am experiencing a particular bug in Photoshop CS4 Extended which is related to the OpenGL GPU acceleration which is very dependent on the video driver. The particular bug I'm seeing is when I free transform a object/layer or perform a transform sel