NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

-18002 VI execution terminated by server

Hello,
 
I am trying to call a VI from Teststand, in which VI I use NI-VISION functions. Two inputs of this VI are clusters, which is made by the vision type conversion tool VI (IMAQ Image cluster to Image datatype.vi). So I pass two image references from TS to LabVIEW. When I call this VI from TestStand, I get an error message -18002, see the attached screenshot. I click Ignore, or Run cleanup, ot Terminate execution (it doesn´t matter, which I click), and at the second time when I run this VI, it works. From this point onwards, it works always, only at the first run I get this message.
 
Some background:
Before running this VI, I set its parameters in another VI (Learn Barcode Template.vi). In this setting VI I use Invoke nodes, where I search for the TestStand parameters of the Read Barcode vi. When the parameters are found, I set new parameters into them, close the used references (which must be closed), and exit. Both changed parameters are IMAQ Image clusters.
Maybe the problem has nothing with IMAQ to do, because the failure happens only at the first run. I can reproduce it by UnloadAllModules, and reopen the sequence.
 
So, can anyone help?
 
 
0 Kudos
Message 1 of 3
(4,372 Views)
Hi there,

I found this Knowledge Base about the error -18002:
http://digital.ni.com/public.nsf/websearch/7A806984E7ACB66E86256A50006C2F26?OpenDocument

I know it's not exactly the error message you're getting, but the solution is the same I found for other error -18002 issues. So please try the following:

1. Mass compile the VIs called from the sequence
2. Mass compile the NI directory (this takes pretty long, so do this at night)
3. Repair LabVIEW (maybe try repairing IMAQ first, but I'm also not so sure, if IMAQ is causing the problem)
4. Reinstall LabVIEW (I hope that one of the steps above will fix your problem, because this will really be annoying >> but I found some service requests that were solved through this methode)

Hope this helps...

Daniel
NIG
0 Kudos
Message 2 of 3
(4,352 Views)
Hi
 
Well, basically I have found the problem, but I´m still not able to solve it. The problem is, that at execution of this step, its parameters are invalid. The parameters I set in a previous step (also a .vi).
That is not solved yet, btw I posted this as well:
 
 
Thanks for the reply
Mitulatbati
0 Kudos
Message 3 of 3
(4,349 Views)