LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble creating 3D Graph Xcontrol

Solved!
Go to solution

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

--
Tim Elsey
Certified LabVIEW Architect
Message 1 of 10
(5,285 Views)
I figured it out.  I wasn't setting Data Changed to true in the Action cluster.
--
Tim Elsey
Certified LabVIEW Architect
Message 2 of 10
(5,262 Views)

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?

--
Tim Elsey
Certified LabVIEW Architect
Message 3 of 10
(5,247 Views)

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.

Message Edited by elset191 on 07-28-2009 12:01 PM
--
Tim Elsey
Certified LabVIEW Architect
Message 4 of 10
(5,238 Views)

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.

--
Tim Elsey
Certified LabVIEW Architect
Message 5 of 10
(5,225 Views)

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  Smiley Tongue )

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 10
(5,221 Views)

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

Message Edited by elset191 on 07-28-2009 03:24 PM
--
Tim Elsey
Certified LabVIEW Architect
Message 7 of 10
(5,219 Views)
Solution
Accepted by topic author elset191
There's a cross post to LAVA where I gave one workaround.

___________________
Try to take over the world!
Message 8 of 10
(5,172 Views)

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.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 9 of 10
(5,165 Views)

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.

--
Tim Elsey
Certified LabVIEW Architect
Message 10 of 10
(5,154 Views)