george seifert Posted March 21, 2006 Report Share Posted March 21, 2006 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? 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 it definitely working. George Quote Link to comment
schinni Posted March 29, 2006 Report Share Posted March 29, 2006 Why dont you try putting a breakpoint in the Facade VI? When the execution pauses at the breakpoint, you can set up your probes and step from there. It worked for me (using LV 8.0) Quote Link to comment
george seifert Posted March 29, 2006 Author Report Share Posted March 29, 2006 I finally realized that, unlike regular VIs, after I put in the breakpoint I also have to save the Facade VI. I was just putting in the breakpoint and then running it. The breakpoint didn't take until I saved it. George Quote Link to comment
schinni Posted March 30, 2006 Report Share Posted March 30, 2006 I finally realized that, unlike regular VIs, after I put in the breakpoint I also have to save the Facade VI. I was just putting in the breakpoint and then running it. The breakpoint didn't take until I saved it. Indeed. And after testing, it needs to be removed and resaved. It is a bit cumbersome but that is the only option - at least for now. By the way, it is off-topic, i am sorry - but just curious as to how you are using the XControls. What is the functionality that you are providing to your system using them? Maybe I can get some new idea for maximising their use. In my case, we are using it to provide the clients with customisation features... Quote Link to comment
george seifert Posted March 30, 2006 Author Report Share Posted March 30, 2006 Mostly I was just playing with them to see what they were all about. But what I did try was to put everything necessary for saving and retrieving an XML configuration file in one place so that I could use it in several applications. In this case I think I might have been better off putting the code in a subvi. George Quote Link to comment
schinni Posted March 31, 2006 Report Share Posted March 31, 2006 Mostly I was just playing with them to see what they were all about. But what I did try was to put everything necessary for saving and retrieving an XML configuration file in one place so that I could use it in several applications. In this case I think I might have been better off putting the code in a subvi. You are probably right. In the case of a config file related operation, a sub-VI would probably be better. Quote Link to comment
Norm Kirchner Posted April 23, 2006 Report Share Posted April 23, 2006 Actually you should be able to right click on the XControl and show block diagram. Then it should open the instance block diagram. You'll have free control over probing the diagram from there Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.