Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Different Values in Shift Register subVI call

Solved!
Go to solution

Hello,

 

I have a subVI to add a trim condition in a system, I am using shift registers to save the final value, I am using this VI 3 times in the program, but the problem is that the value saved in the shift register it's the same in the 3 locations, I was wondering if there is a way to call a subVI multiple times indicating different values in the shift registers.

 

Thanks.

--Luis

0 Kudos
Message 1 of 4
(3,761 Views)
Solution
Accepted by topic author Luis_R.
If I understand your questions correctly, you need to make your VI reentrant and that will give each clone it's own data space. You can do this by navigating to File»VI Properties and select Execution from the Category pull-down menu. If you have any questions, post back.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 4
(3,755 Views)

Hello,

 

That solved the problem, but just another question, I didn't get the meaning of the options under reentrant execution, Share clones between instances and Preallocate clone for each instance, I leave it in preallocate clone and it is working fine. Does that has to do with memory??

 

Thanks.

--Luis

0 Kudos
Message 3 of 4
(3,752 Views)
Yes, leave it to the default specified. I would suggest going into Help from that window to understand what's going on; they have provided an excellent explaination. If you have questions, post back.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 4
(3,751 Views)