Set the Correct Reentrancy Setting for a SubVI Called by a WebVI

Updated Jun 2, 2022

Reported In

Software

  • G Web Development Software
  • LabVIEW NXG Web Module

Issue Details

I have a web page that loops every period of time and calls a subVI to perform some functions. What reentrancy option is recommended if the webpage can be called by multiple users and I do not want the subVI to retain past values?

Solution

The reentrancy setting does not matter if the subVI is called by a webVI in separate pages, because the page runs separately on each browser, so each user only needs to run it once. Only if you want to reuse the VI in multiple loops on a single page you should care about the VI reentrancy setting. The server only hosts webpage files, they get transferred to browsers and then the browser runs the code, everybody gets their own copy.