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.

Similar Messages

  • My iphone 3gs said it was out of service then it turned off and when it turned on it said to activated then it said to plug in to itunes i did that n it turns back off. how can i fix it?? or whats wrong

    my iphone 3gs said it was out of service then it turned off and when it turned on it said to activated then it said to plug in to itunes i did that n it turns back off. how can i fix it?? or whats wrong

    If it continues to show the connect to iTunes graphic, then you do have to restore the phone. If you have not created a backup of your phone, then I hope you use icould because this will erase all of the info on the phone.

  • Acrobat form field that allows Reader user to browse and insert a picture into a predefined area

    Is there a way to do insert a form field into an AcroForm that allow Reader users to browse and insert a picture into that form field?
    I know that LiveCycle can do this, but I need to do this using an AcroForm. Or maybe there's a third-party plug-in that can be used in an AcroForm to do this?

    Jay,
    The new version of Reader, which was announced today (see AcrobatUsers.com), will now allow you to use the field.buttonImportIcon method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.737.html
    For a bit more information, see: http://forums.adobe.com/thread/743823
    Here's the minimum code that can be used in the Mouse Up event of a button that's configured with a layout that's something other than "Label only":
    // Mouse Up script for a button
    event.target.buttonImportIcon();
    Since this isn't backwards compatible with Reader, you'll probably want to add additional code to test what version is being used and alert the user if it's pre-11. You should also check the return value to see if anything went wrong. The hard part is getting everyone to upgrade, but this and a number of other features should make it worth it.

  • TS1702 Upon switching on my ipad, I'm getting the caption "Unable to Download Application "*Solitaire" could not be downloaded at this time." Further, I'm getting 2 options - Done & Retry, both of which are not responding. The ipad is in the hanged situat

    Upon switching on my ipad, I'm getting the caption "Unable to Download Application "*Solitaire" could not be downloaded at this time." Further, I'm getting 2 options - Done & Retry, both of which are not responding. The ipad is in the hanged situation for all practical purposes. How do I get out of this situation?

    Try a reset:
    1. Hold the Sleep and Home button down (together)
    2. For about 10 seconds
    3. Until you see the Apple logo (very important)
    4. Ignore the red slider

  • My CS3/PS has started to change the cursor into a line of three VERY small icons when dragged over a picture or menu. Thus it is VERY difficult for instance to drag a layer in the layer list to the wastebasket - the cursor simply is too big for the waiste

    My CS3/PS has started to change the cursor into a line of three VERY small icons when dragged over a picture or menu. Thus it is VERY difficult for instance to drag a layer in the layer list to the wastebasket - the cursor simply is too big for the waistebasket icon. Even all other exact work is impossible.  Of course I have checked all the cursor presets but nothing seems to help. My OS is Windows7.

    Have you tried resetting Preferences?
    A logical next step would be to reset your Preferences.
    To reset Preferences:
    If Photoshop is already open on your screen, close it (Quit). Then hold down Shift+Ctrl+Alt (Win) / Shift+Command+Option (Mac) on your keyboard and start Photoshop.
    A dialog box will pop up asking if you want to delete the existing Preferences file (the "Settings"). Click Yes in the dialog box. The existing Preferences file will be scrapped and a new one will be created.

  • HT5463 they have developed it pathetic as even if you activate it the other user gets first small ring then busy tone. So, its finally gone to spoil your relations to any one.

    they have developed it pathetic as even if you activate it the other user gets first small ring then busy tone. So, its finally gone to spoil your relations to any one.

    Please post in your native language.  Your English is incomprehensible.

  • Select from 2 tables and insert same data into 2 other tables(BPEL Process)

    Hi All,
    Please suggest me how to select from 2 tables and insert the same data into 2 tables. I am successful in selecting data from 2 tables, but i am not able to insert the same data into 2 other tables. There is foreign key constraint between 2 tables.
    Thanks in Advance,
    MAH

    I have created DB Adapter for selecting from 2 tables and also DB adapter for insert and i have created parent child relationship between 2 tables.
    I am getting this error
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is 6f3fe20c1b031057:-6cc7dfb5:11b8bf5fbe1:-7fa4. Please check the process instance for detail.</faultstring>
    </Fault>

  • How can I create a buffer, array or pipeline that stores the last 5000 dates of a voltage measurement with PCI6036 & SCXI1104C and continously drops the last date and inserts the latest date (scanrate 200 or 2000Hz)?

    I develope a porgramm for continious monitoring. If the voltage of a channel exceeds or is lower than the upper or lower limit of tolerance the actual date must be stored and additionally the dates being stored 10sec before and after this event. Can somebody give some advice how to create the buffer to keep the dates 10s before the error event? Thank U.

    I've written you a quick array buffer vi. I'm not sure if it'll be fast enough though.. Try it and see! I've used the loop numbers in my array, but i'm sure you can feed in the dates instead.
    Attachments:
    Array_buffer.vi ‏26 KB

  • How can I create multi-dimensional arrays of controls?

    I'm building a VI that will have hundreds of on/off buttons, 24 on each of 8 tabs.  I can deal with them programmatically in an array, like this:
    and then find which one was pushed with some XOR'ing:
    But what if I want two rows of 12 buttons?  Can I make a 2D array of buttons somehow?  Or a 1D array of buttons on two rows for cosmetic reasons?
    What if I want to put 24 buttons on each of 8 tabs?  Can I make a 24x8 array of controls somehow?  Or a 12x2x8?
    Thanks,
    -Jordan
    Solved!
    Go to Solution.

    jordanglassman wrote:
    and then find which one was pushed with some XOR'ing:
    I would strongly recommend to replace the XOR with a not equal. Same outcome, but less nerdy. It is also much more universal! For example if you ever need to do this on an array of numerics to see which element got changed (I often do!), the XOR will no longer work as well (with integers, you'll end up with bitwise comparisons and numeric results, and with DBLs you'll end up with coercions and unpredictable results because bits are lost).
    LabVIEW Champion . Do more with less code and in less time .

  • How do I create a RAID array

    I want to RAID the two drives in my G4. The upper (boot disc) is 80GB and the lower is 30GB.
    How do I set up the RAID (striped) to use both discs?

    To set up my RAID I had 3 hard drives, one ATA and 2 SCSI. With the startup system on the ATA drive I used Disk Utility to set the two SCSI drives as a RAID 0 array. Then I used Carbon Copy Cloner to copy the system to the RAID array. I now boot from the RAID and use the ATA drive to back up the system. Without the 3rd drive you would need to boot from the installation DVD and use Disk Utility to set up the RAID array, which will erase all data on your drives. To be honest I'm not seeing a huge speed increase with the RAID array; you might be better off using one drive as a system disk and the second to store data, music, video, etc.

  • My ipod 5 laged just now 1st the wifi closed on sleep mode then.i cant touch any thing so i pressed the sleep mode and open again and i phoned that i have 5 iMessages and my ipod bluged into charge but its not then my touch was back and i can do everythin

    And thats what happened ... Apple please make wifi always on and.. Make it off when its on dnd mode please

    Wifi is turned off due to inactivity and is turned back on when you go to use it

  • How do I create multiple itunes accounts/users on a single computer?

    My husband and I had two separate computers and we each had our own itunes accounts. Now that we are down to one computer, I want to create my own itunes account on his computer and back up my iphone. I was afraid to sync my iphone for fear of loosing all my contacts, apps etc. and having it replaced with all of his stuff. I'm sure we aren't the only household to have multiple iphones and only one computer. Help. Thanks.

    There are several different ways to use two or more iPhones/iPods with one computer. iTunes will recognise each device that you add and they will have each their own individual settings. Have a look at this help page for suggestions and choose the method that suits you best: How to use multiple devices with one computer

  • Powerbook G4 stopped working it cuts on but no spinning disc symbol..won't run I installed the start up disk and it starts up  but disk first aid says there is something wrong can't repair it..what do I do now? Do I erase everything and start over?

    The G4 comes on but that is as far as it goes...I installed the startup disc it started  and I  tried disk first aid but it says it can't be repaired????If I erase everything will this fix the problem as well as make me lose everything?
    The firsat aid  box says:
    " REPAIRING DISK FOR "HARD DRIVE"
    checking HFS Plus volume
    Checking events Overflowfile
    Checking catalog file
    Invalid node structure ( this is in RED )
    rebuilding catalog B-tree
    The volume Hard drive can not be repaired  ( in red)
    Error:    The underlying task reported failure on exit  (-9972_)  (in red)
    REPAIR ATTEMPTED ON 1 VOLUME
    0HFS volume repaired  ( in green)
    1 volume could not be repaired (in red)
    [email protected] feel free to send email thanks

    Bryan,
    Do you have a second hard drive?  If you can get the install disk to boot the computer then all is not lost.  Install a clean system on a second hard drive to get back in business.  If you have any backup copies of your software and files, use them to restore your computer to good working condition.
    Then, install some form of data recovery software on your second drive.  The recovery software can look at a bit mapped version of your drive and extract data that may be scrambled but usable.  Think of the drive as a book.  If someone tore out a few pages from the table of contents or index from a book, the main volume would be there but the book would not be repairable.  Or, if the table of contents is OK but someone tore out a chapter or two, the other chapters would be there.  The book is not complete but all is not lost.
    Here is a review to get you up to speed:
    http://data-recovery-software-review.toptenreviews.com/mac-recovery-software/
    Start by getting your computer working off a clean install on a second drive so the data recovery process will work faster and have a destination for the recovered data.
    Jim~
    btw, it is better to list your email as follows: sssail3 at aol dot com.  That format protects agains trolling for email addresses.

  • How can i create/install oracle 10 rac on my single windows machine

    can anyone help me to step by step install oracle 10g rac(rac environment) on my single window machine.
    if its not possible then y ?
    thxs

    Vmware is available for both Windows & Linux.
    Secondly you have to decide whether you want the guest OS (OS on which you would configure RAC) to be Windows or Linux ?
    And before everything, check your PC configuration. As Tim mentions in those articles, to run this setup, you need lots of RAM n power.
    Perhaps 4 GB of RAM and Core 2 Duo 2 Ghz + processor. If you are not having an appropriate configuration, it may not even run properly or your might hit memory dump errors on host OS.
    Amardeep Sidhu
    http://amardeepsidhu.com/blog
    http://oracleadmins.wordpress.com

  • HT203421 I down loaded Quick Time for windows in My "Windows XP SP3" computer. I got an Icon on the desktop but when I tried to open it I got This; Quick Time failed to initialize Error code #2096. I bought a second one and it did the same thing, I now ha

    I purchased Quick

    Hi kcorney1,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful for troubleshooting Quicktime:
    Error -2096 message when opening QuickTime for Windows in Compatibility Mode
    http://support.apple.com/kb/TS1875
    All the best,
    Jeremy

Maybe you are looking for

  • Report to see Delivery pending for invoicing

    I want to know the T-code to see delivery made but pending for invoicing.

  • Problem using memory RAM

    I Have imac Model Identifier: iMac11,3 Processor Name: Intel Core i5 Processor Speed: 2.8 GHz Memory: 16 GB I use Yosemite 10.10.2 and my problem is that when I use parallels desktop it, I copy files to external hard memory RAM from 11gv goes to 16-1

  • Can't move App to SD card in AT100-105

    Hi. I cant move Apps from my AT100-105 (3G version) to SD card. Ive tried different specific App2SD type, and no success at all. Im running 3.2.1.25.5.0002 - Android Portuguese version. No more updates available in service station. Can anybody help o

  • How to -not- compress images on import?

    Hi all, Sorry if this has come up a gazillion times before, but I cannot seem to figure it out. I want to create a simple PDF containing some images and two videos for laptop/beamer presentation. Whatever setup I do with the Distiller presets regardi

  • Trapping exceptions/error messages on form based on procedure

    I am trying to display meaningful error messages when various exceptions arise. I have created a form based on a procedure and the procedure works and returns an exception where I want it. I have been trying to use the PL/SQL Button event handler to