LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between Labview and Labwindows

Hello

I have a problem: I have a server app written in Labview that sends data
( arrays and few other data types => combined in cluster ) through data
socket to client app written in Labwindows. How to read this cluster in
Labwindows?

--
fafa | gg:1506333 | tlen: pfafara@tlen.pl

"wszystko jest proste pod warunkiem ze nie wiesz
o czym mowisz.. lub nie musisz robic tego sam.."
0 Kudos
Message 1 of 2
(2,651 Views)
Hello fafa,
 
A cluster is a datatype specific to LabVIEW, and does not exist in any other programming language. LabWindows/CVI is an ANSI C compiler, and thus, does not have a cluster datatype. Instead, you should consider using a struct, as this is essentially the same idea as a cluster.
 
I am not aware of any specific examples that address the problem you are working with, but there is plenty of documentation for calling DLL's that use structs. You should be able to accomplish something similar with datasocket. In fact, if you were to build a dummy VI into a LabVIEW DLL that uses the same type cluster, you'll get a header file that already has the struct defined. Check out the following resources:
 
Creating and Calling LabVIEW DLLs with Various Data Types from CVI
 
LabVIEW Data Storage
 
Hope this helps!
Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
0 Kudos
Message 2 of 2
(2,641 Views)