Chart with graphic behavior

I would ask for advice about how to best manage the following scenario:

I often update a XY Chart, with 12 curves. I created a Subvi ActionEngine which acts as a buffer (add points, read out data) of the graph, and has a few other actions, like emptying the buffer, decimating the data points, etc. So at 1 Hz rate I send data to this XYGraph 12 curves, and it will redraw, everything is OK.

There are 12 permanent tasks of data acquisition, with a frequency of 1 Hz, I want to show the user how to change the curves. It is also important to have a line of vertical slider so that the user can examine the values to different timestamps (X - values are absolute timestamps). Everything works fine, except that when I turn off the X-autoscale, if the user cannot see lets say the last hour of data points (3600 X 12 points curves, I know I should decimate usually, but LabView usually completely manipulates the situation OK when you have several points and pixels... at least then I can live with that).

So the problem: If X autoscale is disabled and I have send new data to the chart sets every second, the chart does not display the points on the right side, as in the case of a graph. Shell how I make the chart handle this situation? Shell, I put the 'max' (X-scale - range - Maximum property) of the scale-x via property nodes every second? Is this OK to do? Any other idea?

A kind of workaround would be to use a chart XY-Graph. The user could inspect lets say later 1 hour of data with the table (or disable autoscale, the last minutes if necessary) and the XY-Graph would work as an overview, the user can manually update by a button and after the game with the zoom features, etc...

What do you think? How do you manage such a request for data acquisition? If the user needs to see what is happening recently with curves (pressure, flow rates, temperatures), but also be able to examine the evolution of the curves of the last 24 hours...

Edit: hmm, usually I get new ideas after writing my problem I think I try to attack the problem from the wrong side: instead of fighting with the properties of the graph, I could just create a 'Set Range' action in my Subvi buffer, so when the user wants to see lets say that the last 10 minutes of data , I only send these data to the Subvi points to the curve... hmm I think this would be a more pleasant solution... What do you think?

Here are a few options. You may want to consider depending on your actual application:

  1. A graph-based mouse event opens a new VI, where you put all the data that you want and let the user to play with him. When they are done, they close and you will return to the live graph. It's somehow easier, because you are working on a separate copy.
  2. The range of the actual data fed to the curve is controlled by a separate scrollbar X. The scale is then set to autoscale. When the user changes the value of the bar to scroll or zoom, you stop the chart update. That you take back the update after a time-out or after the user makes the scrollbar of the max value or after they have pushed a button to refresh.
  3. Feed you all the data in the chart, but you control the X scale. In this case, you must still decide when to stop the change of scale and when come back.

Tags: NI Software

