Chart axes assignment: performance difference between ATTR_ACTIVE_XAXIS and ATTR_PLOT_XAXIS

Hello

I use a graph xy with two x axes and the two axis of ordinates. There are two possibilities when you add a new record:

(1) PlotXY and SetPlotAttribute (, ATTR_PLOT_XAXIS,);

(2) SetCtrlAttribute (, ATTR_ACTIVE_XAXIS,) and PlotXY

I tend to prefer the second method, because I guess that it is slightly faster, but experts say?

Thank you!

Wolfgang,

At some point, there is always an active x axis, and so, even when you use method 1, it's really no different and no better than if you had done that:

SetCtrlAttribute

PlotXY

SetPlotAttribute

Whereas, with method 2, it is simply the next subset:

SetCtrlAttribute

PlotXY

What you need to know which changes the active axis using SetCtrlAttribute is mathematically trivial (it will affect only future locations, no current plots), while the change of the active axis of an existing field is not negligible: all data field must be remapped, and the plot needs to be redrawn, among other things.

Therefore, if you use method 1, it is really as if you were plotting twice: it draw you the first time with PlotXY against the person who is the active axis, and then you it draw a second time, when you call SetPlotAttribute, in case you are actually changing the axis of the plot and not just assigning the same axis.

There is no compromise here. Method 2 is much better.

Luis

Tags: NI Software

