06-05-2014 02:17 AM
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."
06-10-2014 03:11 AM
Hey,
Do you also get any error code?
regards
Patrik
06-10-2014 06:31 AM
I get the custom error code which I have made in case of an error
no specific error code
06-10-2014 06:34 AM
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
06-10-2014 09:47 AM
Thanks Norbert,
the issue is this is happening only in deployment
when in development everything works fine
08-03-2020 11:21 PM
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