From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Class VIs for access to private Data: reentrant or not?

Solved!
Go to solution

I just created in a class some VIs for access to private data (my German translation). I'm talking about these VIs, which enable you to connect your class object to a property node to read or write private class data. These VIs are by default non-reentrant. My question is: what happens, if I try to access two objects of the same class with these property nodes? Does the second object have to wait for the first one to be read? If yes, can I circumvent this by making these VIs reentrant?

 

Regards,

Marc

CLD
0 Kudos
Message 1 of 3
(2,421 Views)
Solution
Accepted by topic author Marc Blumentritt

In theory yes. In pratice it will depend on what you are doing in the private method and the methods it calls.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,413 Views)

OK, thanks for your reply.

 

Since the method are simple read / write actions and nothing more, making the VIs reentrant should be enough.

 

Regards,

Marc

CLD
0 Kudos
Message 3 of 3
(2,402 Views)