LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does the colour of a Call Library Function Node change?

Hi All,

I have two answers that i suspect are the same, but some clarification would be helpful.

The sample CLAD exam at http://www.ni.com/pdf/custed/us/sample_clad_exam.pdf question 9 indicates that it changes colour depending on whether the call library function node is thread safe or not.

However, http://zone.ni.com/devzone/cda/tut/p/id/4583 point 10 under Application Example states that "The Call Library Function Node on the front panel changes color to yellow to indicate the function is reentrant." (btw, i am assuming that this should read block diagram rather than front panel)

If i followed the second piece of advice in the exam i would have got this wrong (i think).

Any help?

Phil
0 Kudos
Message 1 of 2
(3,555 Views)
Phil,

you can change the color of the node by changing the setting "reentrant" and "Run in UI thread". This does not change automatically. Initially, the setting should be UI thread.
This is, because LV cannot check if your DLL is thread safe or not. Therefore, you must know that for yourself and if something goes wrong with the reentrant setting, you might check it again with UI thread. The performance will be a bit slower, but you wont run into issues like deadlocks or race conditions.

regards,
Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(3,548 Views)