Admin Production ni-theme
Current Publication

Threads

LabWindows/CVI

Window»Threads

The Threads command opens the Threads window, which lists the threads in the program being debugged. Use this window to select the threads whose local variables and call stack you want to view in the Variables and Call Stack window. When you double-click a thread from this window, LabWindows/CVI displays the local variables for the selected thread in an open Variables and Call Stack window and displays the current source position of the thread in the Source window. The Up Call Stack and Down Call Stack commands in the Run menu display information about the currently selected thread.

The Threads window contains the following columns:

  • Thread ID—Displays the ID of the thread.
  • Current Function—Displays the name of the function currently executing in the thread.
  • Function ID—Displays the function ID for threads you created with the CmtScheduleThreadPoolFunction function or the CmtScheduleThreadPoolFunctionAdv function. You can use this ID to get various attributes of the thread function. For threads you did not create with the CmtScheduleThreadPoolFunction function or the CmtScheduleThreadPoolFunctionAdv function, this column is blank.

Right-clicking in the Threads window displays the context menu with the following options:

  • Sort—Opens the Sort Tree dialog box, which you can use to sort the threads in the Threads window.
  • Find—Opens the Find dialog box, which you can use to search for text in the Threads window.
  • Release/Confine Window—Releases the window from the Debugging Region if confined. Confines the window into the Debugging Region if released.

Right-clicking on the tab of the Threads window displays the context menu with the following options:

  • Close—Closes the window.
  • Release Window—Removes the window from the Debugging Region.