In my experience with LabVIEW, i can tell you: stay as far away as possible
from COM and ActiveX.
the problem with those is that they need to be registered in the registry
for LAbVIEW to use them properly.
even then, this will not work on some computers, without anyone ever knowing
why.
..NET is much better in this regard. it will work without much hassle. the
only thing you have to keep in mind is that data types have to be converted
between LabVIEW and .NET. this happens automatically, but has a performance
impact. if you need a way to stream 200 KB per second from one to the other,
you might want to use plain C/C++ dlls. other than that, you should be fine.
another advantage is that you can use the .NET framework in your own code.
the .NET framework is huge, and has lots of very cool features. also, lots
of hardware suppliers (like national instruments itself) are moving away
from COM to .NET because it combines ease of use and power.
using LabVIEW event handlers has less overhead than polling, but keep in
mind that debugging can become harder, especially if you have lots of events
that can get triggered simultaneously. other than that, events are very nice
to use.
also, remember to check which references you have to close explicitly, and
which are closed for you by LabVIEW, because you could have memory leaks
otherwise.
kind regards,
Bruno.
"Jos Hermans" <he********@hotmail.com> wrote in message
news:uw*************@TK2MSFTNGP12.phx.gbl...
Thanx, i managed to run my first .net object with your help!
What i'm trying to do:
I've developped an application in Borland builder 6.0 that gave it's
interface through an automation object to an application developped in
labview 6.1. the automation wrapper will control some hardware (2
motors,
some valves, temp sensors, and so on) and the Labview app will monitor
changes in the hardware. This is done on a polling base, because labview
6.1
could not understand the evenhandlers from the Borland generated
automation
interface.
Now we have the oppertunity to upgrade both programs to Labview 8 and
Visual
studio .net 2005. And of course i want to make my programs up-to-date
and
State of the art with the current developpers tools.
Thats why i want to upgrade to .net objects. So what i'm trying to do is
to
find out what the benefits are, using .net objects. and especailly using
events, so my labview app is not polling for changes.
Is it a good thing to switch to .net objects? or should i rather use
'oldfashioned' COM objects...
Greetings and thanx for your time.
Jos Hermans.
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com