Similar Questions

  • Publish reports migration with graphic functions.

    Hi guys,.
    I'm working on the relationship between 10g and 11g migration and I have a problem with the reports that contains a chart. They give the following error when I run them against the report of 11g Server (they work very well against the server 10g with on all issues)

    The report stopped with the error:
    REP-56048: engine rwEng-1 crushed., job Id: 24.

    I searched on Google for a solution to fix them, the closer, I found was install Oracle Graphics 6i engine in a House separate from the Oracle, but this has been said for 9i and 10g, you can find that in the oracle document below:

    http://www.Oracle.com/technetwork/middleware/reports/graph-FAQ-with-style-094084.html#Q101

    Do anyone knows if I can 6i engine install Oracle Graphics in a separate Oracle 11 g House too?, so that they work at least, if not to change those that exist?

    Thank you
    Sona.

    Hello Sona,
    Unfortunately installation chart 6i to one OH for 11g will not work. This option is possible as long as 10g as a temporary option during migration to the BI beans new chart features in gr 10, 2 and 11 g.

    Reference
    http://www.Oracle.com/technetwork/middleware/reports/graph-FAQ-with-style-094084.html

    Migration Oracle Graphics graphics 6i

    How can I migrate my Oracle graphics cards to the new chart format in reports of Oracle9i or Oracle10g reports?

    Oracle9i Release 1 go, graphical reports from Oracle was desupported. Reports of Oracle9i and Oracle10g use BI beans to generate graphs. Because of the underlying technology, there is no way to direct migration of Oracle Graphics to the bean BI graphing functionality. Therefore, the user will need to rewrite all their new graphics with the graphic Wizard in Report Builder.

    Top of Page

    Can I still use my Oracle Reports Developer 6i existing reports with graphical charts Oracle Oracle reports?

    As stated in the declaration of the Oracle reports, Oracle Graphics is no longer ships with Oracle Reports. However, as part of the migration route, you can still run Oracle Oracle reports graphic graphics if you install Oracle 6i graphics engine in a separate Oracle home. You must only maintain graph Oracle 6i as a temporary measure while redesign you your new charts using the chart wizard. For more details on configuring Oracle to use Oracle Graphics 6i, see Migration of graphics in the Oracle9i Application of Oracle9iAS version 1 (1.0.2.2.x) Server Migration manual version 2 (9.0.2).

    Top of Page

    Can I change or add diagrams of 6i, Oracle Graphics to my reports with Oracle9i reports or reports from Oracle 10 g?

    N ° you must have a separate installation of Oracle 6i graph generator to change your existing graphic Oracle 6i graphics since Oracle Graphics is not delivered with Oracle Reports. We strongly recommend that you migrate your cards to the new standard in the Oracle reports.

    Thank you, RZ

  • line chart with a single point of data not displaying not

    I work with the line chart and I am facing problem
    (1) if I get a data with a single point to draw, the graphic is not
    the graphic line required at least 2 data raising the graph appear
    How to make a graph to display when I get one record in my
    data provider.

    I'm housing one gettong point (x, y) in a single record.
    so this table does not appear I need two points, two points (x 1, y1) and
    (x 2, y2)
    y at - it a solutioin to draw the line chart with a point (x, y) and
    show some points in the chart?

    Looking forward to hear from you guyzz, thanks for looking into it.

    Thank you

    I tried in IE and Firefox - everything is OK.

    What version on FP for IE and Firefox are you using?

  • Satellite A300-146 - cannot play games with graphics

    I have Toshiba Satellite A300-146, model No.: PSAJ0E, 1 GB of RAM, Intel Dual core 1.87 processor, chipset Mobile Intel (r) 965 family.

    I can play some games like hitman silent of assasin on fullscreen and with graphics.

    But the problem is that a game could not open correctly IE after you open the game, he becomes 16-bit or not graphicsless. I tried these games = need for speed - pursuit and need for speed - undercover, the same problem occurs. I tried in windows XP and Vista.

    We all know Roadrash. I played this game in computer III pentium no value correctly... but I can not play in my laptop...

    Please help me to recover from this problem with the graphics.

    Sul

    Hello!

    Check the system requirements for the game. Satellite A300 is not a high-end gaming laptop and maybe some new games couldn't work on this laptop.

    Maybe you need to reinstall your laptop with the Toshiba recovery disc. I put t have another idea so try and post your result.

    Good bye

  • HP pavilion f002sm 17: hp pavilion 17 f002sm problem with graphics card

    OK Hi again, you help me with my problem with graphics card yesterday I install the driver for my laptop and I can play games, but I I look for tools of diagnosis and is in writing which is r5 graphics card which is built on my laptop and I have A7 graphical please help amd a8 6410 win 7 32-bit

    Hi @zumzo ,

    I understand that you have installed the driver and it works fine.  When you checked the diagnostics you became confused because it says graphic R5 but you R7.

    According to the specifications of your laptop you have AMD Quad - Core A8 - 6410 APU with graphics Radeon R5 (2 GHz, 2 MB cache).

    Here is a link to the 17-f002sm HP Pavilion Notebook product specifications to confirm this information. I hope that this eliminates any confusion.

  • No Autoscale with graphic hidden signals

    Hello

    I have a problem with the scales of a waveform graph. Joined a VI that illustrates this problem.

    The chart is placed on a tab - control, so it is sometimes visible, sometimes not.
    I feed the graph of waveform with sets of data of different wavelengths and amplitudes. For some reason I got off Autoscale. But after feeding the chart with the new data, via the property node I want the chart Auto-scale once, then I read the scales to do some calculations. If the chart is visible, everything is fine, but if the tab control - hides the graph, the balance isn't autoscaled.
    What would be the trick to autoscale the graph when hidden?

    Welcome, Dave

    The help of LabVIEW:

    Note  LabVIEW does not include hidden locations when you autoscale the axes of a chart or table. If you want to include the hidden when the plots you autoscale, make transparent hidden plots instead. Right-click the caption of the plot and select the color from the context menu to change the color of the plots.

    The above probably applies to charts that do not appear, although it is not said explicitly.

    As an alternative, you can:

    • AutoScale once this tab page is made visible.
    • Have another graph in a remote section of the front panel. Set to visible, but due to the size of the window, it is not in the frame. You can then copy the scales of this chart on the chart located on the tab page.
  • ordered a pavilion with graphics card upgrade, upgrade used only 16-bit location

    ordered a pavilion with graphics card upgrade, upgrade used only 16-bit location. I want to connect a second monitor, can I use the parent connections card currently have coverage through them that say "do not remove"?

    Hello

    If you use an adapter, then you have the choice on the end to use the adapter based on the adapter that you use. Buy cable HDMI to DVI and save frustration adapter problems and possible.

  • Resizing of bitmaps with Graphics.drawTexturedPath - bad ratio

    Hello

    I used to resize bitmap images (to have the similar physical size on different phones) in my project with the following code - found in this thread:

    Without creating an encoded image bitmap image resizing

        public static Bitmap resizeBitmap(Bitmap image, int width, int height)
        {
            int imageWidth = image.getWidth();
            int imageHeight = image.getHeight();
    
            // Need an array (for RGB, with the size of original image)
            int rgb[] = new int[imageWidth * imageHeight];
    
            // Get the RGB array of image into "rgb"
            image.getARGB(rgb, 0, imageWidth, 0, 0, imageWidth, imageHeight);
    
            // Call to our function and obtain rgb2
            int rgb2[] = rescaleArray(rgb, imageWidth, imageHeight, width, height);
    
            // Create an image with that RGB array
            Bitmap temp2 = new Bitmap(width, height);
    
            temp2.setARGB(rgb2, 0, width, 0, 0, width, height);
    
            return temp2;
        }
    
        private static int[] rescaleArray(int[] ini, int x, int y, int x2, int y2)
        {
            int out[] = new int[x2*y2];
            for (int yy = 0; yy < y2; yy++)
            {
                int dy = yy * y / y2;
                for (int xx = 0; xx < x2; xx++)
                {
                    int dx = xx * x / x2;
                    out[(x2 * yy) + xx] = ini[(x * dy) + dx];
                }
            }
            return out;
        }
    

    My problem with the code was that it was quite slow - larger images would take almost a second (!) on the older phones (8830) scale.  It did not prevent UI - I have the code running in a separate Thread - but it has considerably delayed showing the image on the screen.

    Recently, I started to experiment with Graphics.drawTexturedPath and I really like this method.  However, I found a weird problem while reducing images.  For example, I need to put a picture of 48 x 48 up to 42 x 42.  The most important parameters for the scale are dux and dvy (of the four walk coordinates vector only these two are zero).  So now my code object looks like this:

    XYRect area = getExtent();
    // ourBgImage is the unscaled Bitmap - our background image
    int imageWidth = ourBgImage.getWidth();
    int imageHeight = ourBgImage.getHeight();
    int[] xPts = {0, 0, area.width - 1, area.width - 1};
    int[] yPts = {0, area.height - 1, area.height - 1, 0};
    int dux = (int) ((((long) imageWidth) << 16) / area.width);
    int dvy = (int) ((((long) imageHeight) << 16) / area.height);
    // Keep aspect ratio and make image fit fully
    dux = dvy = Math.max(dux, dvy);
    g.drawTexturedPath(xPts, yPts, null, null, 0, 0, dux, 0, 0, dvy, ourBgImage);
    

    which is a little shorter and much more fast-work (especially on older phones as 8830).

    However, the image is truncated on the right and down - looks like two pixels are missing on one of these two parties.  This was not the case with the old algorithm. I am specifying all the wrong settings?

    Final nail in the coffin of drawTexturedPath:

    I decided to check how drawTexturedPath resizes checkerboard (mainly the scale down).  And the results are pretty ugly - it seems to use the algorithm "nearest neighbour" without any means.  The project with which I tested it is attached.  Once you have it running, use Alt + move to shrink and Alt + down to stretch.  Observe the results.

    The decision is, of course, to remove this method and resize Bitmaps the old way

  • Need help with graphics

    Hi all

    I'm experimenting with graphics api.

    Although I used it until I'm still not very confident on this subject. So, I want to build a strong foundation in this area. I looked online but couldn't find something really useful and what explains the basics.

    For my first mission I want to draw a rectangle in the middle of the screen. Now, for this I used a verticalfieldmanager and I replaced its sublayout method.

    In the sublayout method, I use the getgraphics() method to create the instance of the graphics class. Now, type the following lines:

    g.drawRect (width/2, height/2, 70, 30);

    g.fillRect (width/2, height/2, 70, 30);

    Super.paint (g);

    setExtent (width, height);

    but all I get is a white screen... can't use a graphical object directly in a fieldmanager? do I have to draw the rectangle in a separate field (perhaps a labelfield), then add it to the fieldmanager?

    as you can see my bases regarding the user interface graphics and custom api are not very good and that's why I need all the help I can get here.

    Thank you!!

    For one you super.paint () to call after you did you paint that will erase everything you have done. There is no need to call super.paint () If you make your own custom paint job.

  • having problems with graphics acceleration in lightroom with card amd 2015 running drivers latest

    having problems with graphics acceleration in lightroom with card amd 2015 running latest drivers. It crashes every time that you do something to make anything with acceleration for example. develop module or turn it off

    Version of Lightroom: CC 2015.1 [1025654]

    License: Creative Cloud

    Operating system: Windows 7 Ultimate Edition

    Version: 6.1 [7601]

    Application architecture: x 64

    System architecture: x 64

    Number of logical processors: 6

    Processor speed: 2.8 GHz

    Built-in memory: 16383,3 MB

    Real memory for Lightroom: 16383,3 MB

    Real memory used by Lightroom: 841,5 MB (5.1%)

    Virtual memory used by Lightroom: 853,0 MB

    Memory cache size: 261,4 MB

    Maximum thread count used by Camera Raw: 6

    Camera Raw SIMD optimization: SSE2

    System DPI setting: 96 DPI

    Composition of the Bureau enabled: Yes

    Exhibition: 1) 1600 x 900, 2) 1600 x 900

    Entry types: Multitouch: no, built-in touch: No, built-in pen: no, touch external: No, external pen: no keyboard: No.

    Graphic processor News:

    AMD Radeon HD 6800 Series

    Check the supported OpenGL: past

    Vendor: ATI Technologies Inc.

    Version: 3.3.13397 context 15.200.1046.0 the base profile

    Renderer: AMD Radeon HD 6800 Series

    LanguageVersion: 4.40

    The application folder: C:\Program Files\Adobe\Adobe Lightroom

    Library path: K:\hdd\photos\Lightroom\Lightroom Catalog.lrcat

    Settings folder: C:\Users\nathan\AppData\Roaming\Adobe\Lightroom

    Plugins installed:

    (1) Behance

    (2) substantive canon Plugin

    (3) Facebook

    (4) Flickr

    (5) irista

    Config.LUA flags: None

    Map #1: Seller: 1002

    Feature: 6738

    Subsystem: e178174b

    Revision: 0

    Video memory: 1011

    AudioDeviceIOBlockSize: 1024

    AudioDeviceName: Speakers (Corsair Gaming H1500 helmet)

    AudioDeviceNumberOfChannels: 2

    AudioDeviceSampleRate: 44100

    Build: not initialized

    Direct2DEnabled: false

    GPUDevice: not available

    OGLEnabled: true

    You can disable the GPU manually by changing the preferences file to LR with a text editor such as notepad and change the line useAutoBahn = true to useAutoBahn = false.  You do not want to do with LR does not.

    On Windows, the LR file is located here:

    C:\Users\- yourusername -\AppData\Roaming\Adobe\Lightroom\Preferences\Lightroom 6 Preferences.agprefs

    You could make a backup copy of a file agprefs on your desktop, firstly, in the case where mess you something.

  • MovieClip sprite vs drawing with graphics

    Hello! I have a program that dynamically draws a polygon anywhere where the user clicks on the screen. (using lineto, moveto) However this polygon is always behind the other symbol of objects on the screen even if his last added in the childlist is. Is there a problem with the depth when you draw symbols vs drawing with lines? How can ensure me that my smart object will display in the face?

    Thank you

    Will be

    OK the problem is that you have the graphics in the main class through the polygon class to draw

    which works great but all the objects in the main class, if they are added before or after the polygon will appear above any line draw

    to work around this problem

    change the DrawPolygon() function do not take a target

    so

    public void DrawPolygon() (x: Number, y: Number, sides: uint, RADIUS: Number, angle: number = 0): void

    adjust the call to this function in hand in the appropriate form

    then in DrawPolygon() instead of references to target just replace them with graphics this will draw on the contrary to the purpose of polygon graphics

    Note You can put calls Graphics.Clear and graphics.lineStlye early DrawPolygon() so

    We can then remove the clear and graphics.lineStyle calls in your main class

    hope that makes sense

  • Problem with the behavior of "open the window of your browser.

    I am very new to Dreamweaver from Golive. My problem is with the behavior of the "open new browser window". I found nothing in the archives which deals with this issue.

    I have a link to a page that is not on my site, by clicking on the link, the browser should open a new window showing the other site, while my website is and remains unchanged.

    Right now, when I click on the link not only a new window opens with this site on this topic, but the page on my site where the link is also changed to this new site.

    How can I keep my page to change and only open new browser window?

    I've tried it on several browsers and same problem exists.

    I use PS CS5 with the last update on a MacBook Pro with OS X 10.6.6 and 8 GB of RAM

    Thank you for taking the time to read this.

    Branko

    I have a link to a page that is not on my site, by clicking on the link, the browser should open a new window showing the other site, while my website is and remains unchanged.

    Right now, when I click on the link not only a new window opens with this site on this topic, but the page on my site where the link is also changed to this new site.

    It's because you have applied the behavior in a way that leaves the href attribute of the link to the page linked as well as the behavior.  You can easily fix that by changing this-

    on this subject.

    http://www.example.com/whatever.html"onclick ="MM_openBrWindow (...);" return false">

    Now, you will have a link that can still work even when javascript is turned off in the browser of the visitor.
  • Creating visible buttons with graphics

    After you have created the button with graphics.

    Button layer... See the CIRCLE, MORE white poster, down the place of show, STRUCK by the black circle.

    Can you tell me it's OK because after I add layer to ActionScript still getting errors.

    I want to assure you that I have up to this point.

    a big thank you to you guys who helps others

    What you are doing inside the both graphic key have no impact on issues relating to the code.    The CLICKED image specifies only the clickable area for the button, it is not an image that is displayed at any time.  It is usually used if the clickable area must be different from that of the top lowest areas.

    If you get any errors, you must copy and paste errors in your ad and view the code associated with them.

  • With the help of NumberFormatter with graphics

    I try to use the NumberFormatter with graphics (with the HTTPService data source)

    The numbers are used for the x-axis or the linear axis, coming from an XMLList, i.e.

    "< displayName ="Project"xField="@hours mx:BarSeries ".

    How can I put a version formatted for @hours instead of just raw unformatted numbers? For example I want to insert a comma to show '12 000' instead of '12000 '.

    I have figured out how to make a function to format / change string variables, for example names etc., in a certain measure, but cannot get the numberFormatter to work.

    I created this function:

    < mx:NumberFormatter id = "numForm" useThousandsSeparator = "true" / >

    But I can't understand how to integrate it into the numbers in my DataGrid or on my paintings.

    I found a few web examples covering NumberFormatter...

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=charts_formatting_13.html
    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=formatters_4.html
    http://blog.flexexamples.com/2007/12/13/rounding-numbers-in-Flex-using-the-NumberFormatter - class.

    .. but they are not access data from external sources, and I can't adapt the code for working with graphics.

    Any help would be much appreciated.

    M.

    This site is a good example to do it in a datagrid

    http://blog.flexexamples.com/2007/08/20/formatting-a-Flex-DataGrid-control-using-a-custom--Convertisseur element.

  • Bar chart stacked - strange behavior on display null values

    Hi all

    I'm trying to graph a county of the end dates of the activities over several years by months grouped by project.

    The problem I have is that there is a gap of 3 months where none of the activities that I am tracking complete. The default value for the stacked bar chart is to ignore the columns with no data (in my case it October-December 2015).

    To view these any given month I went to properties graphic and ticked the box "Include Null values. At this point, I get a very strange behavior. Once this option is selected, the legend explodes, showing each project in the database regardless if it meets my criteria for analysis.

    Has anyone another considering that happen? I'm doing something wrong?

    If it's important I'm in the OBI 11.1.1.7.150120

    Thank you for your help,

    Kevin Wolfe


    Hello

    You have a filter on the list of projects you want to see?

    Based on the way you describe your analysis I guess you don't have any what filter on the list of projects, but some of the filters on the other dimensions/attributes and these filters were limiting the list of projects.

    If this is the case then what you see is not a weird behavior, but everything you've asked your analysis.

    "Include null values" is not limited to the time dimension, it fits any dimension of your analysis, so no filter on projects = all projects.

