no midi out/

Having problems with the midi out…using yamaha sw1000xg card with yamaha ds2416 mixer card in cubase 5.2…cubase shows the midi in is working when i play the keyboard but no midi out…if i step input the notes it plays fine or if i load an older song it plays fine but not when i use the my keyboard…tested it in band in a box & no problems with the midi just seems to be cubase?

any help greatly received

thanks