Real-time drawing in flex

Background:

I have a table of about 10 000 points, what I need to graph. The original way that was done in PHP was to simply create a 10 000 image pixels wide and put in a box with overflow hidden and use JavaScript to move the image to the left at all times to make it look more lively. When I try to do that in flex using mx:move, the graph is too nervous. I want to go smoother. When I use only 200 of our data points in the chart moves pretty smooth for me. I tried to increase the pace and also used mx:AnimateProperty on 'x', but it seems to be the size of the image that is the problem.

Current idea:

My new idea is to have a window of 500 pixels and draw the graph in real time. The theory is that the graph would begin putting 500 points in the area of the first 500 values in the table. then, in each image, each point takes the value of one on his right and the last of them takes the next value in the table. I have not the slightest idea where to begin to make this happen or if it is still the best course of action. Any help is appreciated.

or perhaps cela?

http://www.stretchmedia.ca/code_examples/chart_range_selection/main.html

Tags: Flex

Similar Questions

  • How can I draw the intensity in real time of a picture in time real (imaq 1394)?

    I have a firewire camera.

    I hooked up my camera to my pc with labview and now I display image in real time. How can I draw the intensity of a region dependent on time?
    Y - intensity
    X - time... I would watch the variaions real-time intensity...

    Thanks in advance

    The light meter example is pretty much what you want to do. It is located here:

    \National Instruments\\examples\Vision\2. Functions\Light Meter\Light meter Example.llb\Light meter Example.vi

    In the example, the x axis are the number of iteration, but it is easy to modify to use a graphic instead of a graph and chart the time instead.

    Hope that helps.

    Christophe

  • Real-time communication between PHP and Flex application

    My client wants to replace the buttons 'Refresh' in their Flex/PHP app with updating in real time, so as to data changes, it is pushed to the client.

    I came across a few articles which cover this topic, but I'm hard-pressed to find the best approach. Can someone suggest possible solutions?

    Any help would be appreciated. Thanks in advance.

    If your server supports K 100 simultaneous connections with push (permanent connection)

    It can be used 100K users simultaneous apps. With polling stations, it can serve more

    100 k because it opens a connection and then it closes once the answer has

    been sent, so until this client polls again it can handle other requests of

    other customers...

    C

  • Continues to draw in real time

    Hi all!

    I use the graph XY to plot multiple data receives serial com and I wanted to show the graph in real time. My question is, how to do from the beginning?

    Thank you!

    Why do you use an XY graph instead of a chart?

  • Conspire in real-time

    Hello

    I'm working on a project of tension. I have read the data using the OPC. My variable is double wall to an address of mutual FUNDS. I want to plot these data to 10ms resolution. Is this possible?

    I have download a code sample, I tried to solve this problem. but is is not accurate and does not.

    You have an idea to plot the data in real time with a resolution of 10 ms?

    Hi beginner,

    you really need to redraw your project!

    (1) not the OPC data source really provides new data with sampling frequencies of > 100 Hz?

    (2) do you really need to draw the new data with a frequency of 100 Hz? You can't look at the graph that fast!

    If 1) applies: make a separate loop to collect data at the necessary pace in a registry to offset (or any other method to store the data). If 1) does not apply: lower the rate to which you are trying to read new data!

    (2) applies (no alternative): update your table with a rate of (say) 5 Hz. It's always fast enough when your field visualization and a lot less CPU consuming.

    You need to separate the task of gathering data from the task of their display!

    Your last question:

    Any multitasking (standard) OS will involve a big Jig in your loop times. With a RT - OS this jitter is much smaller, but still different from zero. See the plug...

  • In real time several parcels using the graphics buffer XY?

    Hi all. My teacher wanted to add a second set of data to the plot in real time, I've created in my vi. I was able to trace the two sets of data, but not as two plots. I managed to add a second point of y to the plot. What is the appropriate method for the use of a buffer of xy-graphic inside a loop to draw two separate parcels?

    The idea is that once I have two plots I can adjust a second axis and adapts the second group of data to this axis.

    Thank you!

    Nukem,

    LabVIEW 2010

    PS. Here is a picture of the small section of my program which is graphically representative data.

  • problem while conspiring waveform of the signal in real-time

    Dear Sir

    I use LabVIEW8.2 and USB1208FS for data acquisition. I have configured hardware with LabVIEW and data in real time using the Universal Library VI AInScBg.vi. When I draw my signal on the waveform (amplitude vs. frequency) then on axis x frequency ranges from 0 ~ 0.49 hz. I have change the sampling rate of 1000 Hz to 4000 Hz, but on the x-axis without frequency change occurs and it is set at 0.49 hz. Can you please guide me how can I get the frequency of my own interest on the x-axis.

    I enclose you daughter of LabVIEW for reference.

    Kind regards

    Muhammad Irfan

    Student

    UTP Malaysia

    0060149087570

    Simply change the text label of the x-axis of frequency does not automatically the correct calculation. You do not pass in the sample information in the service spectrum, so you get no frequency information. You can see the strain on the entry point. The function expects a data type of waveform as input. Without it, the dt will default to 1. Then, use the function create a waveform and add information from dt to it as well as your table of Y.

  • How do to accumulate data acquired in the table for a real-time XY graph plotting

    I have current and voltage values which I would like to draw the graph XY.

    Problem is that these are 1 d signals.

    1. Please tell me how I can earn these value in table, so I can have my XY trace.

    2. is there another way to plot in time real graphic XY of the acquired values.

    (I use NI 9205 analog module. I can see real-time signals i.e. time vs current and voltage time vs on my front.

    I need voltage vs current values in real time).

    You can help.

    Thank you.

    Try something like this...

    Notes:

    • If you simulate "as soon as possible", you put a period inside the loop.
    • As the table grows forever, you will be eventually run out of memory.
    • Since the x and y of the simulation is at the same frequency, all points will be on the same line.
  • Do curve a real - time of the linear adjustment computed

    Hi, here is how my program works:

    (1) plot data read from a file

    (2) user can move the sliders to select a range of data

    3) allows users to choose the scale with control 2 Y (Y minimum and maximum)

    (4) make a linear adjustment of certain data in real-time and gives the results.

    And there's no problem, I asked the graph xy of a while loop in which I drove

    (1) the function of fitting (selection of data to 2 inhabitants variable (cursors)) and table functions

    (2) local variable 2 (write) to adjust the scale Y with the number in the control.

    Data and sliders move user appear, all right.

    The problem is that I want to draw the fitted line of the xy-graph, so I did 2 x 2-number-table (with x = 0.1 and y = intercept, slope + interception) and...

    I must establish xy-curve in real-time to the Assembly line to refresh on a cursor move XD

    So I put the chart at the time, and I traced it each time the moment of the cycle (I used a condition with shift register to skip unnecessary calculation).

    And here's the problem: when the xygraph is traced the scale there is the default. A few ms then the scale will have correct (when the program has wide are the values of controls).

    Is there a way to avoid that the graph will go to scale by default when it is drawn again? Or is it possible to trace the line of editing without trace all the xy graph?

    Thank you

    PS: I tried to put a sequence stacked with paint 1) graph 2) scale but cen see you in any case the flash of the scale Y incorrect

    I think all you need to do is disable autoscale for axes.

    Overall, there are a few very complicated and very dangerous built code. Here is a small sample (are there many, many others!):

    The code on the left can blocking the program, for example if the data are all zero. Why is there a local variable? thread just from the source, it is just there! What you probably want instead of these small while loops is the array of threshold function. No need to loop.

    To write two properties, you use oven (!) property and three structures of sequence nodes deep stacked. Property nodes are running up and down, so all you need is the code below! Also note that 'table of index' is resizable. You don't need to wire the index unless you want something special.

  • Overview of brush (red dots) in real time?

    Hello

    Some of the more complex brushes in Illustrator CC display these "red dots" while I paint, then brush return when I stop drawing. Is it possible to get in real time?

    Thank you!

    N ° e.g., an art brush extends over the length of the path. Illustrator first needs to know how long the road will be.

  • Update of the pixel in real-time data

    Hello

    I look at the options for the implementation of a real-time filter feature in photoshop, and I would like some opinions on implementation strategies.

    Basically, I want to update the contents of a layer (lets call it B) when the user draws another layer (lets call it only A), such that the contents of the layer B is a function of a.

    This task will be possible using the functionality exposed by the Photoshop SDK?

    Cordially Toke

    Theoretically, it could be doable, assuming that the tool used to change events appropriate b triggers (only not all tools, unfortunately) AND your A layer updates can be performed without disrupting the work of user b. What you need to do in this case is to implement a plug-in automation based on the earpiece of the SDK samples that would monitor events. At the event you determine the layer to activate it in your code C++ and if B then update has. The problematic part here would be whether you would be able to change the current layer in a way that is not interrupting the work of user b (for example, you probably wouldn't occur a change b to change the current layer to A, which would cause the focus jump to A and then go back) and it would depend of the type of changes you want to.

    It would in any case, the branch, I would like to take here.

    HTH

    Ivar

  • Is it possible to record an animation in real-time in Flash?

    My first simple project with animation (via Flash if possible) will be animated in writing.

    The Situation

    I have a text on a background image. I want scribble on one of the words with a digital pen and write another word beside her, exactly as you would when you come across a suspect word what evidence of reading. You will draw the digital pen on a Cintiq 22HD. This is my first use of Flash, so I don't want to spend hours learning how to animate the writing. Just a simple "Record" at this stage.

    Question 1

    In Flash, can I import an image as background, prepare my pen and somehow save my movements of stylus in real time? IE is there a button Save somewhere in Flash? I don't want to save background as well, just the writing part. When I'm done writing I press Stop.

    I hope you end up with is a real-time animation of exactly what I have done with the pen. I can then take the animation and the place elsewhere if necessary.

    Question 2

    If Flash is unable to record, what other software could have this capability?

    There is no document in flash.

    Camtasia studio http://sachachua.com/blog/2014/03/How-i-Animate-sketches-with-Autodesk-SketchBook-Pro-and-/

  • Filter in real-time / layer style plugin

    Is it possible at all to write a plugin to filter which is applied in real time, that the user draws on a layer?

    I think of something similar to the layer styles (for example, drop shadow) which are applied immediately while the user draws on a canvas. As far as I can see, there is no API to add new styles of filter, but there is perhaps a work around for similar behavior by using filters?

    I want to create a filter/style simple mirror reflecting the right side of a layer on the left side as the user draws on a layer, because it would be very useful for the design of symmetric structures.

    Or could be achieved using multiple layers? For example, 2 layer on top of layer 1, where half right of layer 2 is completely transparent and half left of layer 2 contains a mirror of layer 1 version? But then how could it be continually updated Layer 2 while the user draws on layer 1?

    Any help is appreciated!

    You can do within your plugin, as does fluidity.

    But, as explained in the SDK, you can not write a plugin that lives of the updates on the document or add layer styles.

    Regarding symmetrical painting - which is already available in Photoshop Extended using 3D texture mapping.

  • The performance improvement chart real time

    I'm working on a simple graph in real time. The data is queried every 50ms, and each survey results in a line one pixel wide, height in pixels (data_point) . The chart scroll such as new data is located on the right, and the oldest values ends up by falling from the left.

    In other words, pretty basic.

    My solution is embarassingly brute-force, in what I just use theMC.graphics.clear () and a loop of lineTo()s for each graphic update. If this appears correctly (and I can control the refresh rate to mitigate CPU burn), it should be painfully obvious why I want to get away from this method.

    I have to scroll or pan the a full graphic pixel to the left (and remove the line to the left) and then just pull a new line on the right, but I don't know where to start. Assuming that such a thing is possible in AS3, someone would be kind enough to point me in the right direction?

    This can be done a few ways.

    First class graphics.

    its safe to assume that you draw with the graphics removed the displayObject?

    Otherwise, you make several updates in the loop.

    Remove the displayList drawing while pulling all parcels.

    Then, BitmapData.

    You can use scroll(1,y) to move the image to the left.  In addition, by using bitmap data, you can lock the bitmapData to limit the refreshment of a given area.

    workign with the image bitmap information is easier to use when drawing...   Of course, this requires a little more math you can't use just line with bitmapData.

    But you can use a matrix to rotate a line at 90 degrees and increase in length.

  • Painting in symmetry in real-time?

    Hey,.

    I want to be able to paint with any paint brush tool and Photoshop copies the brush strokes in real-time on the X, Y or both axis. For example, if I pull a half of one, the other will half draw Hello.adb exactly the same thing on the side opposite of the canvas.

    Can someone help me find a way to do this either here or through a tutorial please?

    Thank you

    Once again, it is already there as part of the 3D painting features.

    (and by defining the mapping of texture on a postcard - you can set any desired symmetry)

Maybe you are looking for