Jump to content

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


Porras

Recommended Posts

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

Selección de objetos.vi

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.