NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Packed project Library Labview Class Issues

I packed  my whole Labview project as a packed proj library during   teststand Deployment 

 

I am using classes in my  labview project 

 

unfortunalely by one of sub seq calls got the following error !

 

 

"Type mismatch. The LabVIEW Class does not match the class expected by the VI.

Cannot pass a base LabVIEW Class to call a method initially defined in a derived LabVIEW Class."

0 Kudos
Message 1 of 6
(5,054 Views)

Hey,

 

Do you also get any error code?

 

 

regards

Patrik

0 Kudos
Message 2 of 6
(4,996 Views)

I get the custom  error code which I  have made in case of an error

 

no specific error code

0 Kudos
Message 3 of 6
(4,989 Views)

The error message is quite clear:

You are using inheritance where you do have methods which are not part of the parent class (as dynamic dispatch).

During the call, you pass an object of the parent class and try to call the (unknown) method of the child.

 

Why this is happening can only explain your code....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 6
(4,987 Views)

Thanks Norbert,

 

the issue is this is happening   only in deployment

 

when in development  everything works fine

0 Kudos
Message 5 of 6
(4,974 Views)

Whats probably happening is LabVIEW is not including all (or any) of the child classes into your packed library and when you compiled code is running it can't find the classes it needs.

What you should do is either include all classes into the build specification, include a VI that has all of the classes in it, or enable debugging in the build specification (which will include the diagram and all of the VI's in the packed library).

 

Cheers

 

Tim

0 Kudos
Message 6 of 6
(2,049 Views)