LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LAVIEW and JAVA

Hello!

 

Is it possible to communicate LabView (PC) and Java (MOBILE) aside from TCP/IP?

 

Thank you~

0 Kudos
Message 1 of 10
(2,109 Views)

Do you have other protocols in mind?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 10
(2,086 Views)

Hello @santo_13

 

I am looking for other protocol other than TCP/IP.  I am also thinking of using a USB cable so that I can use it offline. 

 

0 Kudos
Message 3 of 10
(2,083 Views)

Besides TCP/IP there is no easy solution. Depending on your mobile you might be able to use ADB (Android Debug Bridge) to do things. Not sure what iPhones would need, most likely it is "in the best interest of the user" super proprietary, like most things Apple.

 

But ADB is also a specific protocol that needs a correct protocol implementation on top of an USB bus. And writing that in LabVIEW is not going to be easy at all. In fact I'm pretty sure nobody did that yet aside from feeble trials. Interfacing the ADB user library API could be the next best thing, but that requires interfacing to DLLs with low level C programming knowledge required. Maybe there is also a .Net solution for it, however probably not from Google!

Rolf Kalbermatter
My Blog
Message 4 of 10
(2,038 Views)

Files, RabbitMQ(?) and similar, i assume.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 5 of 10
(2,002 Views)

Thank you for your suggestions @rolfk and @Yamaeda. I would study about that.

 

I am also thinking of simply creating a .txt file and calling that file to be able to control LabView.

0 Kudos
Message 6 of 10
(1,966 Views)

@blippi wrote:

Thank you for your suggestions @rolfk and @Yamaeda. I would study about that.

 

I am also thinking of simply creating a .txt file and calling that file to be able to control LabView.


That’s likely going over TCP/IP too. 😀

A mobile phone typically doesn’t have direct access to your PCs file system and the PC on the other hand doesn’t have direct access to the phones file system.

The PTP transfer that usually allows you to access the pictures (only) on the phone, doesn’t integrate in the PCs file system but only is a feature of the shell extension in the Windows Explorer. Other applications on the PC can’t access that unless they do their own PTP or Windows Still Image interface.

 

You could let the application store the file in a cloud storage location and access a mapped cloud storage location on your PC. That’s TCP/IP for sure too behind the scenes.

Rolf Kalbermatter
My Blog
Message 7 of 10
(1,939 Views)

Yes Sir that's right. Wondering if that would be the same if Mobile is connected into PC via USB cable then write another program to access the .txt file (not sure what languange to use yet ) then after moving the file into the PC device, access file in Labview, Quiet long tho [:-/]

 

thanks for your reply Sir [:>]

0 Kudos
Message 8 of 10
(1,837 Views)

Might I suggest that the best question should not be "How do I do this without TCP/IP" so that you can do it offline, but rather "How do I make a Java program running on mobile connect via TCP/IP over a USB link", so that you can use TCP/IP after all, unless you have another reason for wanting to not do this besides wanting to be able to run over a USB link from PC to phone.

0 Kudos
Message 9 of 10
(1,806 Views)

Yes Sir, I want to do this offline

0 Kudos
Message 10 of 10
(1,754 Views)