Communicating with UPD Packets between xPC and RTW

  • Follow


I don't know if anyone can advise me.  I am trying to communicate between 2 machines, 1 running as an xPC boot target and 1 running in RTW (it is also the xPC Host).

The xPC model uses the UDP Receive/Send Binary blocks and the RTW machine is running Packet Input/Output blocks.  I am failing to communicate between the two at present.  I believe my problem is a port routing issue.  The RTW input/output (block parameters>board setup>Standard Devices>UDP Protocol asks for ports in Hex.  The xPC binary input/output doesn't specify.  At present I am trying to communicate from port 2328(hex) to 2329(hex), on the RTW machine, which is input as from port 9000 on the xPC machine.... does that make sense?  

Any advice would be gratefully received.

Many thanks

Noel
0
Reply Noel 11/22/2010 4:38:04 PM

"Noel " <g.n.b.hathorn@-RemoveThis-cranfield.ac.uk> wrote in message <ice69b$4cr$1@fred.mathworks.com>...
> I don't know if anyone can advise me.  I am trying to communicate between 2 machines, 1 running as an xPC boot target and 1 running in RTW (it is also the xPC Host).
> 
> The xPC model uses the UDP Receive/Send Binary blocks and the RTW machine is running Packet Input/Output blocks.  I am failing to communicate between the two at present.  I believe my problem is a port routing issue.  The RTW input/output (block parameters>board setup>Standard Devices>UDP Protocol asks for ports in Hex.  The xPC binary input/output doesn't specify.  At present I am trying to communicate from port 2328(hex) to 2329(hex), on the RTW machine, which is input as from port 9000 on the xPC machine.... does that make sense?  
> 
> Any advice would be gratefully received.
> 
> Many thanks
> 
> Noel

Eventually sorted, it was a data type problem.  The hex addressing on the Packet Input/Output blocks was correct, with DEC addressing on the UDP binary blocks...
0
Reply Noel 11/23/2010 11:01:04 AM


1 Replies
259 Views

(page loaded in 0.015 seconds)


Reply: