Jump to content
AkinIndia

Smaller cursor length on waveform graph

Recommended Posts

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. 

post-53594-0-88966600-1460559872.jpg

post-53594-0-00420300-1460559874.jpg

 

Can the same be done in waveform graph?

 

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Also be aware that LabVIEW doesn't like that much overlaying controls in front of a graph, that makes its rendering job much harder.

Share this post


Link to post
Share on other sites

A couple of extra comments:

 

  1. 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.
  2. You can configure the cursor style itself to be just the crosshairs, but I assume that's too small for you.
  3. 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.

Share this post


Link to post
Share on other sites

I also exclusively use XY graphs, even for graphs where the X axis is just the time. It provides so much flexibility...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.