Design of Morse Code System Based on MATLAB

The following is the beginning of the MATLAB code
function MorseCode

%% Set start up values
IsFile = 0; % This is set to 1 when a file to transmit is loaded
StopXmit = 0; % Set to 1 when operator wants to stop the transmission
TextToSend = []; % Text file built from text input file
KbdHandle = 0; % Set to Kbd figure handle when Xmit from Kbd is started
AlphabetInUse = 0; % Set to 1 when alphabet is being transmitted
FileXmitInUse = 0; % Set to 1 when text file is being transmitted
KbdXmitInUse = 0; % Set to 1 when keyboard input is being transmitted
CharacterCount = 0; % Use this to count input characters
SentCount = 0; % Use this to count output characters
TimerHandle = 0; % Set to handle value when timer is started
InputString = cell(2,1); % Set up and clear input array

The following is a screenshot of the MATLAB system when it is running:
Insert picture description here
Insert picture description here
The system can implement three inputs, which generate Morse code from the keyboard, file, and alphabet input. You can also modify the program to change the output and Morse code settings.

Guess you like

Origin blog.csdn.net/QQ_778132974/article/details/114749327