10-27-2006 08:58 PM
10-28-2006 07:41 AM
I am attaching some sample VI's which illustrate the problem discussed above. Open both VI's. Run "Tester 2" then look at the front panel of "Test sub-VI". You will see that the name is "wrong name" when it should be "Investigator id". Then check the block diagram of "Tester 2" and you'll see that the "wrong name" constant is not even connected to the sub-VI. How does this information get into the sub-VI?
10-28-2006 12:59 PM - edited 10-28-2006 12:59 PM
Message Edited by altenbach on 10-28-2006 11:00 AM
10-29-2006 06:56 AM
Yes, I had noticed that inserting a "To Variant" fixed the problem. However, it is not a robust solution because it is too easy to forget the "To Variant" on future calls.
I also noticed that the problem appears even if the loop structure does not enclose the sub-VI:
10-29-2006 10:20 AM
@jimbamber wrote:
I also noticed that the problem appears even if the loop structure does not enclose the sub-VI.
Actually, in your example, I can run it once, delete the case structure, the case selector, AND the "wrong name" diagram constant (!) and "wrong name still appears in the subVI when I run it. (However, if I now save the toplevel VI under a new name, the problem clears up.)
Very strange!
10-30-2006 09:06 AM