Jump to content

Set cursor offsets in LV85


yuxie

Recommended Posts

Posted

I have spent some time to study the new cursor-related features in LV8.0 and higher. I bet you all knew the cursor change event which is definitely a thumb-up thing. In addition, there is a new property node, called Label Offset in Cursor List. This new property node will slove a problem I have struggled in LV earlier versions. What I want to do is to show the cursor positions on the plot by setting the cursor name as the cursor position (string). But in earlier LV versions, it is hard to maintain the label string within the plot area. With the new property node, it is easy.

But the tricky thing is the unit of the Label Offset which is however NOT well documented. Anyway, I figured out that it is not in pixel. It is also related to the offset and multiplier of both the X and Y axes. Therefore, in order to set the Label Offset, we have to map the relative offset in pixel to the absolute offset in the plot X-Y units.

See the attached little example I made. Comments are welcome. Thanks.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.