LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Picture Control: "Remove Object" doesn't seem to work properly

Hi, all.

I have a problem with adding and deleting child objects in the 3D Picture Control. Imagine you have a parent object, and you want to display alternatively several child objects that depend on that parent object. Every time I want a change, I apply "Remove Object" from the parent object to delete the one I don't want to display and "Add Object" to add the other one I want to be shown this time in the 3D Picture Control. But this doesn't seem to work.

I send a sample code (LV 8.6). First of all you have the initialization: every object is defined and given an object reference. Secondly, you define the first state, depending on the value of a selector (ring control). The third part of the sequence is the main loop, where objects are displayed. Additionally, you have an event structure that detects any value change in the ring control and makes the objects swap.

But there is always an "invalid reference" error in the second change. Why?

Thank you very much,
Francisco
0 Kudos
Message 1 of 17
(4,108 Views)

Has anyone had any luck with this problem above?

 

It seems similar to something I'm struggling with. I'm trying to use the Object:Remove Object method of SceneObject in a 3D picture control to remove a sphere. The method doesn't seem to remove any objects whatever I try.

 

I'm using LV8.5, not sure if this is fixed in newer versions but would someone be able to confirm that this 'Remove Object' method works? I can post some example code if required. 

 

 

Many thanks in advance,

 

Ryan Bakewell 

Message Edited by ryanbakewell on 01-02-2010 12:57 PM
Message Edited by ryanbakewell on 01-02-2010 12:58 PM
0 Kudos
Message 2 of 17
(3,996 Views)

Hi friends, anybody solved this issue? I have the same problem so it would be very usefull if it could be explained. Thanks

0 Kudos
Message 3 of 17
(3,670 Views)

I saw something similar and posted in the "LabVIEW minutia that may bite you some day thread here.

 

 

 

REF A is not equal to REF B.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 17
(3,665 Views)

My problem is present when several objects are in the same scene, I can not remove any of them independently. In fact, when I apply the remove method to an object it doesn't seem to work and all objects remain in the scene. Following the example at the begining of this issue, how is possible to remove any of the objects? thanks for your response.

0 Kudos
Message 5 of 17
(3,659 Views)

Are you using a "refresh" method afterwards?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 17
(3,657 Views)

I don't think so, could you indicate me where to find the refresh method? thanks.

0 Kudos
Message 7 of 17
(3,651 Views)

methods are accessed via invoke nodes. Drop one of those and select the method.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 17
(3,649 Views)

Maybe I don´t know how to use it. I'm trying to create a method from the reference out of the SceneObject but unsuccesfull. Is the correct way or I'm completly wrong? In any case, I don't find the "refresh" method.

0 Kudos
Message 9 of 17
(3,646 Views)

it is a method of the picture.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 17
(3,642 Views)