10-17-2017 11:55 AM
I am studying the Actor Framework example project, trying to understand what is going on in the Splash Screen.vi. In particular, I want to understand why the use of Call By Reference to load the "Load App.vi." I have tried replacing this with the "Load App.vi" and the behavior seems to be the same. What advantage to using the Call by Reference in this example?
For you visual folks, both of the below block diagrams seem to behave the same. Why would we prefer the call by reference?project default
without call by reference
10-17-2017 01:33 PM
Try building an executable and you will notice different behavior. In the ide everything gets loaded as soon as you load the project so the difference is nill. Not so in the run-time engine. I’m sure AQ can explain the finer details way better than I can so I’ll leave that to him.
10-17-2017 01:38 PM
ExpAnding on my previous post: in rye if you do a normal subVi call everything loads at the very beginning before your splash screen starts running. If you call by reference then your splash screen loads at the very beginning (it’s really small) but not everything else. Everything else loads after your splash screen starts runnin when it hits the call by reference node (if you have the settings on that setup right - ie load on first call)
10-17-2017 01:50 PM
Makes perfect sense. Thank you!!