Methodology2 » History » Version 5

Version 4 (PASCHOS, Alexandros, 03/18/2016 02:35 PM) → Version 5/9 (PASCHOS, Alexandros, 03/18/2016 02:35 PM)

h1. *3.2 Methodology 2*

After achieving to demodulate and decode the AM signal the LabVIEW code had to be migrated to myRIO.

h2. *3.2.1 myRIO UDP Data Stream*

The UDP (User Datagram Protocol) is used to continuously broadcast values from the host computer and receive the values on NI myRIO. The UDP data stream is done through the USB 2.0 Hi-Speed Ports of the myRIO and the PC.
The limits of the UDP Read Function max size is the maximum number of bytes to read and should be mention. The default is 548 bytes (Windows). If you wire a value other than 548 to this input, Windows might return an error because the function cannot read fewer bytes than are in a packet.
Limits apply also for the UDP Write Function. The data to write to another UDP socket. In an Ethernet environment, restrict data to 8192 bytes.

h2. *3.2.2 myRIO APT Decoding*

In order to migrate the implementation of APT decoding to myRIO, the LabVIEW code had to be separated in two parts. On the PC side the wave audio file is read and then transmitted to myRIO through USB using UDP stream. The following figure is representative of the process pursued.

p=. !{width: 80%}https://sourceforge.isae.fr/attachments/download/1861/pc_myRio_udp.png(PC 50%}https://sourceforge.isae.fr/attachments/download/1861/pc_myRio_udp.png(PC to myRIO)!
_Figure 3.1 PC to myRIO scheme_