08-15-2013 09:25 AM
Although it's a very basic thing: I do not know how to debug an XControl and I also did not find any information in any documentation.
What I did so far: I open the Facade VI and then click on "Run Continuously". This seems to work at a first glance, BUT it turns out that it just starts the block diagram of the Facade (typically the event handler) repeatedly. Neither does it simulate the init, nor does it handle Data and State correctly.
So what is the best way to debug an XControl?
08-15-2013 12:48 PM
From the Host VI which calls your XControl, right-click the XControl while in Edit Mode and click Advanced > Show Diagram. Then you can use all the standard debugging tools on the Facade and any subVIs.
08-16-2013 02:50 AM
Thanks for the answer. So it's finally not possible to debug an XControl standalone or at least without the Unlock/Apply operations after each modification?
08-16-2013 03:58 AM
Hi,
in the timeout case, wire a "false" boolean to the stop terminal of the while loop. After your debug, don't forget to wire a true boolean.
08-16-2013 04:03 AM - edited 08-16-2013 04:10 AM
One more question: How do I debug the Init VI? (Of course I could just debug the VI itslef, but I want to debug it inside its context.)