LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to import classes into labview project?

Hi everyone 

I start objected oriented program with labview, I have two sample project and I want to import their classes into my new project? is it possible to do that ? how can I import them ?

thanks 

0 Kudos
Message 1 of 8
(4,867 Views)

You can simply add them like you would any other VI or library. I would recommend creating a virtual folder for your classes so you can keep your project organized.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 8
(4,865 Views)

Drag & Drop can bring you so many problems.

 

The best way I found is:

  1. Create a virtual Folder
  2. Right click on new ordner
  3. Insert > Insert Folder (the second option).

Ciao!
Carmine

 

 

0 Kudos
Message 3 of 8
(4,725 Views)

i am having the same problem. drag and drop does not work as the icon of the class i am dragging immediately turns into a circle with a slash across it as soon as it gets into the project window, much less the virtual folder i have created.

next i did a right click on the virtual folder and selected "add" then "file", navigated to the lvclass file and selected "OK". i couldn't understand the errors that came up next.

i wish someone would explain how this should work.

0 Kudos
Message 4 of 8
(3,799 Views)

Can you post what the errors said?

0 Kudos
Message 5 of 8
(3,790 Views)

no error messages. i could drag the .lvclass file but could not drop it into my virtual folder.

0 Kudos
Message 6 of 8
(3,778 Views)

Well you said "i couldn't understand the errors that came up next." so I assumed there was an error message...

 

If there's no error message, it just doesn't let you add the class, I guess I'm not sure what the issue is for you, sorry. For me it works to add a class either by drag and drop or right click to add. Maybe for you there is some dependency issue where it can't load the dependencies of the class or something?

0 Kudos
Message 7 of 8
(3,774 Views)

sorry about the confusion. the drag  and drop method never worked. i didn't get the error messages until i tried the right-click/add file method. i wish i had done a screen capture and provided that as an attachment.

i have redone the exercise three times now and on this last go around the right-click/add file method is now working without giving me and error message.

0 Kudos
Message 8 of 8
(3,741 Views)