LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving UDP datagrams?

Hello,

I have a C library I've been using for a while which allows text
messages to be embedded unto UDP datagrams and sent from one
application to another over a local Ethernet. I've used it for several
years with no problems.

At the moment, I'm trying to take one of the application which uses
this library, and send some of its results over the network to a
Labview application. I've been trying to start by looking at the
udpex.lib example VI's, and loading the Spray Receiver VI.

I figured that if I set the Spray Receiver's port number to the same
port as I'm broadcasting messages to, then I should see the messages
that are being passed around. However, I don't- the receiver always
times out. Similarly, if I use the Spray Sende
r to broadcast to the
same port as I'm listening to, I would expect to receive a datagram in
my C code, but nothing appears.

Running the Spray Sender and Spray Receiver VI's together seems to
work fine- I see the messages bouncing back and forth between them.

I'm pretty sure I have the port numbers and other parameters set
appropriately, but I'm stumped as to why I'm getting no indications of
messages passing back and forth between the Labview and C sides. Can
anyone suggest anything to look for, particularly something that might
help someone who (at least, thinks) knows the win32 UDP well, but is
just getting started with LabView?

Thanks,

Les Elkins
Spatial Inttegrated Systems, Inc.
0 Kudos
Message 1 of 3
(3,152 Views)
All I can say is that I once used the LabVIEW VIs to connect to a UDP write written in Visual Basic just by using the UDP Open and UDP Read functions. I looked back at my old code and saw that the only thing I did was change the max size and timeout values. I don't know about Spray Sender or Spray Receiver VIs. Where did you find them?
0 Kudos
Message 2 of 3
(3,152 Views)
Dennis Knutson wrote in message news:<50650000000500000089310000-991728092000@quiq.com>...
> All I can say is that I once used the LabVIEW VIs to connect to a UDP
> write written in Visual Basic just by using the UDP Open and UDP Read
> functions. I looked back at my old code and saw that the only thing I
> did was change the max size and timeout values. I don't know about
> Spray Sender or Spray Receiver VIs. Where did you find them?

The Spray Sender and Spray Receiver VI's are examples for an Application
Note on TCP/IP and UDP. I don't have the full title at hand, but the note
is referenced in the UDP section of the manual.

This certainly looks like something that should 'just work', but I'm not there yet...

Thanks,

Les Elkins
0 Kudos
Message 3 of 3
(3,152 Views)