LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating an Xcontol's appearance in a VI during edits

I'm writing my first Xcontrol and am confused about it's appearance in the VI in which it's used. I dropped the Xcontrol on my VIs front panel. Then I made some changes to the Xcontrol's Facade. I would have thought that after making that change that the appearance of the Xcontrol would have changed to match the changes I made in the Facade ctl (I think I applied all the changes properly). Then when that didn't work I tried to delete the Xcontrol from my VI and LabVIEW crashed. That's happened a couple of times. Finally I was able to delete the Xcontrol and drop an updated version of it on my VI. What did I do wrong?
 
George
0 Kudos
Message 1 of 9
(3,540 Views)
Hi George,
 
Make sure you save all changes (File->Save All) in the project explorer after modifying the farcade.vi.
 
Tunde A.
0 Kudos
Message 2 of 9
(3,525 Views)

"What did I do wrong?"

If I recall correctly, all VI's that use the XControl should be closed when the facade is edited.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 9
(3,522 Views)
If I recall correctly, all VI's that use the XControl should be closed when the facade is edited.
 
Is that different than unlocking it so it can be edited? Because it's legal to edit the facade VI when the VIs that use it are open.
 
George
0 Kudos
Message 4 of 9
(3,519 Views)

Just like Ben mentioned, in order to edit the Farcade.vi, all VIs calling  it must be closed.

Tunde A.

0 Kudos
Message 5 of 9
(3,503 Views)
>Just like Ben mentioned, in order to edit the Farcade.vi, all VIs calling  it must be closed.<
 
That's not true. If you right click on the Xcontrol in the Project Explorer you can select "Unlock for editing". Then you're free to edit the Xcontrol while the calling VI is still open. When you're done right click again and select "Apply changes to instances".
 
George
0 Kudos
Message 6 of 9
(3,501 Views)

I've found the same behaviour.  It is legal to unlock the XControl while VIs using it are loaded, make changes, and then "Apply Changes to Instances" - but cosmetic changes don't seem to always get propagated.  I found that I had to select the XControl on the host VI and replace it with itself (i.e. Right Click - "Replace" - "Select a Control ..." and browse to the *.xctl file) for the changes to show up.

Jaegen

Message Edited by Jaegen on 09-28-2006 10:36 AM

0 Kudos
Message 7 of 9
(3,500 Views)

Yep, exactly. Except when I tried to replace it LV crashed.

George

0 Kudos
Message 8 of 9
(3,495 Views)

Ah, the plans of mice and men ... Smiley Sad Smiley Very Happy

Well, you could dry deleting it and then dropping it on the FP again (more work though of course, depending on how much is going on on the BD)

Jaegen

0 Kudos
Message 9 of 9
(3,492 Views)