Jump to content
Sign in to follow this  
jdebuhr

VB.net User interface with LabVIEW

Recommended Posts

On a current project I need to write a labview Program that will interact with a User interface which has been created in VB.Net. I need to be able to retrieve data from the VB.Net interface and pass it into my Vis and then port data back out to the interface.

Is there a way to accomplish this?? This is new territory for me as I have not done anything liek this in the past.

Thanks

EDIT: Should read VB.Net

Share this post


Link to post
Share on other sites

You probably have two basic options:

  1. Compile your VIs as a DLL which will be called by the VB program. This is probably the best, since the VB program will be the caller, but I don't have any real experience with compiling VIs as DLL functions.
  2. Have the VB program expose its data through a DLL compied in VB. You will then use the properties and methods supplied by that DLL to send and receive the data.

There are probably other ways (e.g. implement a simple communication protocol over TCP), but I think those two are the simplest.

You should also check out Brian Tyler's blog (Lycangeek) about .NET interaction with LV.

P.S. The logo actually has it all lowercase and the printed text is all uppercase (.NET).

Share this post


Link to post
Share on other sites

Another option that the folks I work with do is to have the .NET forms open in a .NET container in LV and to pass the data through methods/properties or shared variables (depending upon how the data is acquired and published).

Share this post


Link to post
Share on other sites

Thanks guys,,

I will have to get a hold of the App from the VB guy here and try it.

I also have not compiled LabVIEW into a DLL yet, but I might get the chance now!

I will update here wonce I try everything out

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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