Maybe you are looking for

  • Qosmio F60 - 00Y slow/laggish

    Hello I have a laptop Qosmio F60 - 00Y which is usually very quick, but last night at around 10:30 - 23:00 (16th September Australian Eastern Standard Time) I noticed that he was behind schedule - scrollbar on Firefox "delayed" rather smooth, so I wo

  • widows update error number: 0x8DDD0004

    Dear When I want to upgrate my windows, I'm dealing with this error: error number: 0x8DDD0004, what should I do? Thank you

  • Cannot load Windows Live Photo Gallery

    Original title: Windows Live Photo Gallery I am only able to load Windows Photo Gallery, not the Windows LIVE Photo Gallery I want. I have Windows Vista.

  • How to get or make a copy of the Windows 7 OS disk?

    How to make a copy of the Windows disk? Similarly, is there a way to copy from the computer to a CD/DVD?  What happens if the hard drive crashes ever? I have a refurbished Dell Latitude E6410 with Windows 7. I bought at Staples.  I think theres a way

  • Remote VPN users cannot access tunnel from site to site

    Cisco ASA5505. I have a tunnel of site-to-site set up from our office to our Amazon AWS VPC.  I'm not a network engineer and have spent way too much time just to get to this point. It works very well since within the office, but users remote VPN can