LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl doesn't update listbox contents

I'm finally diving into XControls and after much frustration am finally getting some results. I must be making this harder than it is. Anyway, I'm trying to update a listbox in the control. When the string list comes from something like a static array the listbox updates fine. But when I try to get the strings from the List Folder VI, then I get nothing in the listbox. Are there some things you can't do inside the Facade VI? I know you can call subVIs because it's done in the example.

How do you probe what's going on inside the Facade VI? When I first started working with the control I could set the Highlight Execution and watch what was going on. Now it does nothing and the run arrow never even comes on in the Facade VI. Yet the control is definitely working.

George
0 Kudos
Message 1 of 6
(3,451 Views)
 

Have you tried setting up breakpoints as mentioned here.

Ankita

0 Kudos
Message 2 of 6
(3,441 Views)

I didn't realize that you have to save the Xctl VI when you set a breakpoint in it (unlike a regular VI). I must have done that a few times and not realized it those times when the breakpoints were working.

George

Message 3 of 6
(3,437 Views)

Just on a side note, make sure that you bundle in a TRUE to the "State Changed?" element of the action cluster for each event case where you operate on the output data.

(This is a mistake I made a few times when I started playing with Xcontrols.)

Message 4 of 6
(3,436 Views)
I never quite understood when those elements should be set. And what's the difference between "Data changed" and "State changed"?
0 Kudos
Message 5 of 6
(3,433 Views)
Sorry, I meant "data changed? " of course. 😉
0 Kudos
Message 6 of 6
(3,429 Views)