OK,
Did you hook the yellow wire up with the power off?
Did it work?
Was power removed after programming?
It is suggested that a throttle be used for programming.
Direct CV programming will not work with the DS51K1, it is a basic switch controller.
You will have to define the switches in Panel Pro, Make sure you save the panel.
I generally just define the number of the switches on my layout all at one time.
There is a click button when you add switches, it is a define a sequential number of switches.
So, if you have 20 switches, you would put in 19 to give you 20.
Leave panel Pro open, find Load Panel. This will be the file you saved.
Go back to JMRI and follow these steps:
Making sure the track power is off, hook up the yellow wire.
Turn on track power, using the switch function in JMRI, send?a switch command for that switch.
Turn track power off, remove the yellow wire.
Turn track power on & test.
It would be that easy.
Jay