Bode magnitude graph cursor not following plot

Hi,
I was wondering if anyone would be able to shed some light on a problem that I am having regarding an XY graph cursor.
I have developed a simple VI to determine the characteristics of a low pass filter using a sine wave ramped in frequency and subsequently monitoring the gain of the filter to create a Bode plot.
Through analysis of the Bode plot I would like to determine the cut-off frequency of the low pass filter under test. I have introduced a cursor into the graph and using a property node I hoped to drive the cursor to the -3dB point in the Y axis and output the cursors corresponding X position thereby determining the cut-off frequency of the filter.
However the cursor never seems to follow the plot beyond the first step of the loop. It feels as if there is a break in the plot between the 1st and 2nd iteration of the while loop used to ramp the signal generator.
I've tried to work out why the cursor won't follow the plot to -3dB but so far I am stumped. 
Any help or advice that you could provide would be greatly appreciated ! I have provided the attached VI for clarity.
So liberate your minds and give your soul expression. Open up your hearts, I'll sing for you this song. Let the people sing !
Solved!
Go to Solution.
Attachments:
LPF Auto Test.vi ‏109 KB

I have corrected your VI.
First, you needed to put the property node AFTER the while loop, because you need the graph to be done first and then look at the frequency cut off.
Second, in LV, the property nodes are read from top to bottom. So you need to place the cursor at Y = -3 first, and then read the X position.
I attached the corrected vi
Giuliano Franchetto
Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
Attachments:
LPF Auto Test.vi ‏109 KB

