It is your ECM(under the high beam headlight mounted to the frame).
Some dealers might call it a "PDM".....Power distribution Module
Imo....#1 Battery or #2 ECM(Electronic control Module)
It has the part number Rectifier, Regulator, LR 390 for the charging system which controls the voltage. if you unhook the battery from the bike and check the volt output what do you have? when the key is off and you put the battery back in the bike does the cables spark at all? if so then you have a short somewhere which will drain the battery down. these bikes need to maintain at 12.5 volts to run. like the speedo display. if the battery is in the bike and its running, check the output voltage like at 3,000 rpms and it should be pushing up to
14.8 volts area, but not over 15 volt and
at least 13 volts .
if not then maybe the recitifier is bad or the dead short is robbing all the power. Good luck

____________