Jump to content

Creating and controlling scales on Waveform Graphs


MikeC3

Recommended Posts

Hi all,

I've been stumped by this current problem, so am finally posting after being a frequent reader for a few months now.

I'm trying to figure out how to programmatically create scales and control which side of a graph they show up on.

I know all about the "Duplicate Scale" and "Swap Scale" options on the right click menu, but am wondering why these are not easily accessible from property/invoke nodes. I have looked into the (for me) dark arts of VI scripting and XControls to see if there was any technique there of accomplishing this, but I have been unsuccessful thus far.

My solution to this so far has been to create a graph with a whole bunch of invisible dummy scales, alternating which side they are on, and limiting the number of scales that the user can add to whatever the maximum number of scales I initially created. This works great in individual cases, but I'm searching for a better solution as I develop a generic data grapher class.

I am curious to know if anyone else has encountered a similar situation, and what they ended up doing. I based my solution on this post, so I know others have dealt with this before.

I also was hoping to find out why this isn't able to be done from a property/invoke node, and if there isn't a good reason, submit it to the Idea Exchange. So let me know what you think of that.

Thanks for your help.

Mike

Link to comment
  • 5 weeks later...

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.