03-13-2010 12:47 AM
03-15-2010 04:29 AM
You may create a local variable in Teststand instead, and try it again.
Good Luck!
03-15-2010 04:39 AM
Yes, I have already tryed it and still fail.thank you!
03-15-2010 09:09 AM
I'm going by the translation so I'm not sure if I understand the problem, but one thing you might try is make sure that you have the Reserve VIs setting checked in the LabVIEW adapter configuration dialog box (this is the default, but might have gotten unchecked). Reserving VIs is necessary for a reference opened in a VI to live longer than one call.
Hope this helps,
-Doug
03-16-2010 12:54 AM
Hi Doug ,thanks for you comments,
can you describe it more detailed,I checked Item Reserve Loaded VIs for Executiou in the LabVIEW adapter configuration and it had been selected already.
03-16-2010 09:51 AM
If it's already set then that's not the problem. The problem that occurs if it's unset is that the VI is then only reserved while actively running and unreserving a VI will cause its references to get freed. I'm not sure if this is a problem for all kinds of LabVIEW references, but it's at least a problem for some of them. I'm not a LabVIEW expert so perhaps someone else can explain it better or in more detail, but my understanding is that as long as you have that setting checked and aren't unloading the VI after it executes (you'd have to change the unload option on the step for this to happen) you should be ok.
-Doug
03-16-2010 06:28 PM
JAC-HU,
From Doug's comments, we should probably verify that you are not unloading your code modules unknowingly or unwantingly. Please try the following.
Navigate to Edit»Sequence File Properties. Change the Unload Option to Unload when sequence file is closed. Also, make sure that your sequence file only consists of two steps, the first VI which opens the reference, and the second VI which then attempts to use the reference.
Please let us know how this goes. Provide screenshots of your sequence (should contain two steps), and Sequence File Properties.
Hope this helps.
03-17-2010 01:07 AM
thank you manooch H,
based on your comments I skip other steps only remain two steps relevant to N4010 in my sequence,see attached pictures
thanks.
03-17-2010 09:08 AM
Please attach the sequence file and vis that you took screenshots of. One thing that seems strange is the extension of your two VIs, so it might just be easier if I could look at the files.
03-17-2010 08:50 PM