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?