Real-time Control of Smart Grids using NI CompactRIO | IEEE Conference Publication | IEEE Xplore