LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Java calls from LabVIEW?

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.

Thanks!
Naveen
0 Kudos
Message 1 of 6
(3,659 Views)
Naveen,

Try using the system exec. Use a standard DOS Command.com call. I believe this is how Java calls are made by windows anyway.

Good luck
0 Kudos
Message 2 of 6
(3,659 Views)
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...
0 Kudos
Message 3 of 6
(3,659 Views)
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...
0 Kudos
Message 4 of 6
(3,659 Views)
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...
0 Kudos
Message 6 of 6
(3,659 Views)
Naveen;

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.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 5 of 6
(3,659 Views)