07-10-2008 10:05 PM - edited 07-10-2008 10:14 PM
07-11-2008 01:47 AM
Hi turbot,
maybe it´s possible for you to test your vi as a "normal" vi, without the reentrant function. If not you can use a cluster indicator to output import information and debug it from the caller side.
I´m not sure with your second question. In LabVIEW 7.1 the called vi was stopped if the last vi which has open it was stopped, except the called vi has open a vi from itself.
Hope it helps.
Mike
07-11-2008 02:14 AM
07-11-2008 02:17 AM - edited 07-11-2008 02:18 AM
Hi turbot,
if it is not possible for you to test you vi without the reentrant function, then you can use a cluster to get import data to the point from where you call this vi. And because this position shouldn´t be reentrant you get exactly the data from this instance and not from another one.
If a vi opens their own reference then it will not stop if the caller stops, because there is still an opened reference of this vi.
Hope it helps.
Mike
07-11-2008 02:27 AM
07-11-2008 02:42 AM
Hi turbot,
i think you can´t look into the reentrant vi. If you want to open it, you will get a new instance of it.
Please see the attachment. If you run "Main.vi" it will call "Unbenannt 4.vi" (it is not visible). If you double click on "Unb..4.vi" you see the vi is running. If you close it and open it again it is still running. If you close it and you then stop the "Main.vi", "Unb..4.vi" will also be stopped (but only if it is not visible). To avoid this, you can use the "Open VI reference" function in "Unb..4.vi", because then "Unb..4.vi" creates a reference from itself.
Mike
07-11-2008 03:14 AM