LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview and VTK

Has anyone tried/had success using LabView to run the various
functions available via VTK (http://public.kitware.com/VTK/)?

It seems to me that is the functions can be linked together via
C++/Java/Python/Tcl, then one could use LabView to do that same? My
experience, however, is rather limited in calling external function
from LabView.

Thanks for the help!
0 Kudos
Message 1 of 4
(3,979 Views)
Hi,

VTK sure looks interresting! Looking at the site, I see no reason why it
souldn't work.

I'm downloading it right now, so perhaps I'll remake the "Hello Cone"
example in LabVIEW.

Regards,

Wiebe.


"John Eschelbach" wrote in message
news:9a984d2a.0311061512.426dcb7@posting.google.com...
> Has anyone tried/had success using LabView to run the various
> functions available via VTK (http://public.kitware.com/VTK/)?
>
> It seems to me that is the functions can be linked together via
> C++/Java/Python/Tcl, then one could use LabView to do that same? My
> experience, however, is rather limited in calling external function
> from LabView.
>
> Thanks for the help!
0 Kudos
Message 2 of 4
(3,979 Views)
Hi,

Well, it's not that simple... The provided dll's are build to be object
oriented. The functions in the dll's do not have normal names (e.g. there is
no function "vtkConeSource") but concatenated names "like
?New@vtkConeSource@@SAPAV1@XZ". LabVIEW doesn't even recognize them as
functions. I cannot try the python, java and tcl variations, because they're
not installed...

I'm still trying, but it's going to be very difficult.

Regards,

Wiebe.


"Wiebe@CARYA" wrote in message
news:3fab5a8b@newsgroups....
> Hi,
>
> VTK sure looks interresting! Looking at the site, I see no reason why it
> souldn't work.
>
> I'm downloading it right now, so perhaps I'll remake the "Hello Cone"
> example in LabVIEW.
>
> Regards,
>
> Wiebe.
>
>
>
"John Eschelbach" wrote in message
> news:9a984d2a.0311061512.426dcb7@posting.google.com...
> > Has anyone tried/had success using LabView to run the various
> > functions available via VTK (http://public.kitware.com/VTK/)?
> >
> > It seems to me that is the functions can be linked together via
> > C++/Java/Python/Tcl, then one could use LabView to do that same? My
> > experience, however, is rather limited in calling external function
> > from LabView.
> >
> > Thanks for the help!
>
>
0 Kudos
Message 3 of 4
(3,979 Views)

Use the "ActiViz" .NET wrapper : https://www.kitware.eu/product/activiz

The key for me was to create a "RenderWindowControl" on the front panel (which loaded the dependencies correctly).  Then I was able to replicate their "hello world" example (see attached).  For the example program to work, you will need to install ActiViz and point to the "Kitware.VTK.dll", I am using the ActiViz version 8.2.0)

 

The only real change to the example was that the “vtkPolyDataMapper.New();” threw an error “System.MissingMethodException: Cannot create an abstract class.” 

 

The error appeared to be because it doesn’t know what child class to create.  So I looked up that class, and replaced “vtkPolyDataMapper.New();” with the child “vtkOpenGLPolyDataMapper” explicitly.

 

0 Kudos
Message 4 of 4
(2,671 Views)