Grid Integration for Marine Renewable Energy Devices in a Real Time Application