LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I debug an XControl?

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?

 

 

Message 1 of 5
(3,076 Views)

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.

0 Kudos
Message 2 of 5
(3,061 Views)

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?

Message 3 of 5
(3,038 Views)

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.

Giuliano Franchetto
Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
0 Kudos
Message 4 of 5
(3,031 Views)

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.)

0 Kudos
Message 5 of 5
(3,028 Views)