Find threshold in every matrix row, and some the following elements.

Hello,
after an acquisition I have a 3D array whose dimensions are 1x400x10000, in fact it's a 2D array, but labview sees it as a 3D array.
I need to find the threshold in every row, and sum 1000 elements, after the threshold element, in order to get a 1D array of 400 element.
(I'm using labview 8.2, in case someone can attach some example).
Thank you!

danielevee wrote:
Hello,
after an acquisition I have a 3D array whose dimensions are 1x400x10000, in fact it's a 2D array, but labview sees it as a 3D array.
I need to find the threshold in every row, and sum 1000 elements, after the threshold element, in order to get a 1D array of 400 element.
(I'm using labview 8.2, in case someone can attach some example).
Thank you!
A 1 x 400 x10000 array is a 3D array.  It just so happens that the one particular dimension is only 1 element long.  As Lynn hinted, if you want to turn it into a 2-D array, then you need to use Index Array.

Similar Messages

  • I copy a row and then the next row as no actions

    I know this is easy.
    when I set up actions in a row and try to copy it and past a row below it is not there.
    can anyone help?

    Hi,
    One of the easiest ways to do this is simply select the row (discussion below about selecting) and hold the "Ctrl" + "D" ("D" is for "Duplicate"). This will duplicate the row and place it directly under it. Also, you can use "Duplicate" by clicking Edit>Duplicate
    Selecting rows can sometimes be tricky. If I use the mouse, I always try to confirm in the Object and/or Hierarchy Pallet.The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore)
    Here are 3 ways:
    The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore). You move the cursor just to the left of the table and the arrow appears.
    One of the best ways I find is selecting the row in the Hierarchy Pallet.
    Select an object in the row and on the tool bar click Table>Select>Row
    I avoid pasting anything if I can help it. If you use flowed forms and if you paste a lot, and If you aren't careful, you'll end up with a corrupt form. Designer is very unpredictable about where it will paste. If you have a large form, it can take a minute or two to track down a pasted object's location. Then you have to move it to where you want it.
    Better to use "Duplicate". That usually means it will be next to the item you're duplicating. If you copy and paste, paste, paste repeatedly too fast, You can really mess things up. Every Paste command takes longer than you think to execute. Wait at least 2 seconds before doing anything after pasting. Otherwise, you'll interpt Designer while it's busy writing the new XML. Yes, Designer is still busy doing work even after you see the new item appear. Be patient.
    Good luck!
    Stephen

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • I have a new iPhone 5 and receive the following message when texting some people within my contacts.  Message sent using invalid number of digits please resend using 10 digit number or valid short code Msg:2114

    I have a new iPhone 5 and receive the following message when texting some people within my contacts.  Message sent using invalid number of digits please resend using 10 digit number or valid short code Msg:2114. Online I found a discussion that stated i needed to delete contact and re-add. I have done that to no avail. Any ideas?

    I had the same issue with the iPhone 6 and tried everything!  I now understand that at some point I stored a number for a contact without including the area code and sent a text message.  So, to correct the issue, you must literally "erase" all references to the contact, not just the number.  Deleting the contact and entering a new one is not enough because the iPhone stores references to that number in multiple places.  The steps below worked and are very simple:
    1) On the contact screen, delete everything stored for that number.  You can't just edit the contact to fix the problem, so write down or record the info somewhere before you complete this step.  Choose edit and then select DELETE to eliminate the entire contact which means home, work, cell, email address, etc.
    2) Delete the entire string of messages you sent to that number.  That's every single message...
    3) Now delete the entire string of invalid 2114 messages you received after your text(s) failed.
    4) Finaly, remove the contact from FAVORITES if you saved it that way. 
    5) To validate that all this worked, simply go to the keypad or contact screen and enter the number associated with the contact to verify successful removal.  I used the keypad and dialed to confirm.  If the contact number still shows up, you need to go back and recheck your steps.  Trust me, I had to do this a few times.
    Several posts suggested that you should  reset and turn off your phone.  After following these steps, it was not necessary for me to reset or turn off my device. 
    is there a much faster way to achieve the same results?  Probably, but this was safe for an iPhone novice and may help you avoid inadvertently deleting other contacts or replacing factory settings that you need.  

  • Add dynamic buttons to each report row and bind the row data to buttons specific to that row

    I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.
    Below is the representation of how I need the page to look like.
    Col 1
    Col 2
    Col 3
    data 1
    data 21
    data 31
    Button 1
    Button 2
    data 2
    data 22
    data 32
    Button 1
    Button 2
    data 3
    data 23
    data 33
    Button 1
    Button 2
    data 4
    data 24
    data 34
    Button 1
    Button 2
    I should be able to access data 1, data21, data 31 from button 11 and button21 etc.

    select data1,
              data2,
              data3,
              null button1,
              null button2,
              rowid r_id
    from .....
    If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways.  You will need to play around with how you prefer.  See below:
    <input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
    You also create both buttons in a single column.  From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
    You will next need to something similar for all columns you want to be able to grab when you click the buttons.  See below:
    --- This would be for data1 column
    <span id="D1-#R_ID#">#DATA1#</span>
    You would do these for each column that you want access to when button clicked as mentioned above.  You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class.  Is is your preference.
    You would then create a dynamic action triggered when .button1 is clicked.  Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page.  The next step of that dynamic action you could execute pl/sql and pass those in page items.
    Hope that all makes sense.
    David
    Message was edited by: DLittle
    Just as a bit of clarification:  the r_id column does not have to be rowid, but it does need to be unique for each row return.  You could use your primary key or rownum.  Whatever works for your scenario.

  • I have been trying to save a document in illustrator and every time I try to, a dialog box pops up and says the following- Can't save the illustration. You do not have enough access privileges. id: -5000....This has been happening ever since I switched to

    I have been trying to save a document in illustrator and every time I try to, a dialog box pops up and says the following- Can't save the illustration. You do not have enough access privileges. id: -5000....This has been happening ever since I switched to CC and whenever I try to save something in indesign, I get a dialog box that says that my file is corrupt. How do I fix this? I cannot get any work done !!!

    You should ask in Illustrator
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly app

    I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly appreciated.

    Here's something I threw together rq. The script is in the change event for the checkbox in the table. (Of course, you'll have to modify it to suit the names of your fields.)
    var rows = xfa.resolveNodes("tblAmounts.Row1[*]");
    var subtotal=0;
    for (i=0; i<rows.length; i++) if (rows.item(i).cbAdd.rawValue == 1) subtotal = subtotal + rows.item(i).nfAmount.rawValue;
    nfSubtotal.rawVlaue=subtotal;

  • Why do some next generation ipads have a lightning connector and some the old connector

    why do some ipads have a lightning connector and some the old connector

    Apple said that the lightning connector takes less space than the 30-pin connector.
     Cheers; Tom

  • I can't find out how to turn on and off the title of the song, name of artist, and time remaining to a song.

    I can't find out how to turn on and off the window above the iTunes list that includes the title of the song, name of artist, and time remaining to a song. It seems to appear rather randomly on my iMac.

    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Upgraded to Mavericks and get the following: could not Initialise Photoshop  because of a program error

    Upgraded to Mavericks and get the following: could not Initialise Photoshop  because of a program error
    I have tried all the fix(es) on the web i can find i.e. Trash the Prefs, shift when open and stop plug ins, Download upgraded Java, deleted and re-installed
    My business is at a halt cannot find a fix from Apple

    Did you run the cleaner after uninstalling and before reinstalling?
    -http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    AND JUST FOR MAC USERS - Some 10.9.x links
    next link says After Effects, but check YOUR permissions !!!
    -http://blogs.adobe.com/aftereffects/2014/06/permissions-mac-os-start-adobe-applications.ht ml
    -Mac 10.9.4 and OpenCL issue https://forums.adobe.com/thread/1514717
    -Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    -more Mac 10.9.3 https://forums.adobe.com/thread/1491469
    -and https://forums.adobe.com/thread/1507936

  • Trying to install itunes on windows vista and get the following error message:

    Trying to install itunes on windows vista and get the following error message: An error occurred during the installation of assembly "Microsoft.VC80.CRT,version="8.0.50727.4053",type="win32",publicKey Token="1fc8b3b9a1e3b",process orArchitecture="x86"". Please refer to Help and Support for more information. HRESULT: 0x80070424.

    A broken Windows Modules Installer then. It's a bit of an involved fix getting past it, but we've had success here with it in the past.
    First, I'd strongly suggest setting up a system restore point.
    Now try the Scenario III treatment from the following document:
    Windows Update Error 80070424 in Vista
    Head back into Windows Update and attempt to get updates again. If they still fail, this time with an 8000FFFF error code, try the following Microsoft document:
    Windows Update error 8000FFFF
    If you get Windows Updates flowing again, stock up on any you're behind on (restarting the PC when requested to do so). This may take some time and may have to be done in several batches, depending on how far you've fallen behind. Basically, keep going back to Windows Update until it stops offering you new updates.
    After the updates have been installed, restart the PC one more time (in order to ensure that any pending installs requiring a restart have been resolved).
    Now try another iTunes install. Does it go through without the 0x80070424 this time?

  • While partitioning in Lion 10.8, I get the following error message: I have been attempting to partition a 2 GB hard drive that I just formatted using the Disk Utilty in Mountain Lion (10.8) and get the following error message:  DiskManagementTool has died

    I have been attempting to partition a 2 GB hard drive that I just formatted using the Disk Utilty in Mountain Lion (10.8) and get the following error message:
    DiskManagementTool has died. Disk Utility will need to be restarted.  The log shows the following:
    2012-09-10 11:20:51 -0700: Preparing to partition disk: “HitachiG ST Media”
    2012-09-10 11:20:51 -0700:      Partition Scheme: GUID Partition Table
    2012-09-10 11:20:51 -0700:      2 partitions will be created
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 1
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage”
    2012-09-10 11:20:51 -0700:           Size          : 1.5 TB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:           Do not erase contents
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 2
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage 2”
    2012-09-10 11:20:51 -0700:           Size          : 500.05 GB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700: Beginning partition operations
    2012-09-10 11:20:51 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:55 -0700: Disk Utility started.
    Does anyone have any thoughts?  Cant find anything on the web with this

    I have been attempting to partition a 2 GB hard drive that I just formatted using the Disk Utilty in Mountain Lion (10.8) and get the following error message:
    DiskManagementTool has died. Disk Utility will need to be restarted.  The log shows the following:
    2012-09-10 11:20:51 -0700: Preparing to partition disk: “HitachiG ST Media”
    2012-09-10 11:20:51 -0700:      Partition Scheme: GUID Partition Table
    2012-09-10 11:20:51 -0700:      2 partitions will be created
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 1
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage”
    2012-09-10 11:20:51 -0700:           Size          : 1.5 TB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:           Do not erase contents
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 2
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage 2”
    2012-09-10 11:20:51 -0700:           Size          : 500.05 GB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700: Beginning partition operations
    2012-09-10 11:20:51 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:55 -0700: Disk Utility started.
    Does anyone have any thoughts?  Cant find anything on the web with this

  • I tried to open my Illustrator CS6 today and got the following error message, "To open Adobe Illustrator CS6 you need to install the legacy Java SE runtime". The window then states, "Click More info...to visit the legacy Java SE 6 download website."  I do

    Help. I tried to open my Illustrator CS6 today and got the following error message, "To open Adobe Illustrator CS6 you need to install the legacy Java SE runtime". The window then states, "Click More info...to visit the legacy Java SE 6 download website."  I do click on the More Info... button, but the webpage is blank. Please help.
    Thanks,
    Leo

    Leo,
    Depending on your OS, you should be able to use;
    Win:
    http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419 409.html
    Mac:
    http://support.apple.com/kb/DL1572
    Some have found that the page may turn up blank to start with, so it may be necessary to reload the page.
    Others have found that it may depend on browser. Specifically, a switch from Safari has solved it in one case.

  • I've updated to FF26 and get the follow error message "Secure Connection Failed" why is that?

    ever since I've updated to FF26 some of the sites won't come up and show the following error message:
    Secure Connection Failed
    An error occurred during a connection to www.facebook.com. SSL peer rejected a handshake message for unacceptable content. (Error code: ssl_error_illegal_parameter_alert)
    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
    it does not happens all the time but most of the times.
    this also occurs on google.com, twitter.com and many more.
    what to do?

    Do you have the option to turn off the feature of Kaspersky scanning your SSL traffic? Usually that can be turned off (e.g., in ESET and BitDefender).

  • I have just clicked on my iTunes desktop icon and got the following message "The file iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Why has this occurred when it working fine?

    I have just clicked on my iTunes desktop icon and got the following message "The file iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Why has this occurred when it working fine? Is it best to update iTunes to 10.2 to attempt to resolve? Initially I got the prompt Quicktime was out of date so I updated that successfully in all programs. I do not want to lose my iTunes library.

    Sorted problem updated and reinsatlled and restarted computer.

Maybe you are looking for

  • Payment made twice for an invoice

    Payment made twice for an invoice.We have posted an invoice on 23.11.2008 in a company code for a vendor,then F110 was run on 24.11.2008 and was paid.Then again on 25.11.2008 payment was done for the same invoice.The clearing doc of payment run on 25

  • My web pages show up like if I am using my phone why? how can I fix it?

    When I go to a web page it shows like if I was using a phone

  • Read from I16 file

    Dear, I used to use Read from I16 file.VI, but since I'm using LabView 2009, I'd like to use "Read from binary file.VI". I've looked at the previous posting and tried the suggestions, but I still got a problem. Could you help me to figure this out? B

  • How do you drawlines in java 1.3.1?

    I want to make a applet and drawlines with a xstart, ystart, xend, yend varibles, I know how to declare instantiate and initialize the varibles, but what method from which package and class in java 1.3.1 do I use? and one last question, should I use

  • AFP and ARD not working at all

    I have a mac running latest version of 10.6 and it crashed the other day. It restarted fine but since then I have not been able to connect to it from other macs. It doesnt appear in the network list and I cant connect to it on ARD. Even if you manual