Similar Questions

  • Difference between 'Reload' and "Reload (Override Cache)"?

    Https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#w_navigation, what is the difference between 'Reload' and "Reload (Override Cache)"? What makes "ignore cache"?

    Reloading Web pages and cache bypass aims to obtain a new copy of perhaps obsolete or damaged files currently stored in the disk cache.
    You can do it like the first attempt if a normal charging does not seem to provide a version of a Web site or if you are having problems with a Web site otherwise.

    We usually have advice that if you have questions:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.
    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if an extension or theme (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problems.

  • Difference between valuation and putting in good shape?

    What is the difference between recovery and formatting?

    I need to download tools and utilities to perform the recovery?

    Recovery recovery image installation.
    Formatting of removal of content from disk HARD integer.

    No, you don't need any download. All you need is CD/DVD recovery for your laptop model.

    To be honest, your questions are a bit funny. If you want to have accurate on such things information please publish your laptop model and it will be much easier to give you exact explanation and instructions how to use recovery CD/DVDs.

  • Qosmio X - 70A - difference between nVidia and driver Toshiba GPU

    Is there a difference between nvidia and one packed by toshiba display driver?
    I'm using the Toshiba but Geforce experience gives me a headache with warnings about a newer driver and toshiba does not appear to provide a.

    Of course there is a difference between the GPU nVidia drivers (or drivers provided by manufacturers of graphics cards) and the drivers provided by Toshiba.

    The Toshiba driver page GPU drivers are changed and made for the mobile use.
    Each laptop model supports various components (CPU, cooling, modules, etc.) and different design. That is why the heat dissipation is always different.

    The GPU driver provided by Toshiba supports a kind of GPU overheating protection and protects the graphics chip of the damage. This means that the GPU performance are controlled by the driver and in case the internal temperature would rise to critical level, it would decrease the performance of the GPU. Also the laptop stops automatically if the temperature is too high.

  • difference between mathscript and matlabscript

    Hi iam new to labview and learning n do labview project

    What is the difference between mathscript and matlabscript

    I want to do the simulation using matlab

    How can I do

    If one suggests this

    Please answer and provide assistance so that I will perform my project...

    With the LabVIEW MathScript node, the blue rectangular region, you
    can run scripts from files ".m" of your graph (known as LabVIEW programs
    virtual instruments or screw). You can use the MathScript node

    to insert text algorithms in a VI and then use the LabVIEW
    environment of graphical programming to instrument the scripts by adding
    buttons, sliders, buttons, graphics, and other user controls and
    indicators.

  • How to tell the difference between recommended, and optional updates long after they have installed bene?

    I have a Vistaprogram of the window running on my Toshiba laptop.

    In the past, I've confirmed that optional udates be installed. Please help: now I want to uninstall optional updates because my computer is slow.  How to tell the difference between recommended, and optional updates long after they have installed bene?

    Hey monkey 44,

    I suggest you view the history in Windows Update:

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    Those listed as recommended is technically optional.

    Before you delete updates the computer, I suggest you try the steps from the following link to improve performance and check if that helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/ways-to-improve-your-computers-performance

    I hope this helps.

  • JavaScript - the difference between ' window ' and 'document.'?

    Hello

    I'm a Javascript newbie which ended just by the first screen of Captivate (CP9) (HTML5) using Javascript.

    A slide with several text entry areas (TEBs) and a Submit button, which performs a function to validate the TEBs (thank you David for have started me).

    I call the function in the script of the Submit button window and have Javascript code in the Index file.

    In the Javascript code, I used the ' windows ' and 'document '. (don't know if I've used them correctly but the works of Javascript)

    I don't really know the difference between them.

    In Javascript, I know that window is loaded in the browser first, then the document is loaded in the window.

    It's like the window is your browser window and the document is the HTML page inside.

    Also, you can use each of them to access specific properties - and window has a context.

    Some examples of my javascript:

    • window.cpAPIInterface.setVariableValue ("q1_fback", "");         -erase a message of feedback (text of legend with variable) associated with BER
    • document.getElementById("Text_Entry_Box1_inputField").style.border = 'solid red medium. "  -modification of the border of an object invalid BER (red)

    My question is:

    1. What is the difference between ' window ' and "document." in a context of Captivate?

    I will post you more questions to find out how:

    1 use loops to knock down my code

    2 reuse the same function in other slides

    Concerning

    Donal.

    Your assumptions are correct.

    the cpAPIInterface is in the window.

    The Text_Entry_Box1_inputField is in the document, not the window, but you can use:

    window.document.getElementById("Text_Entry_Box1_inputField").style.border = 'solid red medium. "

    Scope of variables depends on how and when they are declared, and it is generally best to limit their scope and not use them globally in the window object. All seem to be available in the cPs variables window.

  • A3 landscape artboard. When the zoom is less than 100%. the appearance of the work (lines) in staircase, I can tell this resolution because something I have to zoom and it disappears. I understand the difference between vector and raster as well... looks

    A3 landscape artboard. When the zoom is less than 100%. the appearance of the work (lines) in staircase, I can tell this resolution because something I have to zoom and it disappears. I understand the difference between vector and raster so... this kind of problem is like when you zoom too in an image and it becomes pixelated... but otherwise...! I have a macbook pro 2012 model, the retina. is my screen resolution. I thought that the apple screen product meet good standards of adobe creative products... Reviews

    Check if the switch between the GPU and CPU makes a difference: Cmd E

    Or turn in the preferences: GPU performance.

  • Difference between Gemfire and SQLFire

    Anyone can list the differences between Gemfire and SQLFire.

    Since both are targeted and databases as an object model and another model more than SQL. Apart from this basic difference if I can get some differences and the reason behind the two products, which would be much appreciated.

    Hello
    GemFire has a slightly different set of objectives: it is designed to be much more flexible (buttons plus) designed to achieve possibly higher performance in some scenarios. For example, you can do a caching prioritized with GemFire (client applications can incorporate a local cache) and it is rich in favour of publication / subscription semantics. Thus, it is possible to realize the event in real time, more scalabe engine architecturees with GemFire more than it is with SQLFire.
      
    On the other hand, SQLFire with relational semantics is easier to understand with a query more powerful engine and support for referential integrity provided out of the box.
      
    Level positioning, GemFire could be better adapted to the 'green field' applications that lend themselves to a design of K - V and SQLFire is best suited for applications where the data model (and so mark requirements) are more complex.
  • What is the difference between LEAD and LAG?

    Hi all
    Please let me know the difference between LEAD and LAG even if both are functions. Analytics, where we can use specific to improve performance.

    Thanks in advance.

    concerning
    PRAMOD

    Pramod salvation,

    pramod62917 wrote:
    Please let me know the difference between LEAD and LAG

    The main difference is in which way is 'research ':
    -Lead will "transfer" in respect of the order by clause
    -Lag goes "back" with regard to the order by clause

    See this example (Basic):

    Scott@my11g SQL>ed
    Wrote file afiedt.buf
    
      1  with t as (
      2  select 'TeamX' team, 1 player_id, 'PlayerA' name from dual
      3  union all select 'TeamX' team, 2 player_id, 'PlayerB' name from dual
      4  union all select 'TeamX' team, 3 player_id, 'PlayerC' name from dual
      5  union all select 'TeamX' team, 4 player_id, 'PlayerD' name from dual
      6  union all select 'TeamZ' team, 1 player_id, 'PlayerJ' name from dual
      7  union all select 'TeamZ' team, 2 player_id, 'PlayerK' name from dual
      8  union all select 'TeamZ' team, 3 player_id, 'PlayerL' name from dual
      9  -- end of sample data --
     10  )
     11  select
     12  team
     13  ,player_id current_play_id
     14  ,name current_name
     15  ,lead(name) over (partition by team order by player_id) next_name
     16  ,lag(name) over (partition by team order by player_id) prev_name
     17* from t
    Scott@my11g SQL>/
    
    TEAM  CURRENT_PLAY_ID CURRENT NEXT_NA PREV_NA
    ----- --------------- ------- ------- -------
    TeamX               1 PlayerA PlayerB
    TeamX               2 PlayerB PlayerC PlayerA
    TeamX               3 PlayerC PlayerD PlayerB
    TeamX               4 PlayerD         PlayerC
    TeamZ               1 PlayerJ PlayerK
    TeamZ               2 PlayerK PlayerL PlayerJ
    TeamZ               3 PlayerL         PlayerK
    
    7 rows selected.
    

    On the first line + (team = TeamX, current_play_id = 1) +, the next_name once PlayerA regarding the order given by +(order by player_id) + team +(partition by team) + playerB. For this line it is not prev_name like no player as an inferior player_id wihtin this team.
    On the 3rd line +(team=TeamX, current_play=3) +, the once next_name PlayerC in regards to the order given by the team PlayerD, the previous is PlayerB.

  • Difference between privilege and access profile

    Hi all

    Any1 can tell me the difference between profiles and access privileges assigned to the user.

    Thanks in advance.

    Raghu, access profile (step 3) and privileged (step 4) are part of the role of the user. Export of lists is an example of a privilege. Access profile determines which records a user has access to based on the property of users or not owner. I recommend you take the webinar "data access and visibility to control Presentation."

  • What is the difference between onMessage and Receive and PICK FLOW

    Hello
    What is the difference between onMessage and reception, ice AXE, and FLOW.

    the FLOW and FLIGHT?

    Thank you.

    Hello

    Please refer to this.
    http://download.Oracle.com/docs/CD/E12839_01/integration.1111/e10224/bp_appx_ref.htm

    You will get the pick activity message.
    Choose and receive almost serve same purpose.
    But in the choices that we will get OnMessage and OnAlarm branches and it runs branch OnMessage if he receives the message of partnerlink before the expiration of the time for the alarm. Otherwise, it executes OnAlarm branch.

    The activities of flow and flow N also serve the same purpose, but flow N, we can define number of streams running

    Concerning
    PavanKumar.M

  • Difference between fetch and cache

    Anyone know the difference between recovery and caching when ITS analyses a source? In the document below under Maintenance crawls, it says in step 4 that the robot will pick up the item. This means - it downloads in the memory of the Server HIS?

    He also says, in step 5, it compares the checksum of the file that is located in the cache. Is this the same cache is place of conservation for indexed content needs? Any help on this would be greatly appreciated!

    Thank you
    dhartle

    Here's the source document: http://download.oracle.com/docs/cd/E10502_01/doc/search.1018/e10418/crawler.htm#i1004689

    Analysis of maintenance
    After the initial analysis, a page of the URL is only ramp and indexed if it has changed since the last scan. The robot determines if it has changed with the HTTP If-Modified-Since header field or the checksum for the page. URL that no longer exist are marked and removed from the index.

    To update the modified documents, the robot uses an internal checksum to compare the new Web pages with caching of Web pages. Change of Web pages are cached and marked for re-indexing.

    The steps involved in the synchronization of the data are:

    1 oracle creates the robot according to the schedule that you specify with the administration tool. The queue of the URL is filled with the URLS of seeds of the source assigned to the schedule.
    2. the robot launches several crawling threads.
    3. each chenille wire removes the following URL in the queue.
    4. Each robot thread retrieves the document from the Web. The page is usually an HTML file containing text and hyperlinks. When the document is not in HTML format, the robot tries to convert the document to HTML before caching.
    5. each chenille wire calculates a checksum for the newly recovered page and compared to the checksum of the cached page. If the checksum is the same, then the page is ignored, and the robot goes to step 3. In the contrary case, the robot will move to the next step.
    6. each chenille wire Scans the document hyperlinks and inserts new links in the queue of the URL. The links that are already in the document table are ignored. (Oracle ITS doesn't follow links binary documents filtered.)
    7. the robot marks the URL as "accepted". The URL is parsed in the future, maintenance tests.
    8. the robot saves the URL in the document table.
    9. If the file system cache is full or the URL queue is empty, the cached Web page stops and commences. Otherwise, the thread of Caterpillar again step 3.

    "This means it downloads in the memory of the Server HIS?"-Yes.

    "He also said to step 5 that it compares the checksum of the file that is located in the cache. Is this the same cache which is the place of conservation for content that is indexed? "- Yes, but I'm sure that the checksum (as calculated to the last time) is stored in a table, so that it is not actually access the cached file.

  • is there a difference between 38 and 42mm with their pixel density?

    is there a difference between 38 and 42mm with their pixel density? the 38mm and 42mm watches have same interns?

    You can see the technical details of the Apple Watch here. Apple - Support - technical specifications

  • What is the difference between extensions and Plugins and Add-ons?

    I'm sorry if here is not the right place for this post.

    What is the difference between extensions and Plugins and Add-ons? Apparantely, they differ in some sense or aspect, but I do not know how. Please, if it is not too complicated, explain in detail and simple language. Thanks in advance to 1 million.

    Kind regards
    Danesh

    Hi Danesh,

    You should take a look at this article for an explanation. Plugins and extensions are essentially types of Add-ons as well as of the characters and themes.

    Hope this helps!

Maybe you are looking for