mikeporter wrote:
> Attached is a vi providing a more general solution to the problem.
> It's helpful when you have seperate processes that you need to be able
##### cut..
Hi Mike, hi Terry,
thats the way I handle it to. Maybes its helpful to put timing into the loop to prevent high cpu-usage. Second,
multible instances of this vi only work in this wanted way, because if theyre proberties are set to
nonreentrant. That means, the use the same memory space.
Lately I have written a vi with 2 instances of pid- controllers, which behaved very strangely. That was the
point where I stumbled over the reentrant stuff.
Because nonreentrant is default, and I never knew anything about reentrance before I just used my VIs...
Well the strangeness was, that the PID
VIs were accessed alternating and the internal results (shift registers)
of the previous used other PID-VI, were then used by the current accessed PID-VI. So there was no independance
between both PID instances, because the SHARED THE SAME MEMORY. If one is not aware of this circumstance, this
can be very confusing while debugging a VI. You see values changing of the strange behaving VI, and you don't
know why...
Thats it so far,
Rainer