LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRIO Broadcast Message on Local Network

I have a CRIO that monitors a system and I would like it to send out a broadcast message over the internal netwrok.
 
I would like to have client software on a destop or laptop that will be listening for the broadcast.
 
Once the message is recieved the user can then go to a web browser and see the status.
 
There is probly many ways to this,  I do have the SNMP package library so I may be able to do something with that as well.
 
 
 
Just looking for some ideas and any links that relate to client type applications / broadcasting messages.
 
Thanks in Advance
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 5
(4,283 Views)

Hi Tim C.

Thanks for posting to the NI Discussion Forum. Since it sounds like you want to broadcast over the network without an established client connection, I would suggest UDP Multicast. If you want to establish a lossless connection for your communication, then I would suggest a TCP connection instead. See the following links for more information on UDP and TCP. If you decide to use UDP Multicast, I would suggest taking a look at the "UDP Multicast Sender.vi" and "UDP Multicast Receiver.vi" examples found in the NI Example Finder by searching UDP.

When to Use UDP Instead of TCP
Using LabVIEW with TCP/IP and UDP

If you'd like the user to view the status of your cRIO via Remote Front Panels, I would suggest looking over the following links.

How Do I Create a Remote Front Panel for Use on a Real-Time Target Executable?
Why Does My Remote Front Panel Indicator or Control Not Update? 

Thanks Tim and I hope this helps!

 
0 Kudos
Message 2 of 5
(4,258 Views)

Hello all,

While Mike's recommendations are good for Windows-based systems, LabVIEW Real-Time does not support UDP Multicasting. As mentioned in the KnowledgeBase, UDP Broadcast is a suitable alternative.

I apologize for any inconvenience this mixup has caused.

Cheers.

 

| Michael K | Project Manager | LabVIEW R&D | National Instruments |

Message 3 of 5
(4,187 Views)

If the CRIO that I want to braodcast the UDP message is behind a router is it still possible to use UDP broadcast?  F.Y.I.  The CRIO does have a default gateway set in it's max configuration.  And the CRIO web page is visable by laptops on the other side of the router.

 

So if the laptops can see the web page can they recieve a UDP message?

 

Thanks

Tim C.

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 4 of 5
(4,170 Views)
Hi Tim,

As long they are on the same subnet and no firewall is blocking the UDP message, then your laptop should be able to receive the UDP message that your cRIO broadcast.

Regards,
Stanley Hu
National Instruments
Applications Engineering
http://www.ni.com/support
0 Kudos
Message 5 of 5
(4,130 Views)