"How would I add the rows of a 640 x 240 2D array together? I mean , the elements of row 1 to the element of row 2 and so on. I want to end up with a 1 d array of 640 elements in which each element is the sum of the other 240 elements in the rows."

"For explaination , like this
1 1 1 1 1 1 1 ....... to 640
+2 2 2 2 2 2 2 .......
+3 3 3 3 3 3 3 .......
=6 6 6 6 6 6 6 ....... this is the final 1D array of summed elements."
Appreciate the sample VI's but I can't open them ( I have Labview 5.01 )

Here is Mikael solution, expanded to include rows and ready to use as a subVI. Now all is needed is the polymorphic version
www.vartortech.com
Attachments:
Sum_rows_or_colums.vi ‏25 KB

Similar Messages

  • How can I add the number of columns/row starting with the build in "Text Report" example in the LabVIEW

    Hi All,
    I am wondering how can I add the numbers of row and column from the existing build-in "text report"
    VI ? If possible, would you mind showing me step-by-step because I am a new user and I am not familiar with the labview software.
    Thanks

    Hi,
    Easy text Report is for saving to a file. Do you mean you just want to add the totals of two arrays and write that? In that case I would just append the totals before writing to file.
    Jeff | LabVIEW Software Engineer

  • I HAVE AN IPHONE 5S AND WANT TO USE SOFTWARE 7.0.2 BECAUSE IT IS COMPATIBLE WITH MY VEHICLE FOR UCONNECT. I CURRENTLY HAVE SOFTWARE 7.0.3 ON MY DEVICE. HOW WOULD I GET THE PREVIOUS SOFTWARE BACK ON MY PHONE

    I HAVE AN IPHONE 5S AND WANT TO USE SOFTWARE 7.0.2 BECAUSE IT IS COMPATIBLE WITH MY VEHICLE FOR UCONNECT. I CURRENTLY HAVE SOFTWARE 7.0.3 ON MY DEVICE. HOW WOULD I GET THE PREVIOUS SOFTWARE BACK ON MY PHONE

    Forum Tip: It is generally considered inappropriate to type all in uppercase letters in Internet discussions, as text that is typed all in uppercase is by convention considered to be shouting.  Uppercase is also more difficult to read, so please use all uppercase sparingly and only when you really mean to shout, which we hope you won’t need to do here .
    Regards.

  • HT6154 If I buy the phone with AT&T contract then how would I pay the monthly instalments?

    If I buy the phone with AT&T contract then how would I pay the monthly instalments of $60 after paying $199 down payment?

    I mean that as I want to buy IPhone 5s with AT&T and in that i need to pay $ 199 initially and after that i need to be in contract for 2 years paying them the charges of $ 60 per month for their network usage. I want to know that how they would take the money from me every month??
    iPhone 5s, iOS 7

  • How do I add multiple rows in Numbers for iPad?

    how do I add multiple rows in Numbers for iPad?

    Hi James,
    On the iPod I can only insert what is on the clipboard but I can insert however many rows I have there. Is it working differently for you? Benjoon seemed to think that he could not do this in Numbers. He was ruling Numbers out because of it. He doesn't need to do that because of this issue.
    If I was needing to insert multiple blank rows often I might keep a table of blank rows or just some blank rows at the end of the working table that I could copy/paste. This is no different than Numbers on the Mac.
    quinn

  • Messenger Express: How do I add the Directory Server to the address book search tool?

    In Messenger Express (ME) how do I add the Directory Server (DS) to the address book
    search tool?
    <P>
    Edit the globals.pl file. Look for a line similar to: <BR>
    @dirservers = ('MyCompany::phonebook.foo.com::o=FooCorp.,c=US','Four11 Directory::ldap.four11.com::');
    <P>
    Add an entry to the list. The list is comma delimited and each entry is a
    string. The string contains three fields, delimited by a double colon (::). The
    first field is the name you want to appear in the User Interface (UI). The second is
    the hostname of the DS and the third is the Distinguished Name (DN) to use when searching.
    <P>
    Please note, Messenger Express is part of the Messaging Server. For more
    information on Messenger Express, please see the release notes at
    http://home.netscape.com/eng/server/MExpress/relnotes.htm

    You can't add a new contact to specific group and there is no app for this. 3rd party apps don't have access to private iPhone APIs with security concerns being a primary reason, which such a function would require.

  • 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. ;)

  • How do I add the ClearCache argument to a tab's url?

    How do I add the ClearCache argument to a tab's url? When I click on a tab, I want to clear the page items values.

    Adrian,
    Okay, first realize that when you press a standard tab, it's just like a button that submits whatever page you're on. Then the on-submit-before-computation processes and after-submit computations on that page fire. Then the page defined as the target for the pressed tab is redirected-to. There is no way to alter the target URL of that branch generically for the tab. Consider a tab T. Say you've defined that tab to go to page 20. if you are viewing page 2 and press tab T, page 2 gets submitted and then the engine redirects to page 20 as the target. A similar thing happens if you are viewing page 3, i.e., page 3 will get submitted and you'll get redirected to page 20.
    So, the only way I know of to do what you asked is to create an application-level process that fires on-submit-before-computations that examines the current page ID and request value (which will identify the tab pressed) and then would clear cache for one or more pages as you require. Since this would fire before the tab-associated branch, it should produce the result you described.
    Scott

  • How can I add a row into a JTable with JButton

    Hi all. I have the following code:
    package gui;
    import db.*;
    import javax.swing.table.AbstractTableModel;
    import java.util.ArrayList;
    public class FoundersTable extends AbstractTableModel{
        private static final int COLUMNS = 8;
        private String columnNames[] = {"��� ����", "���", "�������", "�������", "���������", "��������",
                "����� �� ����������", "������ �� ����, �����"};
        private ArrayList data;
        public FoundersTable(){
            data = new ArrayList();
        public int getRowCount() {
            return data.size();
        public int getColumnCount() {
            return columnNames.length;
        public String getColumnName(int colIndex) {
            return columnNames[colIndex];
        public Object getValueAt(int rowIndex, int columnIndex) {
            return ((ArrayList)data.get(rowIndex)).get(columnIndex);
        public void setValueAt(Object value, int rowIndex, int columnIndex) {
            ((ArrayList)data.get(rowIndex)).set(columnIndex, value);
            fireTableCellUpdated(rowIndex, columnIndex);
        public void addRow(ArrayList neueZeile) {
            data.add(neueZeile);
            int index = data.size() - 1;
            fireTableRowsInserted(index, index);
        public void removeRow(int index) {
            data.remove(index);
            fireTableRowsDeleted(index, index);
        public void removeAllRows() {
            data.clear();
            fireTableRowsDeleted(0, 0);
        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return true;
    }Now in my MainJFrame class I have one button for additing and one button for removing a selected row. How can I add/remove rows with this two buttons.
    Thanks

    No my question is how can I add and remove rows WITH buttons My point was the code is the same. You use the addRow(...) method. Why did you write an addRow(...) method if you aren't going to use it?
    I don't understand your problem. Do you not know how to write an ActionListener?

  • When creating a comment summary, I want to end up with a pdf of comments only. In addition, I do not want author, date, time, or page number to show in my comments summary. How can I do this?

    When creating a comment summary, I want to end up with a pdf of comments only. In addition, I do not want author, date, time, or page number to show in my comments summary. How can I do this? I do a lot of reading, and when I summarize my comments, I like to save these comments in a larger document I compile over time. I typically create a comment summary, export it to a text editor and find myself having to delete author, date, time, page number, and anything else that is not the raw and net comment. It would save me some good time if someone showed me how to do this. The reason I do not want any additional information is because it simply adds stuff I do not need in my compilation of summaries for large amounts of papers over time.

    What you're describing can't be achieved using the built-in comments summary function of Acrobat, but it can certainly be done if a custom-made script it used to generate the summary because then you're in full control of what's included in it and what's not.

  • How can I add the hard drive icon to the menu bar on a MBPr

    How can I add the hard drive icon to the menu bar on a MBPr?  I have downloaded Google Earth and it wants me to drag it to the hard drive for install. I was able to display the icon but now I would like to put it on the menu bar. Is this possible? Or can I add it to the hardware section under system preferences?
    I'm a new Apple user, coming out of the dark ages of a lifetime in the PC Windows world.
    Thanks

    It's on your Desktop, is it not? You cannot put it on the menubar through OS X although you may find third-party utilities that will. If you want it on the Desktop:
    Select Preferences from the Finder's Finder menu and check the desired boxes:
    Click on the Sidebar icon in the toolbar to set what you want displayed in the Sidebar.

  • How can I add the controller name in the subject of Alarm emails? PI2.1

    How can I add the controller name in the Alarm emails in PI2.1?  This would make it much easier to scan the mailbox and see what devices are affected.

    Thanx for your reply. No, although helpful, that's not what I meant. In outlook, the first line of the header contains the full username follow by a horizontal line. Under that, the default headers like To:, From:, Subject: etc follow.
    I need that firstline printed so we know instantly from which user the email was printed (the To: field often is the same name of the sender of the mail, therefor you won't know WHO printed it...).

  • How can i add the dimensions and data loading into planning apllications?

    Now please let me know how can i add the dimensions and data loading into planning apllication without manuallly?

    you can use tools like ODI or DIM or HAL to load metadata & data into planning applications.
    The data load can be done at the Essbase end using rules file. But metadata changes should flow from planning to essbase through any of above mentioned tools and also there are many other way to achieve the same.
    - Krish

  • How can i add the songs in ringtone

    How can i add the my fav songs in rintone gallery top play a custom wise songs on contact numbers

    Follow this DIY using iTunes:
    1. Select a title (.mp3 or .m4a) in your iTunes Music Library
    2. Do File > Get Info on selected title (Windows do Edit > Get Info)
    3. In the dialog choose Options tab
    4. Set Start Time and End Time (no more than 35 secs otherwise won't work)
    5. Close dialog.
    6. Now control click the title (right click) and choose Create AAC Version
    Note: If you don't have Create AAC version, switch in menu File > Preferences...(Windows do Edit > Preferences...) > General > Import Settings... > Import Using: AAC Encoder.
    7. When it is done, drag the newly create title to the desktop.
    8. Delete the newly create title in iTunes. <-- This step is important
    9. Rename the title on your desktop from ringtone.m4a to ringtone.m4r
    10. Drag and drop it into iTunes
    Now you have a ringtone.
    Make sure it is selected in iTunes > Tones for syncing with your new iPhone.

  • How can I add the Blackberry my friend gave me to my account that already has my prepaid phone on it?

    How can I add the Blackberry my friend gave me to my account that already has my prepaid phone on it?

    A few questions to clarify your specific situation will help us to better help you...
    Do you want to swap phones and use the BlackBerry instead of your current phone?  I don't think you can add a line to a pre-paid account to use both - it would have to be two separate accounts.
    What model BB is it?  And is it Verizon branded?  It may or may not be usable on a pre-paid account.
    Finally, what is your current phone and account set up?  You may need to get a different pre-paid plan to use the BB, if it is usable on Verizon.

Maybe you are looking for

  • Have 3 sites on line and need to update them but each time i click on the site icon it opens always the same one... and i cannot access the other 2....

    Have 3 sites on line and need to update them but each time i click on the site icon it opens always the same one... and i cannot access the other 2....

  • Internal Forex Trading

    Hi All, Request you to share your views on Internal forex trading (Mirror Transaction) I am working on Internal forex trading , when i enter the details of the transaction in the Tcode TX31 for transaction close and give in the required details, syst

  • Like dandelions.... Now my G5 won't connect to the XServe

    I no more get done doing the happy dance celebration for one problem's solution and another pops up this morning. I have my main office machine, a June '04 Dual 2.0 G5, which decided that it doesn't want to allow me to connect (not completely anyway)

  • Runtime error for Audit Log reports

    Hi, I have activated Reports feature at Site Collection level and then tried to run custom report for Dashboard library under Audit Log Reports but I got Run Time error. I tried on my local machine and on server. Can any body let me know how to resol

  • Zen V Plus USB connect

    Hi fellows I have problems with my Creative Zen V Plus 2 GB After installing all the software included in the CD, i plug my Zen in the USB port but my PC doesn?t recognize it, a message appears: A device is connected in a 6 ports USB root hub not com