12-20-2010 10:50 AM
I am looking over my co-workers code, and a lot of the vi are opened as a clone. I have the following questions.
1. What is the purpose of making a vi into a clone?
2. How do you make something into a clone?
3. How do you get something out of clone?
Yik
Solved! Go to Solution.
12-20-2010 10:55 AM
@jyang72211 wrote:
I am looking over my co-workers code, and a lot of the vi are opened as a clone. I have the following questions.
1. What is the purpose of making a vi into a clone?
2. How do you make something into a clone?
3. How do you get something out of clone?
Yik
1) So the code can be in more than one place at the same time.
2) A re-entrant VI opened with the "08" switch to load a new instance and creat the clone.
3) Depends on the clone.
Ben
12-20-2010 11:01 AM
Look up "Reentrant execution"
12-20-2010 11:13 AM - edited 12-20-2010 11:15 AM
Clones allow debugging and probing of reentrant VIs, something that was not possible many version ago.
A clone represents a local instance of a reentrant subVI and is always in run mode. Showing a clone makes mostly sense during debugging. To edit the subVI, you need to switch to edit mode and changes will then apply to all clones.
You don't "make a VI into a clone", this is just a temporary state while debugging reentrant VIs.
A detailed description can be found in the following document:
12-21-2010 10:39 AM
Thanks. I knew what a re-entrant vi is, but I never connected the dot between that and clone.
Yik