3.2 myRIO Implementation¶
After achieving to demodulate and decode the AM signal the LabVIEW code had to be migrated to myRIO.
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.
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.
Figure 3.1 PC to myRIO scheme