From within LabVIEW, is it possible to make a call to Java code? If not directly, then with some wrapper, like COM? If nothing else, being able to call static methods only, if that restriction must apply, then that would still be a great help.
This is only good if I want a "fire and forget" kind of call. I would like to be able to get some data back from the called method(s). Is there a way to do this? How easy is it to do COM calls from LabVIEW? I have Java2COM that I could try...
This may not be a great solution, but you could save the java results to a text file and have labview read that.
nmalik wrote:
> This is only good if I want a "fire and forget" kind of call. I would > like to be able to get some data back from the called method(s). Is > there a way to do this? How easy is it to do COM calls from LabVIEW? > I have Java2COM that I could try...
Another way would be through a TCP connection, using java's Socket or ServerSocket object.
nmalik wrote:
> This is only good if I want a "fire and forget" kind of call. I would > like to be able to get some data back from the called method(s). Is > there a way to do this? How easy is it to do COM calls from LabVIEW? > I have Java2COM that I could try...
I do not know much about Java. If you are using Windows and you can create a dll, that can be a good option. You can then use the "Call Library Function".
Be sure that you can interact with a Java code. There is a third party toolkit called AppletVIEW, which is a Java toolkit for LabVIEW. Maybe you can contact the company, Nacimiento Software, for some guidance.