07-24-2009 02:58 PM
Hey everyone,
I've never tried to make an XControl before, so I'm having some trouble. I've attached my work so far. If you open Test.vi you will see a 3D graph. When it is run nothing will be plotted because it generates an error when I try to. However, the other parts of the xcontrol that I implemented work. These are using the arrow keys to rotate the graph, and also I added a right click menu.
If anyone can tell me why it won't let me graph I would appreciate it.
Thanks
Solved! Go to Solution.
07-27-2009 02:46 PM
07-28-2009 09:33 AM
So the fix I posted earlier works all well and good in my test environment, but then when I try to actually implement it I get error 97. This is the same error I was getting before. It seems to come up at the first property node for it.
The VI I'm placing it in is reentrant, I'm not sure if that has to do with the problem though. Also, it only errors on the first time when I call it from my main VI. The instance stops running and remains open. If I run it again it works fine.
Does anyone have any suggestions?
07-28-2009 11:59 AM - edited 07-28-2009 12:01 PM
When I call the VI with the xcontrol dynamically as a reentrant subvi it doesn't work.
When I call the VI with the xcontrol dynamically as a nont-reentrant subvi it works.
When I run it directly it works.
07-28-2009 02:53 PM
Yet another reply to my own thread...
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.
07-28-2009 03:00 PM
I am sorry that you find yourself on on the edge of technology and I can't step up to help you. I did submit a request to have an Application Engineer look into this situation. But when you are talking about a 3d graph in an XControl, you have a very small community that can help out. Hang in there Tim and keep us posted.
Ben
(Standing very far behind Tim and watching for fall-out )
07-28-2009 03:21 PM - edited 07-28-2009 03:24 PM
I'm sorry too. I think if this wasn't my first xcontrol I'd be a lot better off. I have a feeling that the ActiveX part of it throws in some extra complications. But then again, I have no idea.
Oh, and thanks for putting in that request
07-30-2009 06:42 AM
07-30-2009 08:29 AM
The timeout works where you suggested it with only 125 ms. Plenty fast for a customer. I've been trying to move it into the xcontrol itself like you said, but so far no luck.
Thank you.
07-30-2009 12:50 PM
I'm proud of my work so I'm going to post my XGraph. I've only implemented the properties I needed for my application, so they're kind of limited. The main features I think are pretty slick though.
The Plot.vi just has the xcontrol so you can play with it easier.
Comments/suggestions welcome.