Similar Messages

  • LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.

    Hello, LV 8.2.1 notes indicates the following bug fix:
    43SAIR2A  Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
    I am running this version, and still have this behavior.  Is there anything I may be missing, and/or certain circumstances that may still be causing this?
    thanks in advance,
    Darren

    Darren:
    I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
    Regards,
    Rudi N.
    Attachments:
    MixedGraphs.vi ‏15 KB

  • XY graph cursor won't snap to plot when dragged

    I haven't used XY graphs much and have a need to have several plots on the graph and be able to find the value at points on the plot using cursors.  Everything works fine except that I can't drag the cursor along the plot.  Even though Snap to is on and drag is enabled when I drag the cursor it does not snap to the plot.  When I then use the cursor navigation keys the cursor snaps to the last point point it was on before the drag instead of snapping to the plot during the drag.  I want the user to be able to drag the cursor and have it snap to the plot it is attached to.  Any help would be appreciated.
    I've attached a simple example VI.
     

    Yes, data was an array of clusters, each cluster containing three elements*.
    I agree that it is a bug. That odd "this works" should be maybe be renamed to "this works, sort of....". I probably wouldn't use it.
    *This particular data structure for xy graphs is not documented here! So use at your own risk

  • Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor

    I'm working 6 waveforms on 3 different plot areas in a mixed signal graph in LV2009.  When I try to pull the Cursor.PosY property from my cursor (in which Watch All Plots is True, and is set to Multi-Plot in the graph properties), it returns the value of only the first plot in the cluster of waveforms fed into the graph.  I've tried changing the active plot, active plot area, nothing changes.  I am able to retrieve each value via the cursor legend, but I cannot pull each of those values into another portion of my program.  Also, I noticed that when setting events in an event structure, any events relating to a cursor drag aren't present as they are in a waveform graph.  My workaround is to create an indicator for the Cursor.PosX property and monitor when that value changes, but I feel there should be an easier way.  Any help is appreciated.
    Thank you in advance!

    Jeanius,
       I am not quite sure why the cursor pos in the Wavegraph reference does not change when you change the active plot, but if you grab a reference to the specific cursor and then change the active plot things you receive the expected behavior.
    Ben J.
    National Instruments
    Applications Engineer
    Attachments:
    MODDEDmixed graph cursor ex.vi ‏41 KB

  • How to force waveform graph cursors to show Y value on more than one plot?

    Hello
    Is it possible to show more than one Y value on waveform graph cursors?
    Thanks in advance.
    Pawel

    Hi Dennis
    That is correct, on graph woth multiple plots I want to display multiple Y values of plots at the same X value.
    I know I can use property node to access cursor list etc. and this is how I have done it, but my question was rather if it is possible to force the cursor legend to display more than one Y value (as a native display). As a default it displays one value and you can choose which plot you want to stick to, but it would be a great feature to have possibility to expand cursor legend to display more than one value.
    The question has nice consequences. If it was possible, you could use a property node to export image of the graph, control sizes, or even simple "copy" data from the popup menu. Otherwise we need to "artificially" glue the exter
    nal controls displaying Y values if we want to export pictures, etc.
    But since you did not answer that I supose it is not possible, as I thought.
    thanks anyways.
    kind regards
    Pawel

  • Cursor does not follow in garage band

    I click on record and the cursor does not move so I can not follow in what part of the timeline I'm, how can I solve this?

    Well, I closed Garage Band and reopen it and it solved the issue, go figure!!

  • Moving xy graph cursor with mouse and programmab​ly controllin​g snap to point

    Hi,
    I have run into a bit of a problem. I am trying to create a program which allows a user to select a location on an XY graph by simply clicking in the vacinity of the plot. Most of it is working, however I find that I can't programmably control the snap to point function reliably.
    I hope this is a clear outline of the problem:
    - The cursor starts in a Free state, so that when the
    user clicks in the plot area, I can set the cursor
    position to the nearest point by setting the
    CursorPosition using the graph's property node.
    - Maybe the user didn't like the chosen location and
    wants to drag the cursor over a bit. Ok, user drags
    the cursor to a new position.
    - Now th
    e cursor position is probably not exactly on
    the plot trace. If, at this point, I set the cursor
    to Snap To Point, the cursor does not snap to the
    nearest point on the graph (relative to its current
    position), but instead to the last place a _mouse_
    action placed it.
    - Immediately after the new location has been set,
    the cursor state has to be reset to free in case I
    need to programmably move the cursor again (I
    can't seem to programmably control the mouse in
    any state but Free)
    How do I go about getting the cursor to snap to the closest point at it's new location? I'm at a loss.
    Any insight you might have would be greatly appreciated.
    Thanks much!
    Tere

    So what is the question about... I have to use XY graph in my program. It is used in Loop while cycle. It shows the statistic of a variable. I am using cursors in this graph to check the actual value of a variable in different period of time. But there are 7 variables and it is extremely hard for user to check each value independently. So I tried to make them moving on the X axis (TIME) together using the property node (cursors reading the position (only X axis, Y axis status lock to plot) of the major cursor and follow it... Everything looks great? But it did not work when I am trying to move the major cursor manually on graph... It works only when I am using the cursor movement buttons... But they work very slowly when there is a lot of data in graph.
    I want to find out is it possible to make seven coursers mouthing together By the X axe and be Locked each at its plot by Y axe manually (Using mouse moving on a graph). Is it possible? If it is than how to do it?

  • XY Graph Cursor

    I have one xygraph with six plots(six signals). I want associate one cursor on the six plots. I want move cursor in the graph and display the different values in the different plots. How this?.
    Tengo un gráfico con seis plots y quiero asociar un cursor a los seis. Donde al moverlo por el gráfico me muestre en seis controles enteros los valores Y de los plots.
    Muchas Gracias a todos, MFS.

    So what is the question about... I have to use XY graph in my program. It is used in Loop while cycle. It shows the statistic of a variable. I am using cursors in this graph to check the actual value of a variable in different period of time. But there are 7 variables and it is extremely hard for user to check each value independently. So I tried to make them moving on the X axis (TIME) together using the property node (cursors reading the position (only X axis, Y axis status lock to plot) of the major cursor and follow it... Everything looks great? But it did not work when I am trying to move the major cursor manually on graph... It works only when I am using the cursor movement buttons... But they work very slowly when there is a lot of data in graph.
    I want to find out is it possible to make seven coursers mouthing together By the X axe and be Locked each at its plot by Y axe manually (Using mouse moving on a graph). Is it possible? If it is than how to do it?

  • Unknown graph cursor tool

    I'm hoping someone can identify a graph "tool" that's interfering with my LabVIEW program.  It's not on the normal graph palette and I can't find reference to it anywhere.  It activates seemingly on its own during runtime, and sticks around if I abort execution (its behavior appears to be coded into the graph itself).  I wasn't able to take a good screenshot of what the pointer looks like when the tool is active, so I've included a scaled-up drawing below (pointer is the black/white parts).
    Some additional details:
    - It usually activates when the mouse point hovers over one of the cursors on my XY graph (but only under certain conditions that are not 100% reproducible).  The graph cursors are free dragging, and the tool has only activated when I had more than 1 plot on the XY graph.
    - If I click on a graph cursor when this tool is active and drag in either the +/- Y direction, the Y scale min/max values change to seemingly random values and the Y scale begins scrolling up.  Nothing happens if I move the cursor in purely the +/- X direction.
    Much thanks in advance.

    Okay, I've been able to reproduce the problem consistently in a much simpler VI (attached).  It only contains is a single XY graph, with no code on the block diagram.  There's some data saved on the graph, and I put a bunch of cursors on it.  When I follow the steps below, I've been able to reproduce the issue 100% of the time.
    I should note that I'm using LabVIEW 2014 Professional (64 bit) on Windows 7.
    Attachments:
    Test.vi ‏118 KB

  • Unexpected Windows cursor/Waveform Graph cursor behavior

    Hi,
    I got a very strange Windows cursor behavior with waveform graph. Simplified VI is attached.
    LabVIEW 2014 SP1
    The problem is:
    The VI contains only one waveform graph.
    1. I start the VI. Cursor Movement Tool is selected in the Graph Palette by default. Corresponding “Cross with dot” Windows cursor appears when mouse is moved over the plot area (see image). So far so good.
    2. I select Zoom in the Graph Palette and use it two-five times (second image).
    3. I select Cursor Movement Tool in the Graph Palette again but Windows cursor does not change as it should. It is an open cross now (third image); i.e. the same as shall appear when cross of Graph Cursor Lines is reached.
    4. I click mouse three-seven times anywhere in the plot area and the cursor becomes normal (as in the first image).
    The problem is not only in shape of the Windows cursor. The whole Graph cursor functionality does not work properly if the Windows cursor has the wrong shape.
    Please advise what could cause this problem.

    It seems, i cannot explain the question in good way
    It is not about my data or zooming. It is about strange bahaviour of the Graph. The following sequence of steps illustrates the problem and shows that the zooming is not the issue (or, at least, not the main issue):
    I do the following:
    1. Start the VI.
    2. Select first Graph cursor in Corsor palette and use pop-up menu "Bring to Center".
    3. Zoom couple of times (not too much) keeping the Grapg cursor visible.
    4. Select Cursor Movement Tool in the Graph Palette.
    5. "Open cross" Windows cursor appears from the beginning. I cannot pick up the Graph cursor.
    6. Click left button of the mouse several times in any poin of the graph area.
    7. Windows cursor is changed to the normal "cross with central point".
    8 Now I can pick up the Graph cursor.
    I would suspect problems with zoom until p.5. However p.6-8 are done without any change of the zoom.
    By the way, I found more:
    If I try to move the Graph cursor after p.5, the whole graph moves and fires event "Scale Range Change". It must not happen with Cursor Movement Tool selected.
    I can guess only about some strange setting of the graph. May be I am not aware about them

  • How do I get an event-based response to a graph cursor change?

    I want to respond to the user moving a cursor on a data (X-Y) graph. (LV 7.0)
    What I really want is an event called "Graph.Cursor.Value Change", which would supply me with the new coordinates, but I see no such event.
    If I use the MOUSE MOVE event to trigger obtaining the cursor values, it does not give me an event, until the cursor has stopped moving, the button is up, and the mouse moves off the cursor line.
    Sure, I could use a TIMEOUT event, and read it every 100 mSec, but I don't like the time lag.
    What I did was to set a flag TRUE on Graph.MouseDown and FALSE on Graph.MouseUp. I then choose an event timeout of 10 mSec or -1, depending on that flag.
    That works, but is there a more direct way that I'm missing?
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    No, unfortunately there is not.
    To code around this limitation, I typically use the timeout event in a more complex way as follows:
    The timeout is wired to a shift register that is initialized with "-1" (no timeout). The value from the shift register then crosses the event structure and feeds to the shift register on the right in almost all event cases.
    I add two special event cases:
    (1) "graph-mouse down" puts a small number (e.g. 10ms) in the right timeout shift register
    (2) "graph-mouse up" puts again a -1 in the right timeout shift register
    (x) All other event cases (incl. timeout) wire the current timeout straight across to the right shift register.
    The timeout event contains the logic to read the graph cursors and associated actions.
    This way there is normally infinite timeout. Once the mouse goes down on the graph, the timeout executes at relatively rapid succession until the mouse is raised again. At which point everything quiets down.
    LabVIEW Champion . Do more with less code and in less time .

  • Graph Cursor Controls

    On the graph cursor control (the 4 sectioned diamond that appears withthe cursor legend) I'm wondering what the top and bottom diamond do if anything. The left and right ones are simple enough (forward or back one sample) but the top and bottom ones don't seem to do anything from what I can tell. Are they just for decoration?
    Solved!
    Go to Solution.

    Dan,
    I never noticed that before but you're right, in a multi plot graph the up/down diamonds will attach the cursor to a different plot. I never noticed before because I usually change my cursor style so as to not show the horizontal line (just shows the vertical stripe for the cursor).

  • XY graph cursor position bug

    I have reproduced the bug mentioned here:
    http://forums.lavag.org/Graph-Cursor-XY-Position-Bug-t1366.html&gopid=40859#entry40859
    I've reproduced this bug (?) in Labview 8.5, with an XY graph doing
    much the same as Jack. The attached zip file contains a stripped down
    version of my program (originally written by my coworker, Andrew
    MacDonald). Run "RENA3 Data Viewer.vi" and follow the instructions.
    As Jack said, changing Cursor.PosX to Cursor.Index solves the problem.
    I did not find this bug mentioned anywhere other than the above link.
    Fraser
    Attachments:
    XY Graph Cursor Bug.zip ‏142 KB

    Hi Karla,
    Sorry if that wasn't as obvious as I thought! :-)  Hopefully the attached image makes it clear.  On the front panel, 'Cursor Channel' is inputted.  This is directly wired to Histogram.Cursor.PosX.  Immediately following, Histogram.Cursor.PosX is read and wired to the front panel indicator 'Cursor.Cursor Position:Cursor X'.  There is always a difference of 15 or 16 between the two values.  If there was no bug, these two values should be identical!  I can only conclude that Labview is doing something funny...
    As I mentioned before, changing Cursor.PosX to Cursor.Index fixes the problem.
    A bit of background:  my FWHM function outputs the peak channel, and the cursor is supposed to go through the peak so you can have a visual check that it is analyzing the right peak.  I noticed that the line would never go through the peak; the line would always have an offset.  After wasting a couple of hours, it became clear that I was wiring the correct value into 'Cursor.PosX', but something was going wrong beyond that.
    Cheers,
    Fraser
    Message Edited by fjharris on 01-25-2008 11:34 AM
    Message Edited by fjharris on 01-25-2008 11:36 AM
    Attachments:
    Labview Bug.png ‏27 KB

  • XY Graph Cursor Problem in Labview 7.1.1?

    Hallo,
    I am  using Labview 7.1.1 and I am facing one problem with XY graph cursor. If I am moving cursor in one graph, I am expecting same movement in another Graph. But when I move cursor in Graph1, cursor in second graph moves but not to exact X value of Graph1.
    Property of Cursor in both graphs must be "Lock to Plot"
    If any body knows about this please let me know ASAP. I am attaching example VI for your reference.
    Thanks,
    Sashi
    Attachments:
    XY Graph Cursor Problem.vi ‏101 KB

    It's a curious effect. Probably the floating point coordinate is sensitive to the exact pixel alignment (I mean that this would not happen if we had for example 1 pixel per point in the X direction).
    Anyway, if you use Cursor Index instead (which is an integer) the behaviour is as expected.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Any help regarding Graph cursor?

    Hi All,
    I am working with a multi plot graph and i am using a single cursor associated with all the plots.
    In my application ,from the 10 plots user can select and view selected no of plots
    ie,after execution it displays 10 plots now the user use some on/off buttons to view the selected plots.
    My problem occurs related to cursor.
    Some plots coincide(say plot1 and plot2),so even when i am not viewing the plot1 and only viewing plot2
    the cursor legend shows as plot1 at some points where plot2 is also having value.
    And if i am not viewing plot3, but i move the cursor through that location it shows plot3.
    Can anybody help me to soft this? 
    Thnks....

    Hi
    taking a stab in the dark,as there no code to understand,
    suggest you check in debug mode the cursor properties as your perform the selected operations.
    apart from that its difficult to guess
    xseadog

Maybe you are looking for

  • How to install oracle 10g in Solaris10 Container

    I'd like to install oracle 10g in local zone of Solaris 10. But I don't know how to set "set noexec_user_stack=1". Now before install oracle 10g. I created /etc/system file in local zone. The file content is only "set noexec_user_stack=1". And I perf

  • XI exception in RFC adapter

    Hi, I have CRM (RFC) -> XI -> Third Party (HTTP call) scenario. Its a synchronous call in which the third party send a response back. My question is as below - Suppose call gets triggered from CRM successfully and it reaches the third party. The thir

  • What is the audio format and bitrate for the MixRa...

    Regarding the MixRadio+ "high quality": What is the audio format (AAC/MP3/WMA/etc.) ? What is the bitrate (192/256/320kbps etc.) ? Thanks 

  • JApplet quitting too early

    Hello. I have a JApplet that exchanges information with a remote server via an ObjectOutputStream (which wraps an HTTP URLConnection). When the applet is shut down, my applet must notify the servlet that the applet is shutting down. My applet has cod

  • Manage AEBS From Wired Computers

    I have a LAN with 7 or 8 computers connected. All but 2 connect wirelessly. I have yet to assign static IP addresses and intend to shortly. Part of the reason for static IPs is that one of the wired computer's IP changes from time to time and then I