WPF c# time real multi field update

Hello

I have reviewed all of the examples that came with NIMS 2013 and also sought in these forums but can't find what I'm looking for.

I have a WPF c# application that needs to display an additional plot in real time on the same graph for each button click.

Basically, I click on a button and my app measures some signals and track them in real-time (where X = GHz, Y = dB).  X always has a fixed range and my application stops playback once it sweeps away the beach.

I need to make the number N of these button clicks but draw all the readings on the same graph in different colors.  Just to be clear, that a single parcel will be updated in real time and others (previous clicks) just remained there for history.

I know I can do:

Double [,] data = new double [16, 256];

... Fill them in memory and then do

Graph.DataSource = data;

But is not in real time and I need one trigger (another button) to call Graph.DataSource = data;

I also know that I can do:

ChartCollection data = new ChartCollection();

data. Append (X, Y);

But I get exception System.ArgumentOutOfRangeException, the Index values must be strictly increasing for each plot begins with the same number.

What is the solution here?

Thank you!

Since you have several plots, independently updated, I recommend using data separately for each plot of land sources and adding them to the Data collection, rather than a collection pre-allocating and assigning it to DataSource . Because it looks like you want to update the chart with individual values, since they are acquired, you should be able to use a separate table for each parcel collection. For example:

// Add the data as a new plot in the graph.
    var data = new ChartCollection();
    Graph.Data.Add( data );

...
    // Fill chart with samples as sweep data is acquired.
    data.Append( X, Y );

Because the values of X are only for a single parcel and do not loop back when you perform several scans, you shouldn't have a problem with the exception of out-of-range.

Tags: NI Software

