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.