LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple instances of the same VI

Hi everyone,
I'm experiencing some kind of trouble trying to execute more then one instance of the same vi. The problem is the following: I read a signal in two channels and after that I have to pass them through the same calculations (segmentation and the extraction of some parameters). When I tried without the option 'reentrant execution' it didn't work because the channels were mixed and all the segmentation parameters came out wrong, but when I switched it to reentrant, it came out wrong as well (probably the poor LabVIEW lost track of its whereabouts sometime in the middle of the execution) - the thing is I have a signal (two channels) to be passed through the same procedure, which cuts it, and recycles part of the signal for the
next time (I gather a piece of signal each 0.5 seconds) and I really think it is stupid to save a copy of the same VI with another name just to cope with multiple instances. Are there any other solutions?

Thanks
Ricardo Giorgi
0 Kudos
Message 1 of 3
(2,792 Views)
Reentrant execution keeps track of it's instances. I would suggest reviewing the documentation (LabVIEW Help) on reentrant execution to get a better understanding of how they work.

Otherwise, I am not exactly sure, from your description, what exactly is going on.

Good luck
0 Kudos
Message 2 of 3
(2,792 Views)
Can you include your VI? I think that would help a lot.

Mark
0 Kudos
Message 3 of 3
(2,792 Views)