LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete an Xcontrol property

This seems like a trivial question to me, but how do you delete an Xcontrol property?  I can't seem to figure out how to do this.  I can delete it from my project by right clicking and selecting "Remove from project", but this breaks my Xcontrol, even though the property isn't used (I just created it immediately before removing it).  How can I delete a property without breaking the Xcontrol?
0 Kudos
Message 1 of 4
(3,099 Views)
 

Hi cbfsystems,

When you refer to the XControl property, are you referring to the Read VI or the Write VI?  From what I understand and have seen, you should be able to right-click and Remove either the Read VI or Write VI under the property folder of an XControl.  You can then right-click the property folder and select New in order to create a new property.  If you want more specifics on this, the LabVIEW Help file discusses this process: Creating XControl Properties

I hope this helps,
Kevin S.
Applications Engineer
National Instruments

0 Kudos
Message 2 of 4
(3,067 Views)
OK, I can see how to get it to work now, but not in a way that I would have expected.  I want to remove an entire property (the Read VI, Write VI, and the property folder that they are in) from the XControl.  What I was doing before was deleting the property folder from the project.  This breaks the XControl.  I discovered (sort of by accident) that if the project is closed and then reopened, the XControl is magically OK (not broken anymore).  Is this a bug?  The XControl does not break when deleting only the Read VI or Write VI, but it does happen if they are both deleted.
0 Kudos
Message 3 of 4
(3,032 Views)
Hi cbfsystems,
 
I have reproduced your situation with the same results as you have described. One reason for this occurring can be that when you delete the property folder the library's links to the properties are broken (these are dynamic links) but when you save it and close it those links are flushed from the memory. I shall look further into this before we can come to the conclusion of whether it has something to do with the XControl architecture. Thanks for pointing this out.
 
Ipshita C. 
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,016 Views)