02-20-2015 08:24 AM
any ideas how to fix this problem. keep getting told :Bad linkage to subVI
: Recursive reference with no shared reentrancy.
I know how to relink the first problem just when I fix the second problem from steps on google it seems to berunning in a continuous loop?
02-20-2015 11:03 AM
You have a VI that's trying to call itself - this is a recursive call. You can only do a recursive call in LabVIEW if the VI is set for shared clone reentrancy (in VI Properties -> Execution). However, in your case this looks like a really bad idea, because if sending the email fails, it will try again, and if that fails, it will try again, etc - in an infinite loop that will stall your program and eat up all available computing resources. Why would you want to do that?
02-20-2015 11:25 AM
@KevinO298 wrote:
I know how to relink the first problem just when I fix the second problem from steps on google it seems to berunning in a continuous loop?
Your subVI reentrancy is set to "preallocate clones", which is not allowed for recursive calls (i.e. when a VI calls itself, as in your case). The compiler cannot know how many clones are needed and only shared clones are thus allowed.
I agree with natahnd that your code logic seems flawed overall. What are you actually trying to do?
02-20-2015 05:54 PM
Sorry forgot to mention this isnt my code, i inherited with a new job as part of college and old coder has left so trying tofigure it out myself. The code was working fine but while i was editing may have edited something i shouldnt have and am now seeing these error that i cant figure out how to resolve
02-21-2015 08:34 AM