LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one works vi, one doesn't. debugging help.

The attached vi sends a series of xml files to two separate servers. The files configure a camera; turn it on; then, turn it off. It works over and over again. When I add the same code to a more complicated vi, something hangs up. I'm looking for a suggestions, other than running highlighted that might help me debug this.

Thanks
0 Kudos
Message 1 of 4
(2,806 Views)
A good thing to do is wire all the error clusters to force data flow. In this way if executation hangs the  Vi will show a fat green arrow and when probing the error cluster you might see an error or warning passing.
Regards,
André (CLA, CLED)
Message 2 of 4
(2,801 Views)
Thanks, I give it a shot.
0 Kudos
Message 3 of 4
(2,798 Views)
 

Hi exo,

You may also want to try setting a breakpoint in your code, then step through it.  You can set a breakpoint from the Tools Palette (View » Tools Palette).  From the Tools Palette, click the Set/Clear Breakpoint button.  You can now set breakpoints in the code, which will halt execution.  You can then step throught the execution using the Step Into, Step Over, and Step Out of buttons, which are all found on the toolbar.  Like Andre said, you can also use Probes to debug your application.  These tools are explained in more detail in the link below, please let me know if you have any other questions!

LabVIEW Debugging Techniques

Regards,
Erik J.
Applications Engineer
National Instruments

 
0 Kudos
Message 4 of 4
(2,764 Views)