Jump to content

How to fix a missing parent class issue?


Recommended Posts

Playing around with LV 8.5.1 and LVOOP with UML Modeller from Endevo.

Deleted a parent class. Decided it wasn't needed. Expected errors - AND got it.

Error message is:

This labVIEW class cannot find its parent class. (That is understandable)

Details:

This VI is part of a LabVIEW class. No part of the class is executable at this time because the parent class is missing. To fix this error, load the missing .lvclass file into memory or edit the class to inherit off of LabVIEW Object. LabVIEW Object is the ultimate ancestor class for all LabVIEW classes and is always in memory.

Tried that, and it wonit work. Everytime I check the Inheritance in the properties, it says parent missing.

Sooooo, I tried to create a new class with the same name as the original parent. The class is created in the dependencies folder and has no ctl. It is also marked NOT LOADED.

Any other ideas how to fix it? I am a noob so the instructions need to be rather precise.

OK, tried this and it worked.

I changed the Inheritance to another (unrelated class) and that worked. :!: Then I could change the inheritance to the LabVIEW object class.

Couldn't just go straight to the LV Object class. Had to go through an intermediary. :headbang:

(Honest, this wasn't an attempt to up my post count.)

Link to comment

QUOTE (Paul W @ Jun 13 2008, 04:26 AM)

Error message is:

This labVIEW class cannot find its parent class. (That is understandable)

Any other ideas how to fix it? I am a noob so the instructions need to be rather precise.

If run into strange problemslike this, you could always open the lvclass-fle in a text editor and try to modify it manually.

Remove this line: <Property Name="NI.LVClass.ParentClassLinkInfo" Type="Bin">....................</Property>

and the reopen the project.

I always use the GDS function "GOOP->Modify this class inheritance", to do this, but in your senario it can't solve your problem.

//Mikael

Link to comment

QUOTE (MikaelH @ Jun 12 2008, 05:41 PM)

... open the lvclass-fle in a text editor and try to modify it manually.

Remove this line: <Property Name="NI.LVClass.ParentClassLinkInfo" Type="Bin">....................</Property>

and the reopen the project.

Thank you MikaelH,

Even after straightening out the inheritance issue, I was getting this error:

"LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.

The file " is not a valid LabVIEW file."

I searched through all the classes (Luckily only 2) in the project.

The line: <Property Name="NI.LVClass.ParentClassLinkInfo" Type="Bin">....................</Property> was gone as expected.

I tried searching for file and "" and """ but didn't see anything that looked wrong in the XML file.

The program running fine. This was just a test run for some LVOOP and Endevo UML Modeller practice.

Thank you again for the reply.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.