greg54
there is nothing in MIDI Input or Output.
By this, do you mean nothing at all, or just no sign of the Keystation?
You should see the MIDI ports of the 2i4, even though nothing is plugged into them. Do they show up?
Did you install the drivers before or after you plugged in the Keystation?
Have you tried connecting the Keystation to a different USB2 port after you installed the drivers?
Are you turning the Keystation and 2i4 on before you start Sonar?
In X3, if you turn on a USB device after the program is opened, you will
usually be prompted to use the device.
Sometimes I have to close and restart X3 to get my MIDI devices to register. Have you tried that?
Do you let your computer go to sleep? Don't do that, especially if Sonar is running.
Sorry to answer your question with a bunch more questions, but it may help to find the problem.