LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find the Execution Thread

Solved!
Go to solution

Hey y'all,

          I've been dealing with a problem for a little while and I was wondering if there was a way to record what execution thread a VI was running in during runtime.  I know VI Properties allows you to select a PREFERRED Execution System, but that is preferred, not current.  Is there any way to retrieve this information so that you could, say, record it in a text file or something?  It'd also be good if it was the actual thread, so no "same as caller", instead returning the actual thread it is executing in.  Thank you!

0 Kudos
Message 1 of 4
(827 Views)
Solution
Accepted by topic author EthanHenry

Desktop Execution Trace Toolkit records that but I'm not sure how helpful that would be. The LabVIEW execution system can move execution around threads at its discretion; it's not like other languages that you have explicitly perform threading.

~ The wizard formerly known as DerrickB ~
Gradatim Ferociter
0 Kudos
Message 2 of 4
(796 Views)

Ah well that's a bit of a shame.  Well thanks anyway, I'll see if DETT is of any help!

0 Kudos
Message 3 of 4
(730 Views)

@EthanHenry wrote:

Ah well that's a bit of a shame.  Well thanks anyway, I'll see if DETT is of any help!


It's actually not a bit of a shame.  That makes it extremely flexible and you don't have to worry about which thread is the optimal one for the VI to run in.  And probably that negates your whole reason for wanting to know this.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(714 Views)