AkinIndia Posted April 13, 2016 Report Share Posted April 13, 2016 Hi, Is it possible to have a cursor in waveform graph whose length does not extend till the edge of the graph? I am attaching some sample pics. Can the same be done in waveform graph? Quote Link to comment
Tim_S Posted April 15, 2016 Report Share Posted April 15, 2016 The cursors on the chart/graph/xy plot controls go to the extents.To get a line like in your pictures you would have to do something like a picture control underneath a graph with a clear background. The cursor line would be on the picture control. There would be a bit of math to draw the line and events to keep the two synchronized. Tim Quote Link to comment
eberaud Posted April 15, 2016 Report Share Posted April 15, 2016 Also be aware that LabVIEW doesn't like that much overlaying controls in front of a graph, that makes its rendering job much harder. Quote Link to comment
Yair Posted April 19, 2016 Report Share Posted April 19, 2016 A couple of extra comments: You don't need a separate control. Graphs have a Plot Image property which allows you to draw custom images in the control itself. The control should also have a couple of methods for converting between the relevant coordinate systems. You can configure the cursor style itself to be just the crosshairs, but I assume that's too small for you. You could add another plot which is your line. I usually work with XY graphs, where this is easy. I'm not sure what the exact details would be for a waveform graph. You can use the cursor events to update the values of this plot. Quote Link to comment
eberaud Posted April 19, 2016 Report Share Posted April 19, 2016 I also exclusively use XY graphs, even for graphs where the X axis is just the time. It provides so much flexibility... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.