LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use functional global with a large amount of variables?

Thanks DF!

Judging by the posts in this thread both Jason and Craig may be able to "fast-forward" you to the answer. Smiley Wink

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 14
(984 Views)
I was wrong. Smiley Sad  The event structure can run in any thread.  However, if its contents force it into the UI thread (e.g. read local variable), it is likely to stay there.
Message 12 of 14
(966 Views)

Hi DF thanks for claifying!

And if it was anyone other than you I would just let it go but...

Your posting are generally viewed as "coming down from on high" so need to split hairs one more time. If you hade posted

"However, if its contents force it into the UI thread (e.g. property node), it is likely to stay there."

See the post by JLS re: access locals in this thread.

Sorry abou thte nit-picking but there has been confusion on these topics for years and it took a lot of work to get definative answers.

Just one of your students,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 14
(962 Views)
That's what I get for writing a post just as I am about to walk out to lunch.  You are correct, Ben, and I have posted timing examples of this particular issue many times.  Even though the object of a local or global lives in the UI thread, access to them does not.  Property nodes will send you to the UI thread every time.  Thanks for keeping me honest.  Now where is that coffee Smiley Very Happy...
Message 14 of 14
(939 Views)