Change zoom on a chart programmatically?

I'm looking to add a few buttons or hotkeys to a chart control that allows you to zoom in or out a specific amount, or would zoom to adjust horizontally or vertically, but I can't find a way to change the zoom on a graph by programming (in LabWindows/CVI 9.0) - only features zoom/attributes I find are on-AutoScaling and other. Anyone know what kind of features, I would use if I wanted to change the current view on a chart control programmatically?

Hello

you will get a zoom setting the mode of scaling to the manual. For example,.

SetAxisScalingMode (panels, PANEL_GRAPH, VAL_BOTTOM_XAXIS, VAL_MANUAL, zoom_x_min, zoom_x_max);

adjust the x axis to the range given by zoom_x_min and zoom_x_max. It is the same for the vertical axis.

Tags: NI Software

Similar Questions

  • How can I change the name of several places in a graph/chart. (programmaticly)

    Heey everybody, title says it all.

    I already tried to use active plot with a forloop, but for some reason any who does not work for me: s

    Order the image contained in the annex, which explains my problem.

    In the diagram, you will see a stringarray:

    0 = name 1,

    1 = name 2 and

    2 = name 3.

    For some reason some wack the plotnames appear in a different order. Also to order the program using debug, then you will understand directly what is my problem.

    Thank you!

    Just a quick suggestion:
    Reverse the order. Put the "active conspiracy" on top, then change the name of the parcel.

    That should do the trick.

  • magnifying glass is constantly changing zoom size while typing

    It drives me crazy.  While typing a post, the auto zoom lights (later changed to 110%) I typed that sentence.  The hourglass (now it's 125 per cent and now back to 110 per cent).   I have reset by default and it will start to change again once I type.  Sometimes he (90% now) goes up so much that I can't not (110-90) up to 700%.  driving me crazy.  It behaves actually better than many other times, when it begins to change the zooms so fast that the computer is unusable.   I checked the usability in the control panel and the magnifying glass is not checked.  I'm not clicking on shortcuts for zoom in changes.

    After trying for months, I finally fixed it right after the typo in the above post.  The constant evolution of zoom was caused by the wireless mouse.  I opened the Control Panel, mouse and disabled a few zoom feature.

  • Change the selection color chart font size / or anything in the Panel menu

    Whenever I select an item in the box menu panel the police get really tiny and compressed.  How can I fix this.  Before resetting the preferences worked I reset 4 times and it's always like that.  all ideas

    Screen Shot 2016-01-14 at 3.20.53 PM.pngThanks in advance

    If you're on a Mac, try clearing, that the police put in cache.

  • How do I change the range on a chart, but save the same points

    Hello

    I have a chart with 501 points on the axis X and autoscale on there, and then when I generate the graph, I see the x-axis from 0 to 500.

    But now I need to change the scale for the x-axis of 50 to 100... but all points must be the same as 0 to 500.

    I think what I need is just remove 0 and 500 channels and replace them with 50 to 100 without change anythink on the chart itself.

    Is this possible on LabVIEW?

    Note that I'm not asking for a zoom on the chart... There is no zoom, only the x-axis numbers must change after I generated

    the graph

    Thank you!

    Hi JPLO,

    You can change the presentation of the scale by setting an offset of 50 and a multiplier to scale from 0, 1, or in the box properties dialog or using the property or the nodes!

  • How can I change the address Modbus to Modbus IO server programmatically?

    Hi experts,

    I use a cRIO 9076 that is configured as a server IO slave Modbus to Modbus TCP communication. I have always used the same Modbus address to configure the server of e/s and it has never been necessary to change so far. So I was wondering if there is a way to change address Modbus IO server programmatically, after it has been initially configured?

    Thank you

    Volker

    Hi Volker,

    There is an Express VI, that lets you create or change existing servers of e/s Modbus programmatically createand configure the Server IO. Once you set up like Modbus, you will be able to provide the address programmatically.

    In regards to the address - you are right in that the Modbus address configured in the configuration of the server is not really used with Modbus Ethernet. According to Modbus specifications, the address is used when a network connecting Modbus Ethernet to a secondary network series Modbus via a bridge or a bridge. The specs say that the address 0xFF should be used on an Ethernet network. For more information on this topic, Please see page 23.

    Hope that helps!

    Best regards

  • Can I change or - rt.ini programmatically?

    Hi, this is Lee.

    I want to change my IP real-time programmatically target, so I edit nor - rt.ini and restart the computer.

    Looks good works... but I don't know it is 'really' works well.

    Look at the attachment... If I change my IPAddress using the ini file change VI, then nor - rt.ini messed up file. I mean, if I look at the file with Word pad, it looks good, but if I look at the file with note pad it is mess.

    And also, there is Mark quatation added.

    My question is can I edit nor - rt.ini with ini edit VI? It seems that change the full content, but still works fine?

    You must add information about the functions that you use for editing the file.

    The strange symbols in the notebook are the 'new line' characters, which of course are not displayed correctly in Notepad. What happens if you open the file changed with the word/wordpad? It seems too strange?

    Norbert

  • How to change the focus of programmatic way?

    Hello

    1. how to change the orientation of a programmatic way?

    2. is it possible to set the tab order?

    With respect,
    Wai Phyo

    (1) http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_scrollComponentIntoViewBehavior.html
    (2) without

  • Asynchronous flash chart where update select list value changes

    Hi devs,

    I groped with flash graphics with dynamic when update select list point of changes in value.

    First of all, I used the function of Denes Kubicek [http://htmldb.oracle.com/pls/otn/f?p=31517:229 | http://htmldb.oracle.com/pls/otn/f?p=31517:229:3039869356317498] update the value of the session from my dynamic selection list after change:
    <script language="JavaScript" type="text/javascript">
    
    function fnc_setItem (pItem)
    { 
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
      get = null; 
    }
    </script>
    That has worked well. Then has been to change the update interval chart flash and:

    Home > Application Builder > application 150 > Page 1 > Flash chart attributes > update >
    Asynchronous update = Yes
    Update interval (seconds) = 5

    My report is automatically updated every 5 seconds. But how can I make it work just with the change in the value of the selection list?

    The function is used to refresh the report: apex_RefreshChart (1, '2258227549390282', ' de');

    Patrick Wolf was a good example for her: [http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/ | http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/]

    But I couldn't make it work properly.

    Thanks in advance


    Tobias

    Hello Tobias,.

    Having defined with function of the Dene session state, you can refresh the table to help:

    apex_RefreshChart ($v ('pFlowStepId'), $v('Pxx_REGION_ID').substr (1), navigator.language);

    PXX_REGION_ID is the ID of the region of the chart area. You can set that in the bottom of the region to help;

    $s ("Pxx_REGION_ID", "#REGION_ID #");

    See [example: http://apex.oracle.com/pls/otn/f?p=41715:29]

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • Programmatically formatting graphic mixed signals

    I am writing an FPGA application where I am acquiring data from a unit under test (USE). The PXI-7842R digitizes 3 groups of signals:

    1. an analog voltage monitor

    2. 5 digital signals connected to the analog inputs (limitation of the pinout of the connector) and converted into Boolean values

    3. 11 digital signals connected to the digital inputs

    That's a total of 1 analog and 16 digital inputs. I want to show them on the same graph, so I used a graph of mixed signals.

    To avoid reconfiguring the graph of mixed signals, everytime I open the app, I wrote a Subvi to programmatically format the chart. I pass a reference to the graphic indicator of mixed signals and try to adapt it to look how I want. The indicator has been designed as a cluster of analog waveform 1, 2 bus waveform Digital 5 signals 1 waveforms digital bus 3 and 3 different digital waveforms. The Subvi is called inside the host VI using a statement box controlled by the 'First Call' function. Then host vi bed a U32 to the target-to-Host DMA FIFO, formats the data in the correct order and the beams while an indicator of mixed signals. During an attempt to format the chart programmatically, I get errors in property not valid which seem to depend on State. Unfortunately, the documentation of the properties seems to be quite uneven for errors I get. The Subvi attached through the following sequence:

    1. configure the shared axis and shared properties (IgnoreAttributes, ShowBusseswithLines)

    2 set up the area of tracing analog scale Y (superior plot, area 0? documentation is inconsistent on this point)

    3 set up the area of tracing digital scale (sector 1) Y?

    4. name the digital bus (3 in total, should be numbered 0-2).

    5 name the plots

    Correctly all steps 1 through 3, but I get an error when you try to set the Active Bus to 0--> ' #1077 Error, invalid property (Bus Active)»

    I tried to set the Active plot area to 1 before setting the bus, and I get the same error.

    But then sometimes if I rerun the VI host without change, the Subvi ends correctly (even if the area of the scale becomes huge and empty). The only way I can remove the errors is to set the for loops to iterate 0 times, allow the host VI run a few cycles, stop the host VI, remove the constants 0 and run again. And then there is no property errors.

    I then tried to create a constant of mixed signals with the correct sequence of the empty slots and it allows to set the MixedGraph::Value property at the beginning of the Subvi. Now error #1077 occurs at the level of the active node before Plot Bus Active node. The thing first on the definition of the constants of iteration 0 does not help when the value property is an initial value.

    Here are my questions:

    1. the ActivePlotArea property must be configured to use ActivePlots or ActiveBusses, or is that only for sizing and moving areas of land?

    2 - is ActiveBus ActivePlot to define first of all necessary to property? for example, if I have ActivePlot = 0 (for analog plot), the ActiveBus property will always fail?

    3. what else is necessary for the property ActiveBus of function call?

    4. why the Subvi is failing the first time but succeed during subsequent calls without be initialized does not yet reach every time after you initialize (except for loops are set to 0 and Subvi finishes once)?

    5. because I show a legend of the plot, I don't want the names of digital signal appears again in the scale box Y. How can I hide the names but to allow the plot area to extend completely to the legend of the plot rather than leave a large area of wasted white space?

    Hi Nick,

    The reason your Subvi does not work, it's the bus you want to change do not exist when you run.

    If you want to run this sub - VI like initializer, you must first initialize all of the plots you will be change.

    I've included a small example of how to achieve this by grouping together a constant of analog waveform with some constants of digital waveforms and food nerd in the property "value" Mixed Signal curve.

  • Problem with autoscaling after graphical zoom

    Hello

    I am struggling to find my error in reasoning, but so far has failed, and would be very grateful for the help.

    My problem seems to be very basic: I have a graph of control with zoom option enabled, for example rectangle zoom or zoom for y. There is a playground on the graph, plot zoom in part of the works as expected.

    Now I would like to restore the graph, that is, set it to full scale showing the complete route once again, using SetAxisScalingMode.

    Stupid enough he not always seems to work, the shaft is not properly set, i.e. that the enlarged part of the plot is visible even after affecting the autoscale axis...? I don't remember what I'm missing here.

    I have prepared a demonstration simple, based on the NOR sample userint\GraphAnnotations.cws, attached below.

    In this example, I made two small changes: 1) I have added a "restore" button to set the x and axis Auto scale value. (2) in the IUR, I changed the style of graphical zoom to rectangle Zoom (Zoom or to y)

    To reproduce the problem, press "Draw", zoom in on the graph so that the maximum and minimum of the plot are not displayed. Press the button restore, which will show the complete graph. Fine. But now zoom in again, press the button restore: now, it seems most do anything.

    Thank you!

    The problem is that when you set the mode to automatically scale the second time, it is already set to auto. Because no changes were made, the chart has no need to recalculate the scale. If you plotted instead of a new data point, you would see the autoscaling come back into force. A simple way to force it to recalculate the scale would be to scale to VAL_LOCK, then return to VAL_AUTOSCALE in the RestoreCallback. Because the value of the attribute is changing, a new drawing occurs which causes the Auto scale to recalculate.

                            SetAxisScalingMode (panel, PANEL_GRAPH, VAL_LEFT_YAXIS, VAL_LOCK, 0.0,
                                    0.0);
                SetAxisScalingMode (panel, PANEL_GRAPH, VAL_BOTTOM_XAXIS, VAL_LOCK,
                                    0.0, 0.0);
                SetAxisScalingMode (panel, PANEL_GRAPH, VAL_LEFT_YAXIS, VAL_AUTOSCALE,
                                    0.0, 0.0);
                SetAxisScalingMode (panel, PANEL_GRAPH, VAL_BOTTOM_XAXIS,
                                    VAL_AUTOSCALE, 0.0, 0.0);
    
  • graph XY Zoom

    Hi guys,.

    I have a xy chart. I can check how Zoom on the chart as (my changes to data in the millimeter range) so I hope to zoom to display the result significantly.

    See you soon,.

    Scott

    Hi Sena,

    change the scale of the axes are the same, so your circle appears as a circle (when the plot area is square too)!

  • Change size of Windows

    Maybe I need to change the size of windows of the vi like the screenshot.

    Then click on the black arrow pointing to the right, increase the size of the entire window, IE. the right edge will move Zoom window, another chart is displayed.

    When click on the black arrow pointing to the left, the size of the entire window will decrease, IE. the right edge moves make the window smaller, another chart will disappear.

    Any suggestion, thank you.

    Here is an example

  • Axis changes after a set interval

    I have change my X axis range programmatically in various circumstances in my program. After the range changes, the method, and then calls another method to plot data. However, when I get the new method, the new range now has what I set the minimum or maximum. Why the range changing on me?

    Hello

    You set the mode to fixed axis?

    ScatterGraph1.XAxes.Item (0). Mode = AxisMode.Fixed
    ScatterGraph1.XAxes.Item (0). Range = new range (0, 10)

    Curt

  • change the column of the tree

    Hi guys,.

    I'm new to the tree control.  I'm trying to programmatically change the State of the second column without changing the text of the left cell in the control (see attached photo).  Can you please point me to the right direction?  I use Labview 8.5.  Thank you.

    I am fairly new

    Hello

    There is a feature in LabVIEW, called property node. With the property node, you can change the front panel objects programmatically. You can make the property node with a right click on the object you want to change by programming and will create > property node and then you have all the properties of the selected object, you can programmatically change. When you created the property node, you can change access (read/write) with right click, and then you choose change all to write or modify To Read, depending on what you have chosen.

    In your case you will need 3 properties:

    Active cell > column Active - sets/bed number of the current column number

    Active element > line number - sets/bed number of the current column

    Active cell > String - string of the element sets/bed

    If you have any questions feel free to ask.

    Respect,

    Gregor ring

Maybe you are looking for

  • Satellite Pro A300-1E7 - USB Sleep and charge does not

    Hello I tried all the settings I can think off, but I can't seem to get the USB sleep and work load. My OS is Windows Vista Business SP1.I tried the mode 1, mode 2, unchecked power save all the boxes in hubs usb root, legacy usb support turned off bu

  • Monitor external issues Elitebook 820 G1

    Hello I have problems to connect to an external monitor, Dell 2709W, for my G1 of 820 Elitebook. I have an Intel HD 4400 graphics solution. The monitor says: Out of range signal Cannot display this video mode change the input of the computer screen 1

  • load the Panel tui does not not on CVI2012 for Linux

    We have problems with the panels that look great on Windows being difficult to read on Linux, probably because most of the fonts text and control are VAL_DIALOG_META_FONT under Windows but the CVI for Linux implementation has only NISYSTEM. As a quic

  • MS SQL SERVER Error: 262 on Windows 7 family

    A standard family Windows 7 as operating system.  Downloaded SQL Express and I try to create a new database.  Get the following error MS SQL SERVER error: 262. Do not know how to set different settings for users for permissions set dbenable? Any help

  • Smartphones blackBerry BB Messenger App missing

    Dear BB torch Forum family Earlier this week, I noticed that my BB Messenger App icon disappeared, I saw a message came to me and went to answer it, but could not get to read it until I went to the Application Switch mode where I saw it, but it is no