connection for hardware interfacing

after writing the program how we will test it whether it works?

Well does it do what you expect it to? If so it works :slight_smile:

how the cable is connected to the hardware

Through sockets on on the computer the other on the hardware.

one end i have fixed in the hardware. but where the other end to be fixed

The other end should be connected to your computer.

Are you really asking questions as simple as this. :-/