LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get data from call by reference node from a sub-vi with 2 while loops?

Hello,

I have a main application that has several global variables in use at the moment, too many for my liking.

These globals are used to read data from a sub-vi that runs 2 Lock-in amplifiers drivers and gets their data.

I tried using a simple drop-to-block-diagram method and then setting up the call to retain data after first run but that didn't work, I would only get an update on the front panel after I stopped the main application with a global variable stop and that would also be read in the subvi.

So I tried using a Call by Reference Node and setup the icon connector of the subvi, then created a strict open vi reference to that subvi in my main application outside any while loops and then only looped the call by reference node with an output to a numeric display. It doesn't work.

So I created a test vi to simply test this behavior in theory and it does work. Would someone please take a look at the following code and maybe sees what the problem is...

Thanks in advance.

PS
I'm including a working test.zip with a working example of the behavior i'm trying to achieve as well as a piece of code that is not working.
Download All
0 Kudos
Message 1 of 2
(2,383 Views)
Hello,
 
I don't think I understand your desired functionality.  If you can give a concise description of your desired functionality, I will try to suggest an architecture which will work for you.  Let's not worry so much about what you've tried for now - let's concentrate on what you would theoretically like to do, and go from there.
 
Thank you, and I look forward to your next post!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 2
(2,365 Views)