@suryatapa Analag data cannot be given directly to this model. You have to sample it and give it in digital format as this model is working on baseband layer.

@Abiodun First the input data stream is scrambled using the PN sequence at 2Mcps. To scramble, I have converted the bits into bipolar format and then converted it back to unipolar as OQPSK modulator doesnt take bipolar bits as input.

The reverse will followed at receiver. To compare the sequence perfectly, I have added a transport delay block for PN sequence. This is only the physical layer mapping of Zigbee. Is there anything you didnt understand, tell me.

@Zeeshan & @Mujahid
The 'Assemble 4 bits' block is the same buffer block. I have renamed it in my model for understanding the flow of model. The model runs in R2011a version and higher versions. You can use a normal buffer block of MATLAB version you have instead of 'Assemble 4 bits' block if it isn't working. Just make the buffer output size 4 in the parameter block and rest as it is. I am sure it will work.

@Francisco
The 'assemble 4 bits' block is same as buffer block in simulink library with output buffer size as 4 . There might be a change in your simulation settings.
This model works on MATLAB 7.12 .

@suryatapa Analag data cannot be given directly to this model. You have to sample it and give it in digital format as this model is working on baseband layer.

@Abiodun First the input data stream is scrambled using the PN sequence at 2Mcps. To scramble, I have converted the bits into bipolar format and then converted it back to unipolar as OQPSK modulator doesnt take bipolar bits as input.

The reverse will followed at receiver. To compare the sequence perfectly, I have added a transport delay block for PN sequence. This is only the physical layer mapping of Zigbee. Is there anything you didnt understand, tell me.

@Zeeshan & @Mujahid
The 'Assemble 4 bits' block is the same buffer block. I have renamed it in my model for understanding the flow of model. The model runs in R2011a version and higher versions. You can use a normal buffer block of MATLAB version you have instead of 'Assemble 4 bits' block if it isn't working. Just make the buffer output size 4 in the parameter block and rest as it is. I am sure it will work.

@suryatapa Analag data cannot be given directly to this model. You have to sample it and give it in digital format as this model is working on baseband layer.
@Abiodun First the input data stream is scrambled using the PN sequence at 2Mcps. To scramble, I have converted the bits into bipolar format and then converted it back to unipolar as OQPSK modulator doesnt take bipolar bits as input.
The reverse will followed at receiver. To compare the sequence perfectly, I have added a transport delay block for PN sequence. This is only the physical layer mapping of Zigbee. Is there anything you didnt understand, tell me.

@ Jitesh, nice work you'v done here. please can you offer a brief explanation of the work flow of the model. i will appreciate you.
@ suryatapa, i think one can make use of the -from file- tool box under 'sources' in simulink library.

@Zeeshan & @Mujahid
The 'Assemble 4 bits' block is the same buffer block. I have renamed it in my model for understanding the flow of model. The model runs in R2011a version and higher versions. You can use a normal buffer block of MATLAB version you have instead of 'Assemble 4 bits' block if it isn't working. Just make the buffer output size 4 in the parameter block and rest as it is. I am sure it will work.

Comment only