How to Debug a LabWindows™/CVI™ Executable

Updated Dec 18, 2023

Reported In

Software

  • LabWindows/CVI

Issue Details

I have a LabWindows/CVI executable that is crashing and I want to debug it.

Solution

Additional Information

Although the Call Stack is accessible as a watch window and debugging tool in LabWindows/CVI, there is no direct access to its information or listing from a LabWindows/CVI program. However, there is two ways that might work for your situation:
  • Depending on your operating system or environment, you might be able to implement system functions to get the stack information you are looking for; for Windows try checking the DbgHelp Library.
  • You could implement your own global variable or linked list that keeps track of function "calls" and acts as a LIFO stack. For example, a function's name and description can be added to this stack (or directly logged to your data file) and then popped off when the function has completed.