04-25-2023 11:42 AM
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!
Solved! Go to Solution.
04-25-2023 01:53 PM
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.
04-27-2023 12:42 PM
Ah well that's a bit of a shame. Well thanks anyway, I'll see if DETT is of any help!
04-27-2023 02:32 PM
@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.