02-29-2012 04:15 AM
Hello,
in Visual Studio (e.g. 2008) Professional, you have the possibility to halt debugging and then see which Threads are currently running (now stopped)
and you can switch between these threads (context switch), so you can see the current data in this thread, set breakpoints ...
In LabView you can also create multiple threads by creating e.g. multiple parallel while-loops.
If you halt debugger, it shows you at which point the execution was haltetd (e.g. in WhileLoop2 at point x).
Is it possible now, to see where the other while loops are currently stopped?
Thanks
02-29-2012 08:03 AM
Turn highlighting on.
02-29-2012 08:11 AM
Hello,
Highlighting would only help, if you go on / continue to run the vi.
But what, if the other thread is running in an SUB-VI of SUB-VI?
OK, I see special Arrow on the SUB-VI, but when I go into SUB-VI, I cant see in which SUB-VI (if there are more than one) the other thread is running.
I want to see all current (stopped) Threads in one list, like here in VisualStudio : Link
Thanks.
02-29-2012 08:39 AM
I'm familiar with Visual Studio since I use it quite often. You would need to turn highlight on for the subVIs as well to see where the code is. If you're dealing with reentrant VIs, then you're dealing with something else. You have to make sure you enable debugging for reentrant VIs in order to be able to use highlight mode (the LabVIEW Help explains this).
Unfortunately, that's all that you have available in LabVIEW. There was an idea posted to have the hierarchy display the state of VIs so you could quickly find where the code was running.
02-29-2012 10:33 AM
If you need to start and stop you can also use the breakpoints along with the highlight operation. You can set break point the program will stop you can turn on highlight and then continue.