Jump to content

Trouble creating 3D Graph XControl


Recommended Posts

Hey everyone. I made a post a few days ago on the NI Forums (here) because I am having some trouble creating my first XControl.

I decided to come here to see if any LAVA specific users have any insight

Here's my progress so far:

I've simplified the actual implementation to the XControl so you can test it if you please.

Show Plot is the VI you want to run. It will call Plot dynamically, which is where the XControl is. There are directions on Show Plot's front panel. I don't think I've left any subvi's out.

XControl Test.zip

Link to comment

I don't have any real answer for you, but if you add a wait of a couple of seconds between opening the FP and running the VI the error doesn't occur.

If you debug the actual error, you can see it's an error 97 in the first property node, which is a null refnum.

I'm guessing that you're correct and that there's a race condition somewhere. Basically, I guess the ActiveX object needs enough time to be initialized after being "dropped" before you try to access it. You might be able to add the wait to the XControl's Init command to encapsulate it.

  • Like 1
Link to comment

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.