NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to convert a TestStand type to a LabVIEW type or vice versa.

Hi,

I have a problem with TestStand and LVOOP. To demonstrate it, i created a simple demo project:

 

I have LV project, with one class and three class VIs: static dispatch open.vi, and dynamic dispatch do.vi and close.vi.

These VIs do not have any code in a demo project. Just standard inputs/outputs wired together. 

In real life application, open.vi should open dmm session, do.vi should do some measurements, and close.vi should close the session.

 

in TestStand i call open.vi in ProcessSetup callback. Open.vi returns new object, that i stored in to obj variable, on FileGlobals. obj variable has "shared at run time" flag set to TRUE.

do.vi is called in MainSequence. obj is passed as an input and returned object instance is stored back to obj (I guess/hope forwarding obj and then grabbing returned value is common practice, in case the object attributes are changed inside the VI).

close.vi is closed in ProcessCleanup. obj is passed as an input. 

 

This setup works fine in Sequential model. But in Batch or Parallel i get the "-18005; Failed to convert a TestStand type to a LabVIEW type or vice versa." error which is thrown by the close.vi in process cleanup. 

 

Tried on LV/TS 2019 and 2021. Same results. 

Any idea why this is happening, and how to fix it?

Thanks.

0 Kudos
Message 1 of 1
(651 Views)