05-07-2018 09:04 PM
Hai everyone,
I want to ask whether there is any method to find the source of clone. My problem is I cannot find the source or function that generate the clone. I find out some other clone program which have the column of the subVI-caller but mine one does not have and it make me cannot track back the source that generate clone. The program is using the preallocated clone reentrant execution.
Thank you,everyone.
05-08-2018 04:50 AM
@jay689 wrote:
I want to ask whether there is any method to find the source of clone. My problem is I cannot find the source or function that generate the clone.
Not possible.
If you want this (for debugging or troubleshooting), pass the creator's VI name or reference as an input of the clone. Or log the bookkeeping where clones are started. You need to make something to make it possible.
@jay689 wrote:
I find out some other clone program which have the column of the subVI-caller but mine one does not have and it make me cannot track back the source that generate clone.
You lost me there. Clone program? Column of the subVI-caller?
@jay689 wrote:
The program is using the preallocated clone reentrant execution.
Good to mention that, but it makes no difference.
05-08-2018 07:26 AM
In general, if you have the LabVIEW source (preferably as a LabVIEW Project, including the Top Level VI and all of the sub-VIs that it calls), it should be relatively straight-forward to find the code that "spawns" the Clone. As I recall, there are several ways to start a clone, including a simple "call" of a reentrant VI, but with a full set of source VIs, finding them should not take but a few minutes.
I suggest that you create a folder (let's call it "Find the Clones") and copy the entire Project into this folder. Compress the folder and attach the resulting ZIP file to your Reply, I (or someone else who beats me to it) will find where the Clones are being called and will explain how we did it.
Bob Schor