jRIO emulator code