キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Java-UDP-LabView

I d like to know how to convert types like DBL, SGL, ABC, String of Binaries
value, data string and Boolean into Java types. Servers in LabView and Clients
in Java must to communicate and understand the data of each other. Please
help me I was tourning arround for many time
Thanks a lot
0 件の賞賛
メッセージ1/2
3,496件の閲覧回数
> I d like to know how to convert types like DBL, SGL, ABC, String of Binaries
> value, data string and Boolean into Java types. Servers in LabView and Clients
> in Java must to communicate and understand the data of each other. Please
> help me I was tourning arround for many time

I don't know that much about JAVA numeric types, but I'd be very
surprised if they are different from the LV ones. The CIN reference
manual goes into lots of detail about the data types.

Assuming from this messages subject, I assume that you will be
using UDP or TCP. This means that the binary data will be
flattened to a string. When you do this, LV automatically places
everything in big endian byte ordering. I don't know what JAVA
expects. There are icons in LV to swap the bytes to li
ttle
endian, but it takes a little bit of work. I'm sure you can
also do this in JAVA. Strings, when flattened will have the
length placed in front of the string data, and will not be NULL
terminated. Arrays, similarly, will have the number of elements
written in front for each dimension, then the data in flattened
form.

Greg McKaskle
0 件の賞賛
メッセージ2/2
3,495件の閲覧回数