03-23-2016 07:49 AM
I use two shared variables within a loop where I write to one and read from another. I need to repeat this loop 5 times but each loop uses a different pair of shared variables. These variables are shared between a vi on the computer and a cRio.
It would be ideal to incorporate this loop into a subvi where I can pass a reference to the two shared variables into and then read and write to threw those references. Then I could just call that subvi 5 times, instead of copy and paste the loop 5 times.
Is there a way that I can accomplish this? I can't seem to find an example that would accomplish this.
Thanks
Solved! Go to Solution.
03-23-2016
08:22 AM
- last edited on
04-02-2025
05:17 PM
by
Content Cleaner
If I understand correctly, you could use the programmatic access mode to Shared Variables and it would work.
03-23-2016 03:07 PM
Yes, this is what I was looking for, thank you.