Similar Questions

  • Table of waveform in time real Multi ground

    Hello

    I've attached a picture showing part of my code. What I'm trying to do is to create the exact waveform as "Cell pressure (kPa)", but in the x-axis in real-time. I created the "wave form" and that it does not work enough. This table will 'Y' to 'build the waveform"will contain 8 items and when I run the program,"Waveform"shows all the elements in a plot rather than in 8 different locations in a single diagram.

    Can someone choose where I am doing wrong?

    Thank you

    Hoda

    Hoda wrote:

    Table of waveform isn't the time component. I need to show all plots on a graph and real-time

    As you convert scalar data to a cluster to the chart, he has no information indicating the time.  Missing time initial T0 and the dT for the time interval.

    Outside your wire loop right now for the Xscale.Offset property for the graph node.  Because your loop time is 1 second, you must set the DT.  But if it was something else, you must set the XScale.Multiplier property as well.

  • A date/time in Access field update

    OK, I hope that I will provide you with enough information to solve this problem, but if I don't please do not hesitate to post everything that you could possibly need and I will it get to you.

    I have a form that we are trying to update a date field in. However, there are 8 date fields and they may or may not contain a date in the database. I tried everything with regard to the update of these dates. As long as we have no dates "null" for updating the program works very well. As soon as we have a date null I get the (now always frustrating)

    Run database query error.
    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Type mismatch of data in the expression of the criteria.

    Data in Access fields are short dates.
    I looked online and I have tried several questions but no solution found for the moment.

    The code is attached...

    Thanks in advance for any idea!

    OK, I did play a little more and I could make it work. The most important thing was the function of createODBCdate that the second thing is that I had to remove the quote in the segment of the update. Thank you for pointing me in the right direction!

  • How to simultaneously update multi field (chart wpf)

    How to use several piece add simultaneously data?

    For example, there are 18 parcels of graph. The Datasouce of the graph is ChartCollectiongraphds [18]

    It should run 18 times to APPEND to update the whole graph.

    Code:

    APS [0-17] = graphds [0-17] .append

    Dispatcher.BeginInvoke (aps, simulatedData) / / run 18 times

    I hope that there is similar data

    graphds. Append (datasources Point [18])

    who can cool 18 draw data simultaneously.

    complete code to testmultiplot.zip

    Thank you

    The types of specific elements involved aren't important. The idea of the AppendAll helper function is just to have a single method to perform all work to append, rather than citing for each separate addition. You can also set the programme of assistance generically and use any type of data for the items:

    private static void AppendAll( ChartCollection[] charts, IList[] values ) {

            for( int i = 0; i < charts.length;="" ++i="" )="">

                charts[i].Append( values[i] );

            }

        }

  • Updated in time real front panel

    Hello dear colleagues,

    I'm working on a program to test a printed circuit board. The problem is I want to show the progress of the test on the front panel in real time. Global variables found to be very useful, but they are not exactly what I'm looking for, since writing to the variable does not influence the indicators of reading instantly him (naturally).

    If the solution I provided is to have 2 loops: one where the subVIs and the subsubVIs are executed and write their date to the global variable as soon as it becomes available. And a second loop that runs at the same time and goes constantly date of the global variable to the indicators.

    However, this loop 2 solutions feels strange to me. Is there a better way to update the façade in real-time? Something like the pointers or references? I tried the nodes property and 'references' but they both work only locally...

    I wish all a pleasant day

    Tarik

    I usually have a loop which does no GUI: users by pressing the buttons/edit orders digital and/or update of the indicators.  So my trick is to use user events to pass data subVIs and loop parallel to the GUI.  The Structure of the event will see the event and you can just write directly to the terminal of the indicator.  It works very well and is much more scalable than the global method.  It is not also question, so you're not wasting CPU and memory resourses to update an indicator that has no real need to update.

  • Time real ADC/DAC for SMPS by using Labview and USB

    Hi all

    I asked the Sales Department of this same question, so here's a two-pronged approach:

    I am reserching a control algorithm for power switching, and so far, its performance simulations seem to be good.  Now, the goal is to implement the circuit from the experimental data.

    I've seen several NI USB DAQ boxes that seem to have the performance, I'm looking for (for example, the box USB-6211 a sampling rate and resolution I need).

    The control algorithm uses the following mathematical functions: add/sub/mult/div/exhibitor and derivative/integral.

    My question is this: is "strong enough" Labview take four-channel data 250Ksps, crunches the numbers in an equation and spits out the answer to an analogue on the channel, while time REAL?  I'm looking for a rate of analog output of ~ 100 kHz.

    Thank you for any suggestions you have!

    -Rick

    Hey,.

    So if you were trying just to perform an input or output, then the box USB-6211 would certainly be able to treat it as the machine clock could manage the inputs/outputs, no software. However, what you are wanting to do, basically a feedback system, he will have to avoid (at least to a USB device) because you need to be able to specify Active which is the output. So, for this reason alone and the fact that you want out of 100 kHz, this device and the USB devices in general will be not an option any what software you use, LabVIEW or otherwise. On another note, you want to make sounds more like live update, not in real time, which is more on the jitter. Bottom line, for these kinds of requirements, you might need to move to an FPGA card, something like the NI PCIe-7841R would work. It's more expensive, but for your needs, FPGA will be the only option and it comes down to the latency of the bus, but also the response time of software. With FPGA, as shown in the first scheme of the following document, you basically close your software through hardware loop.

    Basics of FPGA

    http://www.NI.com/white-paper/6983/en

    -Ryan S.

  • Pavilion, Vista 64 - bit OS HPw19b HD in time real returns. The speakers emit the sound of "frying".

    See equipment & OS, above. My sound is 'rough '. I checked the cables and that they are properly attached and not let go. Diagnostics indicates that drivers in real time high definition are updated and working properly. How can I determine if the problem is in the monitor or the computer. I can fix it or will I need a repair installation? Thanks for any help.

    DavGG

    DavGG

    Before you go out and spend money there are a few things you can try.

    First of all, make sure that your drivers are up to date on your computer. If you could provide the product number for your computer, we can provide you with page drivers for your computer where you can go to make sure that your drivers are up to date. I provided you a link below for how to find the number of your product to your computer.

    How can I find my model number or product number?

    http://support.HP.com/us-en/document/c00033108

    Then make sure you have no other devices that contain magnets near your speakers.

    Finally, try a different app for sound. For instance if you hear the scratching during execution of the audio CD try a video or something and see if you still get the sound of scratching.

    Please re-post with the results so that we know how the steps work for you.

  • Average displacement Subvi does not refresh the data in time real host VI

    Hello!

    I time real host VI that has evaluate the NI 9215 cRIO block data 9073. He takes analog data and calculates the phase shift. It works well with the connected equipment and displays the results. I need to get the moving average value of phase shift, so I add moving average Subvi, where main VI entries - new value (phase shift measured) and ms and output - average value of travel time. When I run real time host VI it gives me a single data and stop get new data from Subvi. It refreshes not even values measured in real time. So the problem somewhere in the accommodation, with sub - VI. How it can be solved? How can I get real host VI with the moving average value of Subvi update running time?

    Thank you.

    Your problem is that you have a loop that runs until you press the Stop button inside your Subvi.  If you try to use a Global Variable that is functional, you have a few things wrong.

    1. the loop should run only once.  A TRUE to the conditional stay Terminal wire.

    2. the shift register cannot be initialized.  That is how he can keep the old elements in a story.  Use a first call? with a case structure so that you only initialize the table of history inside the loop on the first time the VI is called.

    But if you really want to make your life easier, just use the PtByPt.vi mean.  NOR did all the work for you.

  • time real tracing of data!

    Hello

    I am struggling with trying to incorporate what appears to be a simple graph! I run a loop that takes a set of data by iteration. I would now like to each iteration to get the maximum value of the data and it plot on a graph in real time, so that as updates to loop my updates graphics and I can show the maximum value for each iteration in real-time.

    I would also use a node as opposed to a shift register feedback. Can someone show me a simple vi who would do this with an arbitrary set of data? Please show with a feedback node. I tried the crux of feedback - but it does not update each value AFTER one iteration of the loop so I tend to always have the last value of the truncated chart

    Thank you!

    Example attached with graph and the Feedback node

  • Execution of several executables in time real (.rtexe)...

    For PXI (or any embedded controller OR) several executables in time real developed in LabVIEW (.rtexe files) can work simultaneously?

    I'm almost certain that the answer is 'No', because the whole point of a RTOS is the code to be "as deterministic as possible", with the Jig and schedule reduced by removing items (such as "interference of the BONE") out of control or understanding of the developer.

    Pouvez, however, write a single RT executable that loads into two routines that work "in parallel".  If you have a multi core processor, you could book separate processors for two routines that should improve their independence from each other.

    We met a slightly different variant of this issue during the migration of code LabVIEW 7 to a LabVIEW Project "oriented" development (introduced in LabVIEW 8.x).  We used to have several different programs of LabVIEW RT who has used a code different on the PXI - when we ran the host executable, it loaded and run the appropriate code of RT (recorded in a .llb).  This works well with executable RT.

    What we developed was a system where we have recorded each RT executable as a routine named separately ( not Startup.rtexe) and set them (initially) to run as a startup.  When the host code runs, it queries the PXI for the name of the startup routine, and if it is not 'just', change us it on the PXI and make the PXI to restart.

    [In fact, don't really do us this way, that 99% of the time, we always run the same executable RT.  What we did do was to write a separate "define RT Startup" routine that we almost never executed, unless we "know" we run an earlier version or something like that.  This, in turn, tells us that the PXI is configured to run and what executable RT can be defined as startup, then makes the changes, restarts the PXI and exit.  The 'rule' is that if you change the executable RT, don't forget to change the back when you're done.]

    Bob Schor

  • That is to see in time real 4K in after, nvidia qaudro k5000 Titan Z or something else?

    That is to see in time real 4K in after, nvidia qaudro k5000 Titan Z or something else?

    My PC is X - 99, i7 - 5820 k, 64 GB, raid0, SSD...

    best,

    In it's current state given after effects is mostly from the CPU then graphics cards make little difference in performance. Adobe usually (but there is no guarantee) announcement of updates at NAB tends in a few weeks, so I would hold off buying new hardware, including expensive equipment, until you see the new requirements and dates for new versions of output.

  • Insert only the fields updated

    I have a log table that is based on the main table. The main table have 50 frames. Any updates in the master data shall be recorded in a new table. If the main table will be only the latest data updated.
    Any change in the main to insert in a connected table table. I need to insert only the fileds all fields update.
    How to write the insert statement in forms 6i for insertion in a connected table where only the fields changed.

    INSERT TO EMASTER_LOGTABLE
    (ECODE,
    ENAME,
    EDEPT,
    ETRADE
    )
    VALUES
    (: ECODE,)
    : ENAME,
    : EDEPT,.
    : ETRADE
    )
    Line will be inserted in the EMASTER_LOGTABLE with the field updated only not all fields, except primary.

    ORA-01858 is returned when you switch from the non-numeric characters at a time.  SQL more:

     SQL> SELECT To_date('##') as MY_DATE from DUAL;
    SELECT To_date('##') as MY_DATE from DUAL
    *
    ERROR at line 1:
    ORA-01858: a non-numeric character was found where a numeric was expected

    If you notice, in the code, I gave you above, I created a special 'NvlDate' to use all NVL functions where you are testing for a date.

    Put it in your trigger and use it on EACH column which is a date.

    +(... I not create NVLDate for no reason!) +

  • Create a subfolder of bookmark in time real bookmarking a page in a folder that I created for a registered earlier does not work

    Create a subfolder of bookmark in time real bookmarking a page in a folder of bookmarks, I created a saved bookmark previously does not work.

    Previously on a Windows XP computer, I could choose the "select" option and create a new folder under the folder I chose to put my new bookmark. "." On this computer, the 'new folder' option is not clickable.

    I thought about it. Thanks anyway.

  • I need to know if the new FireFox 8.0.1 supports Norton? The last time I tried to update Norton would not work and I had to go back to 3.6 please let me know. Thank you Ron

    I need to know if the new Fire Fox 8.0.1 will support the Norton toolbar? The last time that I've updated for Fire Fox 5, Norton would not work and I had to go back to 3.6. Someone said that they were working on this issue, but I wish you to know before you go. Norton manages all of my passwords. I do not of course want to lose this functionality. Regards Ron

    I use Norton 360 and Add-ons are compatible with Firefox 8.0. Given that v 8.0.1 was not a major update, it shouldn't be a problem. Please note that the new version 8.0 of Firefox disable add-ons, then you will need to return to the page Add-ons and just Activate the Add-ons.

  • Why the Firefox 4 is not restore all the sessions that were open at the time? Before the update, I've been invited either ("SAVE AND QUIT") or even if she closed UNEXPECTEDLY (crushed), he AGAIN restored. New version does not offer "save and exit".

    Question
    Why don't Firefox4 restore any sessions that were open at the time? Before the update, I've been invited either ('SAVE AND QUIT'), or even if it closed UNEXPECTEDLY (crash etc) it STILL restored everything. New version does not offer "save and exit".

    Now, Firefox always stores the old session which you can access from the history menu by selecting "restore previous Session."

    If you always open the last set of tabs, another approach is the following:

    1. Click on the orange button Firefox, then select options to open the options window
    2. Go to the general Panel
    3. Change the setting "When Firefox starts" to "show my windows and tabs from last time '.

Maybe you are looking for

  • Why am I being asked to buy antivirus software for apple

    I have a MacBook Pro and currently on a trip abroad, but a lot of adware and also being asked to buy antivirus software. Normally at home in Ireland I don't remember the amount of adware. The impression that Safari was strong enough to withstand the

  • Print a daily calendar entry every two weeks

    I would like to create a repetitive calendar entry that will automatically print the calendar of the day to the default printer. This used to be very easy in the older versions of Mac OS X, but I can't seem to do with alerts current iCal. I tried to

  • Monitor dell U2412M will work on HP Envy 700-230qe

    I buy a HP ENVY 700-230qe, my current dell monitor will work smoothly with the installed graphics GeForce GTX 645 card?

  • HP update

    Hi - I use a photosmart c5280 with windows 7 64 bit, I have recently taken my pc to factory settings and reinstalled my printer from the hp Web site - everything works OK except that I get a half a box tells me an update is available, but when I clic

  • Laptop starts in mode 'sleep'

    When I try to boot my laptop, it goes in standby mode and primer not. Often takes several attempts... I'm afraid to shut it down.