Hi Dr. Hamza,
Sorry for the wait. I’m not very familiar with Hadamard code. Do you have a scientific article you are trying to reproduce, that could help me understand your problem a bit more?
We have an example of OCDMA and we use fiber bragg gratings to emulate encoders/decoders at the following link: