function helperStartTransmitter()
% helperStartTransmitter Executes the data transmission example.
%
% The transmitter sends live video stream via TCP/IP and sensor data (radar,
% vision, lane object lists and IMU) via CAN FD to the receiver. The
% transmitter is intended to replicate live data originating from a
% vehicle.
%
% This example uses multiple toolboxes:
%   1) Automated Driving Toolbox for visualization, FCW algorithm
%   2) Vehicle Network Toolbox for CAN FD
%   3) Instrument Control Toolbox for TCP/IP
%
% Copyright 2017-2018 The MathWorks, Inc.

% Configure a timer for the data transmission.
transmitTimer = dataTransmitter();
disp('[Timer] Timer is ready ...');

% Start the timer.
start(transmitTimer);
disp('>>> Now, sending data ...');        

% % Run while enabled.
% while strcmp(transmitTimer.Running, 'on')
%     % Pause to enable Ctrl+C to break execution.
%     pause(1); 
% end
input('Press Enter to end')

% Indicate stoppage of transmission.
disp('>>> Completed sending data.');
stop(transmitTimer);

% Exit MATLAB session.
exit;
end
