Jump to content

LabVIEW and Java


Recommended Posts

I am trying to build an application for a home automation module (control lights, climate, etc) using java to implement the main application. Obviously Java is a bad choice for sending and receiving data to the module, so I have done some research and it appears that LabVIEW is one of the best options when it comes to testing and implementation for devices like this module that uses a serial port to comunicate with my computer.

Now, my question is, will I be able to use labview to send and receive data to and from my Java application? In other words, will I be able to interface LabVIEW with my Java application? It appears that appletiew let's you create java applets for the execution of LabVIEW modules but I don't think that is what I am really looking for.

Perhaps my question is not 100% clear, if so please let me know so that I can try to rephrase it.

Thank you, Vittorio

Link to comment

QUOTE(vitt0ri0 @ Mar 15 2007, 06:49 PM)

I am trying to build an application for a home automation module (control lights, climate, etc) using java to implement the main application. Obviously Java is a bad choice for sending and receiving data to the module, so I have done some research and it appears that LabVIEW is one of the best options when it comes to testing and implementation for devices like this module that uses a serial port to comunicate with my computer.

Now, my question is, will I be able to use labview to send and receive data to and from my Java application? In other words, will I be able to interface LabVIEW with my Java application? It appears that appletiew let's you create java applets for the execution of LabVIEW modules but I don't think that is what I am really looking for.

Perhaps my question is not 100% clear, if so please let me know so that I can try to rephrase it.

Thank you, Vittorio

You can build a DLL from your LabVIEW VIs and then call these DLLs via Java Native Interface. It would be easier to code your whole application again in LabVIEW. Microsoft .NET communicates with LabVIEW in much better way than JAVA as you can create callbacks from .NET to LabVIEW. If I were you I would either code your application complitely in LabVIEW or alternatively in .NET and interface .NET with LabVIEW using event callbacks. There is also a fourth option of using one of the commercial software proxies between JAVA and .NET and integrate your JAVA code with .NET code and then .NET code with LabVIEW.

Tomi

Link to comment

The best way to interface Java and LabVIEW is a client/server type application. Java-Client, LabVIEW-Server.

QUOTE

Obviously Java is a bad choice for sending and receiving data to the module, so I have done some research and it appears that LabVIEW is one of the best options when it comes to testing and implementation for devices like this module that uses a serial port to comunicate with my computer.

Two questions, one comment:

1: Why is it a bad idea to talk to your module in Java if you are only communicating serially?

2: If you communicating serially to your modules then what benefit is LabVIEW going to provide over any other language?

Just stick to one language if you can and avoid complication of introducing multiple languages.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...

Important Information

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