Programmat​ically reset scale layout in digital graph

Hi all,
I'm using a digital graph to display digital signals.
During visualization, digital line name can change, then plot names can changes at run time.
My issue is due to the scale layout. When plot name is too long, plot name is overlayed to the graph. I can fix the problem using Reset scale layout, but it seems that Reset scale layout cannot be enabled programmatically.
Can you help me?
Thanks in advance

HI AC_85
I verified that Reset scale layout cannot be enabled programmatically. I think you know the plot name size before changing it, why don't you change the plot area position according to that? Maybe you can use property node "plot area" to programmatically set the position of the plot area.
Regards

Similar Messages

  • Programmatically controlling multiple scale graph

    Is there a way to programmatically duplicate the Y scale of an XY Graph and to associate it to one of the multiple plots.

    > Is there a way to programmatically duplicate the Y scale of an XY
    > Graph and to associate it to one of the multiple plots.
    You can show and hide a scale, you while a VI is running, LV cannot
    create a new scale.
    Make your graph in advance to have the number of scales you need, then
    programmatically hide the ones you don't need and show the ones you are
    using. You can also set the Plot Active Y Scale to select which Y scale
    is used for the plot.
    Greg McKaskle

  • How to set minimum and maximum X scale in the XY graph if i have a X scale time format ?

    Hi,
    i choose in the picture enclosed, a time format for the X scale of the XY Graph.
    The problem is that i am not able to set the minimum and maximum of the X scale: In fact the property nodes of the minimum and maxinum X scales ask for  double as input.
    But i need to set my minimum and maximum X scale to be a time (because I already set the X scale format to a time)
    Could u help me please ?
    Samer,
    Attachments:
    scale.JPG ‏8 KB

    please i have another problem:
    i put the XY Graph in a while loop with maximum and minimum Xscale as property nodes inputs.
    The problem is that when i make a zoom  i can just see the zoom for a little while and then (because of the while loop) the Xscale is updated.
    is there a method so that the Xscale be updated just when i change its value ?
    or Could u tell me how could i zoom properly ?
    Samer,
    Attachments:
    zoom.JPG ‏11 KB

  • INVERTING SCALE LABEL IN XY GRAPH

    Hi All
    Is there any way to inverse the direction of scale label in xy graph?
    If we duplicate Y scale and swap side then the scale label appears in different orientation in the y2 scale (compared to y1)
    If y1's label is voltage1 and is appeared frm bottom 2 top then the label of y2 say,voltage2 appears from top to bottom.I want the two scale labels to be identically oriented.Is there any way to do that?
    Thanks in advance.

    There is a very simple solution : create a free label (use the text tool) and place it over the scale label. A right click will let you choose the label orientation. That what I did on the attached front panel. Of course you'll choose the right back ground color !
    Message Edité par chilly charly le 11-23-2007 03:14 AM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_FP.png ‏4 KB

  • Digital graph cursor text not visible after build

    We are using Labview 2011. Our application has been using digital graphs, with cursor text to define digital transition information since Labview 7.1. We have ported our application to Labview 2011 (and also 8.6.1 in which it works fine). While in the Labview development environment, the cursor text displays correctly. However when we build it, and run the .exe, we cannot see the cursor text. Our debugging efforts have been in vain - the xy locations are correct, but the cursor text is not visible.
    We want to standardize our next version software on 2011 (even though the Labview 2011 version is 4x larger and 2.2 x slower than the Labview 7.1 version) because we need x64 support, and want to run in Linux as well. We have spent considerable time trying to find out what is wrong, but the debugging time is very long to go through the thought - build - run cycle.
    Any help on why this might be would be gratefully appreciated.
    - Bart Schroder, Cleverscope

    Bart,
    Can you please post a screenshot of your code as well as what's happening when you run your code?
    Thanks,
    Renee M
    Applications Engineer
    National Instruments
    Regards,
    Renée M
    Applications Engineer
    National Instruments

  • Digital graph causes exception in 8.5

    Wanted to port some of my older LV panels to 8.5.  I noticed that LabView would generate the following message when attempting to load one of my panels:
    "Unhandled exception at 0x007513e0 in LabVIEW.exe: 0xC0000005: Access violation reading location 0x00000000"
    The following is a snippit of code from the debugger:
    007513B0  aaa
    007513B1  adc         esi,dword ptr [ebp]
    007513B4  bound       edx,qword ptr [ebx]
    007513B6  jne         007513B8
    007513B8  jnp         007513CD
    007513BA  jne         007513BC
    007513BC  xchg        eax,esp
    007513BD  adc         esi,dword ptr [ebp]
    007513C0  xor         ecx,ecx
    007513C2  xor         eax,eax
    007513C4  test        edx,edx
    007513C6  je          00751461
    007513CC  mov         eax,dword ptr [edx+4]
    007513CF  test        eax,eax
    007513D1  push        esi
    007513D2  mov         esi,dword ptr [edx]
    007513D4  jle         0075145B
    007513DA  mov         edx,dword ptr [edx+8]
    007513DD  push        edi
    007513DE  mov         edi,eax
    007513E0  mov         al,byte ptr [esi]    <<<<************************************************ Dies here
    007513E2  cmp         al,2
    007513E4  jne         007513EB
    007513E6  or          ecx,4
    007513E9  jmp         00751412
    007513EB  cmp         al,5
    Panels like this one are mid sized, containing 10 - 20 sub VIs.  I stripped the panel down to try and find what exactly was causing LV 8.5 to crash.  It turns out to be the digital graph.    I have attached a very simple panel that just contains the digital graph with nothing wired to it.  If you try to run this in 8.5 I am guessing it will cause the problem.  I tried it on a few PCs and get the same results.
    Attachments:
    main.vi ‏20 KB

    Looking at my disks, version 6 appears to have been the first release to support digital graphs.  I remember using as soon as it was available.  
    I tried several tests to see if I could further narrow down the problem for NI.
    I am able to load the raw version 6.0 examples directly into 8.5.  
    1) I saved version 6.0 example  "Simple Digital Waveform Graph" (SDWG) into a seperate VI.   It loads in both 6.1 and 8.5 with no exception.
    2) Loaded main.vi example and copied it into the SDWG using 6.1.   Causes exception in 8.5
    3) Connect the two graphs together in example so digital data is shown on both graphs, then saved the values as defaults.  This version loads in 8.5 with no exception.
    4) Start with main.vi, clear all the waveform data and save as defaults.  Causes exception in 8.5
    So, problem appears to have nothing to do with the cursors but does appear to be something with the data that had been stored into this graph when the defaults were saved.   It is really strange that clearing the data does not solve the problem.  Maybe this is a bigger problem than I originally thought.   
    Message Edited by lecroy on 10-09-2008 01:07 PM

  • Edit scales without resizing a graph

    I'm using an intensity graph in order to show an image acquire by a camera. The size of the 2D array linked to the graph is related to the number of pixels of the image. But I do not want the scale to be in pixels but in µm, knowing that 1 pixel is 5.29*5.29 µm.
    How can I change the scale of the intensity graph in order to show µm without changing the plot area?
    Thank you.

    zyl7,
    the parameters you are looking for are properties from the graph itself. Therefore, you have to look around a bit in the property node from a graph... i am sure you will find out quite quick what i mean.
    There are some examples provides with LV, but they are commonly focused on a special control; sadly i havent found one for intensity charts/graphs.... but this link can help you.
    hope this helps,
    Norbert B.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Changing time scale for mixed signal graph

    I want to change time scale for mixed signal graph 1 day or  5 day of realities?

    And what exactly are you having problems with? If you want to use a property node, it's Xscale.Maximum.

  • Programmatically add multiple scales to graph

    On the front panel, I can choose "duplicate scale" "delete scale" to add/remove multiple scales a Graph control.  Can I do this programmatically,i.e., use the VI to adjust the number of scales on the graph?  The purpose is to have variable number of plots on the same graph, each having a different scale.

    I use this: Add the maximum number of needed scales per hand. You can swap sides to get a better look.
    To switch on/off a scale use the property "Active Y Scale" to select the scale and "yscale.visible" to switch on/off.
    I've written a small demo.  I hope it's usefull.
    Attachments:
    add_multiple_scales_to_graph.vi ‏24 KB

  • How to change the text in the legend of a graph programmat​ically in labview

    I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?

    Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
    Tim
    Attachments:
    legend.vi ‏12 KB

  • Clearing Charts and Graphs Programmat​ically

    I must be overlooking something simple because it seems that clearing charts
    programmatically would be such a common thing, but where then is the
    attribute to do this?

    Simple indeed. Thanks Greg.
    "Greg McKaskle" wrote in message
    news:[email protected]..
    > > I must be overlooking something simple because it seems that clearing
    charts
    > > programmatically would be such a common thing, but where then is the
    > > attribute to do this?
    >
    > To clear a graph, write and empty plot (empty array) to its terminal or
    > a local
    > variable. To clear a chart, write it to the charts History attribute.
    >
    > Greg McKaskle

  • Programmatically changing the x scale range of xy graph

    Hi,
    from a subvi I need to access the x scale range of an xy-graph on the panel of the main vi. I tried the code shown in the pdf attached to my posting. How can I restrict the general property node for an unspecified control to a more specific property node that offers the property "x scale range"?
    Thanks,
    Peter
    Attachments:
    access_property_node.pdf ‏34 KB

    You can use "To More specific Class" from the application control palette.
    Of course make sure to handle errors gracefully. This is just a draft 
    Message Edited by altenbach on 09-18-2007 09:31 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ToMoreSpecific.png ‏5 KB

  • 3D Graph Render Window Programmat​ically

    Hello Guys,
    you know it is possible to right click on a 3D picture graph object in run-time and get a new movable window with "Render Window". I would like to be able to open directly that window instead of the front panel picture control.
    Actually I have a 2D graph which allows me to see a basic map, I enter a formula for Z(X,Y) and I want to optionnaly show the 3D result. The X,Y plane is more important than the 3D and the XY graph is more efficient, so I don't want the 3D all the time. Actually it works, I just change the Visible property value True/False and it's okay, but the render window is more efficient, the one on the front panel is a bit slow with mouse dragging...
    Do you know if there is any property or method to open, close this render window programmatically?
    By the way, I would like to know if it is possible to manage "Run-Time Shortcut Menu" for any front panel control, as it is possible with VI Menu bar with event structure. There is a reference constant for the menu bar. I don't find the menu reference for a control.
    Thanks for reading,
    Jimmy

    Thanks Darin,
    it's what I'm looking for but I'm not using the same picture control so the idea is quite different. Attached some screenshots to show what I'm using exactly. If you have any idea how to open that Render Window programmatically, that would be really nice.
    Regards,
    Jimmy
    Attachments:
    Find.png ‏88 KB
    Run-Time Menu.png ‏83 KB
    Diagram.png ‏73 KB

  • How can I programmat​ically detect transition times in a digital waveform

    Hi, I have a digital waveform and at certain times I have transistions and glinches , how can I programmatically detect and record the time stamps of the transitions
    Thanks  

    Let me see if I understand you. You are reading 14 bits in parallel and you want to know how long between transitions of just one of those bits - say bit 11. Is this bit number constant or can the number of the bit in which you are interested change?
    Well, you could XOR the value from each read of the digital bits with the 14 bits you got from the previous read. If the resulting value of bit 11 is true, the state of bit 11 has changed. Use that flag to read/restart an interval timer. Of course the resolution of your measurement will be dependent upon the rate at which you are reading the 14 bit input. If you are only sampling the 14 bits every 500 msec, you obviously won't be able to measure intervals of less than 1/2 sec.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How do I programmatically set the scale range for the two y-scales of the two plots

    hi,
    I am using labview 8.2
    To programmatically assign a range to the y-scale of a plot I use a Property Node for the plot display and adjust Y.Scale.Range.Minimum.
    How can I assign the ranges of a plot with multiple y-scales?
    miethe

    One of the problems with using two Y scales is that the display can get very messy is you also want grids on the plot. To address this, I created the attached VI. After allowing the right axis to autoscale, it fine tunes the marker locations so the grid lines for the left and right side overlay each other.
    To use it all you have to do is write your data to the graph and then call this VI with a reference to the graph.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    Match Dual Y-Axis.vi ‏25 KB

Maybe you are looking for