All Code and Building Instructions are hosted in the NI Community Group - myRIO Balancing Robot. To get yourself started have a look at
https://decibel.ni.com/content/groups/myrio-balancing-robot/blog/2013/11/20/myrio-balancing-robot--s...
Cheers,
Adrian