03-21-2013 06:07 PM
Hi Guys.
I am trying to use the reentrant VI and there are two mode shared clone between instances and Preallocate clones for each instance.
I am using Preallocate clones for each instance mode. It works all right. but it takes quite a lot memory.
I am trying to use the shared clone between instance. but it does not work. Can some one give me an example on the reentrant VI shared clone for each instances?
Thanks
Gary
03-21-2013 06:25 PM
Here is an expanation that you might be interested
03-22-2013 03:40 AM
Can you show me a code example, i tried to change the option in the execution property. it works on the Preallocate clone for each instances. but it does not work on the shared clones between each instance.
Thanks
Gary
03-22-2013 03:45 AM
@Gary1wang wrote:
it works on the Preallocate clone for each instances. but it does not work on the shared clones between each instance.
Please explain what you mean by "it works|it does not work". Do you get an error? Incorrect results? crash? Please explain what the subVIs do, how you use them, and why reentrant is important. Maybe even attach some simplified code.
03-22-2013 06:38 AM
I send data (string) to VI that is Preallocate clone for each instances. At the input of the VI, it changes with the command. It means the command is sending into the VI. I did the same thing to the same VI but it is the shared clones between each instance. the does not sending into the VI, because i put a probe on the input and it does not detect anything.
03-22-2013 08:05 AM
Did you put the probe on the clone or on the vi? If you put it on the vi, it will not show anything.
03-22-2013 10:26 AM
Are you using any unitialized shift registers in the VI? If so you can't use shared cloned since new instances will get data from prior calls.
03-22-2013 10:49 AM
@Gary1wang wrote:
.... the does not sending into the VI, because i put a probe on the input and it does not detect anything.
That does not prove anything. Is the result correct?
Why can't you end all our confusion and actually show us your subVI? We cannot help with the sparse tricking of information you currently provide us.
03-24-2013 04:26 PM
Thanks for replying, i got it working. i put a probe in the reentrant shared clones. it does not execute, but the vi works. I suppose the vi does not execute when the VI is open.
03-26-2013 05:16 PM
When using the clone option for a vi, it is not the vi you have open that is runing, but a clone of the VI.
That is why, when you set a prope in the vi before runing, it looks like the vi is never run. But the vi code is cloned and then run.
I have been bid by that before.
When debuging a clone, I normally tell the clone to open the front panel so that I can place a prope in the correct clone.