LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Samples of interfacing LabView to .net?

Hi,

I have software written in .Net with well defined interfaces that communicate through .NET Remoting. It is my understanding that LabView 8.X can communicate in some manner with .NET objects. I have had trouble finding documentation or samples, therefore, I have the following questions:

  1. Is it possible to use LabView to communicate with a .NET object through .NET Remoting?
  2. If so, are there any LabView samples that show how to connect to a .NET Remoting interface?
  3. Is there any documentation available on how to  use LabVeiw to communcate with .NET Remoting objects?
Thanks in advance!

Best Regards,
Matthew

0 Kudos
Message 1 of 4
(3,434 Views)
 

Matthew,

I'm no .net guru by any stretch, but if I understand the concept of .net remoting correctly (which I might need some help with) I might be able to help out here. From my understanding you can publish a class over the network using .net remoting and then use a class to read that information. You can also use TCP if you know the IP address and port that is broadcasting the information.

From a LabVIEW perspective, you can use a .net contstructor to call the correct class that would allow you to receive the information. Now this is where my lack of experience with .net is comming to the surface. I don't know what assembly you would need to call, but I know how to call an assembly in LabVIEW. See the help titled Using .net Assembilies with LabVIEW.

I did find one example that MAY be useful. It is called "Share Data Between LabVIEW and Teststand with .net Remoting". I don't know if this will prove useful or not so please post to let us know.

 

Chris C

 

0 Kudos
Message 2 of 4
(3,418 Views)
Matthew, please feel free to contact me via email, I am in the same boat as you.  Hopefully together we can come to a solution.  wesramm@sonalysts.com

I'd like to hear about any progress you have made, as:

I have a client who wants to use the Windows Presentation Foundation (WPF) to provide a front end for a scientific instrument that we are creating.  Below that, he wants to create an XML-configurable sequence engine written in c# and .NET to operate the instrument, calling LV vi's as packaged libraries to serve as instrument and analysis drivers.  So, I have to find a way to interface my LV vi's with his C#.  Our concept is to use Object Remoting, and setting up my LV VI's in such a way that they are callable and compatible with his architecture. 

Of course, the way that LV is set up is to CALL .NET assemblies, not to PROVIDE .NET assemblies, so this is a tricky one.

I'll post my progress to this thread as and when I make it.  The thing is that this is the directive I have received from my client, so I have to make it work. 

Wes

--------------------------------------------------------------------------------------
Wes Ramm, Cyth UK
CLD, CPLI
0 Kudos
Message 3 of 4
(3,374 Views)
Hello,

.NET Remoting and the way to use it is not very different form any other .NET assembly.

Please visit this thread I have used an existing very good example and made a LabView addon to make it work with LabView as the Remotnig Client:
http://forums.ni.com/ni/board/message?board.id=170&message.id=266478&query.id=503323#M266478

Hope this helps,
Maciej


0 Kudos
Message 4 of 4
(3,193 Views)