Real-time updates of an XY graph with a 2D array (x,y) inside a for-loop

Hi all,
   I am new to this forum, and relatively new to LabView (I've used TestPoint in the past), and I have a question. I have implemented a for-loop to grab data from an LCR meter (via GPIB) which becomes the Y data. The X data is calculated and tunneled into the for loop (although varies with incrementing 'i'). Anyhow, I am trying to store all of the data and keep the user updated throughout the test by plotting the XY Graph each iteration. Right now, the XY Graph plots one point at a time, so somehow the data I am appending to the 2D array (x,y data) is getting overwritten each itteration. How can I make it so that each new point is added to the array, making it bigger so that the data will be saved and so that the user will be able to see all the data in real-time on the graph as the test in running?
Thanks
P.S. I would post a screenshot, but I'm not sure how to upload here.

Hey Mendeleev3104,
There is an attachment section at the bottom of the post when creating or editing a post. You might want to use that to attach a picture of your code.
None the less I will give a shot with some suggestions without viewing your code.
You should look into using shift registers along with the Insert Into Array.vi to build an array of numbers. A good source of information for shift registers can be found in the For Loop and While Loop Structures help.
Hopefully this helps!!
Aashish M
Applications Engineer
National Instruments
http://www.ni.com/support/

Similar Messages

  • Real time update in Oracle Table

    Hi Friends,
    I have a new requirement (challenging) and i need your inputs to proceed further.
    User is expecting an real time update in Oracle Table.
    Example:
    I have an Oracle (10g) table DDSX-CALENDAR table. whenever a record(new) gets inserted into this table, i need to take this record and update the other oracle table (10g) existing in a different environment (schema and server).
    Please let me your inputs about handling this requirement.
    Thanks for your time.
    Regards,
    Diwakar Dayalan

    Thanks Prasath.
    I beleive for setting up the DBlink the user needs to have DBA role.
    How do we know the data has been inserted into the source, do i need to use a trigger for that ?
    In which way i can use the DB link inside a trigger to update the values in the target table.
    Example
    My source tables is
    DDSX_STR_BANK
    Store Number Bank Name Bank Account Number
    0001 BOA 111111111111 (assume previous value is 222222222222 )
    0002 BOA 222222222222 (assume previous value is 111111111111).
    Now two store numbers have got its bank account number updated in the source and the value is inserted, Now my requirement is once the value is inserted in the source, i need to update bank account number in SSDX_STR_BANK table in a different server and schema.
    SSDX_STR_BANK
    Store Number Bank Account Number
    0001 222222222222
    0002 111111111111
    Update the bank account numbers in Sync with the DDSX_STR_BANK.
    Please guide me how to proceed with this requirement.
    Thanks,
    Divakar

  • Real Time updates

    Hi,
    We have recently purchased a version of  Xcelsius Engage 2008 version 5.0.0.99 and have problems with real time updates when linking to an existing  Excel  sheet that has auto refresh queryu2019s the sheet is updating as expected but neither the preview nor exported flash files update.  Is it possible to do the above with this version of  Xcelsius?
    regards,
    Joe

    Hi Joe,
    It sounds like you have a connection tied to the Excel spreadsheet which updates your data.  If this is true, then this will not update the SWF file produced by Xcelsius.  When previewing or exporting the SWF file, it only translates the data/formulas used in Excel in actionscript to produce a self-contained SWF file.  The connection between the SWF and the original Excel file is then severed.
    The Xcelsius SWF files can only be updated in run-time via XML or web services.

  • Real Time update through ODBC

    One of our customers is currently using Lotus Notes to maintain service calls. They want to keep using Lotus Notes while migrating accounting functions to B1. Most of the BP master data will be maintained in B1, but they want to enter comments in Lotus Notes. Is there a way to make the changes in Lotus Notes but update data in B1 in real time, i.e. no other interface for upload? Can this be done by ODBC alone, and would it violate any business rules if this can be done?

    You can't write directly to B1 master data tables with ODBC.
    (see Forbidden, allowed and recommended database issues )
    AFAIK, a feasible workaround might be something like this:
    [code]
    1. in B1 create  a User Defined Table for your comments
    Tools - User Defined Fields - Manage User Fields
            - Click "User Tables"-button on the bottom of
              the form and add your table
            - In matrix:
               - Open "User Tables"
               - select your table
               - Click "Add" to add columns to your table
                    - CardCode
                    - Comments
    2. use ODBC to replicate comments from Lotus Notes
       to your User Defined Table
    you can fill in test data using
            - Tools - User Tables - [YOUR_TABLE]
            - use Tools - Form Settings to make your columns
              visible and enabled
            - Code and Name must be unique
    3. in B1 application create a Formatted Search to the
       field of your choice (for example BP MasterData -Remarks)
    create and save a user query
             SELECT T0.U_Comments
             FROM [dbo].[@SXM_TABLENAME] T0
             WHERE T0.U_CardCode = $[$5.0.0]
    Define the Formatted Search to the field you want
          to see the comments
             - Alt-Ctrl-F2 - Search By Saved Query - Auto
               Refresh When Field Changes - BP Code
    [/code]
    HTH
    Juha

  • Real time Integration between Oracle i-Procurement with MUMPS based System

    Folks,
    Has anybody worked on integrating Oracle Applications with any Legacy System? I'm interested in discussing real time integration between Oracle i-Procurement and Legacy System. Can 9iAS Advanced Queue be used to accomplish this?
    If anybody has any information on this topic please reply back or email me at [email protected]
    Regards,
    J Ali

    Yes, we have experience with the product Oracle9iAS InterConnect. Adapters are provided to integrate with iProcurement and legacy systems. If your legacy system is non-standard either partners might already have adapters or you can use the adapter development kit to build your own specialized adapter. Check out: http://otn.oracle.com/products/integration/index.html
    and I would suggest to contact your Oracle account manager to get a detailed product demonstration and references.

  • How can I get real time updates in multiple views when scrubbing through the timeline?

    I am using After Effects CS 5.5 on Windows 7. When I use the mouse to click / drag / scroll through the timeline, one view updates in real time, this is great! If I open a second view, it only updates that view when I finish scrolling.
    I would like to be able to scroll back and forth through the timeline, and have two different compositions update in real time (live update)?
    Is this possible?
    Thank you!

    The long answer is: No. It's not even a performance issue, it's how AE evaluates time, since time is fluid and can be mangled in a million ways from time-remapping to expressions...
    Mylenium

  • How to index a array to give it to for loop for one value at a time sequence to be ensured

    I need to give one number from a array at a time to a for loop. means the for loop have to execute one number at a time  from a array of numbers. How to do it

    Ranjeet,
    Ranjeet_Singh wrote:
    But question is same only. is in it ?
    With all due respect, NO.
    Please make sure you know what you are talking about before blatantly countering someone else's comment. Can you prove that your vi and TiTou's snippet will do the same thing?
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Weird problem with loading data from an XML using a for loop

    Hi,
    I have a strange problem. I have encountered this thing many a times but still don't know the proper workaround for it.
    I am trying to load swf file, a video file or an image. They can be present on a local system or on a remote server also. All the entries corresponding to the files to be loaded is made in an XML file. I traverse through the nodes of the XML using a for loop. On the complete event of loader info, example:.
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    I fill a container with the loaded data.
    My problem is when I am using for loop it doesn't works properly but if i use a statement like this:
    someFunc()
         if(i<arr.length())
         ... do something...
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    private function onComplete(e:Event):void
    ... do something...
    i++;
    All files are loaded properly.
    I think this can be because the for loop processes pretty fast but the content takes time to load, which ultimately leads to some wierd results.
    Please let me know how can this thing be done correctly by using a for loop also.

    You don't want to use a for loop to load several items.  The way you almost appear to have it is the proper approach... load a file and use the completion of its loading to trigger loading the next file.

  • Real-Time updating 2D Polar Intensity Plot

    Hello,
    I am trying to construct a polar intensity plot.  There are a lot of different solutions on the board but 3D graph and pixel by pixel plotting won't cut it for the update time I am looking for.
    Think 'weather radar'
    My current solution is to use replacePixelLine.vi.  I place one end of this line in the center of my picture, and sweep the other end around in a circle.  My pixel color data is my intensity levels, I switch data sets everytime I move into another angular bin.  Its quick enough to update every ~25ms, which is good for me.
    However there is a bad side effect in replacePixelLine.vi that makes all of this pretty much useless.  When the line must step diagonally, it moves 1 pixel in both x and y directions, instead of making an L by moving in x, then y.  This means that at 45 degrees, this vi draws only 71% of the pixels as 0 degrees.  On top of this, instead of scaling the pixel color data, it just lops off what it cannot plot.
    Therefore I have a strange situation where my data is plotted in a squarish shape and the angular bins don't 'arc' correctly.  The bins are just drawn as straight lines, either horizontally or vertically depending which side of the n*45deg lines you are on.
    Is it possible to change internal workings of replacePixelLine?

    Hi pschmal,
    replacePixelLine.vi is not a VI that is shipped with the Vision Development Module.  I assume you are using the IMAQ Get Pixel Line and IMAQ Set Pixel Line within a subVI that is named replacePixelLine.vi.  Is this true?
    Is it possible for you to post a bit of sample code that demonstrates what you are having problems with.  It is easier to diagnose and come up with possible workarounds that way.  Thanks!
    Kristen H.

  • After upgrading to OS 7.1.1 Maps no longer works correctly.  It is constantly "locating" and does not do real time updating.  Tried "Scout" map app it does the same thing.  Do I have something not properly set up for viewing Maps the way I used top?

    After upgrading my iphone 4s to 7.1.1 the Maps application does not work properly.  It updates very slowly and is constantly "locating".  Why is this happening after the upgrade?  I also tried SCOUT App it is does the same thing.  It seems like it is losing the GPS position.  Is there a fix for this?

    Any change after turning Airplane mode off and on and/or or after turning Location Services off and back on?
    If not, any change after doing a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release?

  • Real-time data extraction for FI-GL

    Hi All,
    I have a business requirement to have FI-GL transactions updated in 5 minutes or less in our BI system.
    As per OSS Note 991429 (Minute based extraction enhancement for 0FI * 4 extractors) it seems in theory possible. However, the settings in this note inidcate that the extraction can only happen every 3600 seconds (1h) or more to avoid losing any delta records.
    Has anybody been able to use either datasource 0FI_GL_4  or any other standard datasource to set-up a real-time extraction (the key point being a real-time update of 5 minutes or less, not an hour)?
    Thanks a lot for your help.
    David

    I would like to inform you, that SAP does not recommend to reduce the
    safety interval from 1 hour to 15 minutes.
    This setting can cause missing records in the BW system.
    However it is on your OWN risk, and it is NOT supported by SAP, if it
    will cause missing datas in BW.
    You can change the safety interval in table BWOM_SETTINGS.
    Please take a detailed look at the note 991429.
    Colin

  • Row operation on array with a For Loop

    Hi,
    I'm working with a large one dimensional column array. I'm trying to do the following
    for i=1:size(A)/2
    B(i,: ) =A(1+(i-1)*2:i*2)
    So, for example if
    A=          
    0
    1
    2
    3
    4
    5
    6
    7
    then
    B=             
    0 1
    2 3
    4 5
    6 7
    My approach was to use an array subset block inside the for loop to select a number of elements but I'm not sure how to transpose the selected elements into a new row to create the new array B. Is there a more straightforward approach?
    Thanks,
    Mike
    Solved!
    Go to Solution.

    try experimenting with the reshape array feeding it your input array and re-sizing it to output a 2d aray. It is much faster than using a For loop becuase the data never gets moved and LV just changes the array dimensions and updates the stride.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • About DTP with real-time access.

    Hello Gurus,
           setting for error handling only has an impact while repairing a DTP request (repair) and during the conversion of the DTP to standard DTP (for example, to correct an error during extraction).
          will you please give a simpel scenario to explain above words?
    thank you very much.
    Fran

    Hi,
    Use :
    With SAP NetWeaver 7.0, SPS 14, the following changes and enhancements are available for real-time data acquisition:
    ●      Changes to the menu and the context menu of the monitor for real-time data acquisition
    The menu and the context menus for the individual objects in the monitor for real-time data acquisition have been standardized and enhanced. In particular, it is now possible to assign daemons and data transfer processes on various levels using context menu entries. For a complete overview of the functions in the menu and in the context menus, see Monitor for Real-Time Data Acquisition.
    ●      Assignment of daemons for InfoPackages and data transfer processes (DTP)
    To assign InfoPackages and data transfer processes to a daemon, you can call the monitor for real-time data acquisition in the following ways:
    ○       In the Data Warehousing Workbench using the respective context menu entry Assign RDA Daemon.
    ○       In InfoPackage maintenance using the Schedule tab page, and in data transfer process maintenance using the Execute tab page.
    The button names for jumping to the monitor for real-time data acquisition have changed here. To jump to the monitor, choose Assign Daemon.
    ●      Repair process chains for repairing a broken data transfer or a missing delta in the DataStore object
    In certain situations, a gap in the delta of the DataStore object can occur if there is a closed request in the PSA but there is no corresponding request in the DataStore object. For example, this is the case if a DTP request has terminated due to an error in the transformation. Here, you can create a repair process chain to repair a missing or broken update from the PSA. The repair process chain contains a standard DTP as well as any further processes required for subsequent processing (such as activating the data in the DataStore object or subsequent process chains). When the repair process chain is executed, the complete delta is loaded from the source into the DataStore object and processes for activation and further processing are executed if required.
    ●      Process types for starting and stopping real-time data acquisition
    You can use process chains to control real-time data acquisition using process types Start Real-Time Data Acquisition (RDA) Load Process and Stop Real-Time Data Acquisition (RDA) Load Process.
    More Info :
    http://help.sap.com/saphelp_nw70/helpdata/en/47/2731751c2a2dede10000000a1553f7/frameset.htm
    Regards
    Ram.

  • Smart Mailboxes: Why don't they update in real time?

    I have a Smart Mailbox that shows me any Unread messages i have. As i read these messages, they become Read messages, yet they remain in the Smart Mailbox. Is there any way to initiate a real time update to these so that I am not required to switch Smart Mailboxes to initiate the update.
    Not very 'smart' are they…
    Any solutions are welcome.d

    sphereboy wrote:
    That all sounds correct on paper. But in real life it just doesn't work out that way. Let's say I have 20 Unread messages in my Unread SmartMailbox. As I read each message they become Read messages. The messages do not automatically clear this mailbox. They stay there in a Read status inside the Unread Smart Mailbox. The only way I can update the mailbox is by switching over to another mailbox, any mailbox, and back to my Unread Smart Mailbox and then it properly shows only Unread messages.
    And that is the correct action...the update trigger is when you move out of one and into another (acts as a confirmation that you're done).
    Seems appropriate and a small price to pay. It would seem to be a burden if otherwise as it would always be working while you were trying to read....can't have everything at once

  • Best data provisioning tool for very large amount of data updated real time?

    about a few hundred million entries of data a day and it must be replicated to sap hana in real time, what would be the best option?

    Hi Wayne,
    If you are looking for real time replication, then SLT is the best option. What is the source system for this replication?
    Regards,
    Chandu.

Maybe you are looking for

  • How can I have two different styles of hyperlink text on one page?

    Hi I'm using an external css document to control the look of my site, and would like to have two differnet types of hyperlink. One for within the content text, which would be the same size and style as the content text, and one that is BIGGER and BOL

  • Alerts for Marketing Attributes in CRM 2007

    Hi We are using CRM 2007 and we have marketing attributes maintained on the Sold-to party business partner. We want this marketing attribute to be displayed in the interaction center when the agent confirms the account. How to configure Alerts (Inten

  • Can't get Imac to connect to Ipad or iphones

    I just got an Imac running version 10.6.7... Intel Quad It came with Facetime and Im getting frustrated. I have set it all up, even verifying email to connect with me. I have connected / facetimed with my  daughters I phone and  ipad 2, but t 15min l

  • No pdf options in contexual menu

    I'm using a new macbook air, running lion, office for mac 2011, and adobe acrobat x pro.  When I "right click" on a word file, the contextual menu does not contain and options to creat a pdf like it does in the windows environment.  Is this just the

  • ZCM Asset discovered Products with unknown version ?

    Many products discovered, show "unknown" version. Who knows what does it means ? I'm using ZCM 11.2.2 Thanks Sylvain