usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Re: [USRP-users] Simulink and USRP2

AK
Amith Khandakar
Sat, Dec 8, 2012 9:15 PM

Dear Mike

Thank you so much for your reply and It is really helpful I must say.

Dear mike , can you please help me with the below implementation where I have one Simulink model with both the QPSK transmitter and QPSK receiver .

The Simulink model will run for an infinite amount of time in which the QPSK transmitter will run for 5 unit of time and then  the QPSK receiver block will be active waiting for reception for a particular period of time and if receives proper signal in that time , It will then change to transmitter block else will stay in receiver block for some more time until a specified timeout.

    [cid:image001.png@01CDD5A2.3703B320]


                                                Simulink Model


    [cid:image002.png@01CDD5A2.3703B320]

QPSK
Transmitter Block

    [cid:image003.png@01CDD5A2.3703B320]

QPSK
Receiver Block

The issue is how to specify time for each block to run without affecting the run time for the whole Simulink model.

I hope I could make you understand and hopefully you can help me with the above implementation.

Regards
Amith

From: Mike McLernon [mailto:Mike.McLernon@mathworks.com]
Sent: Monday, December 03, 2012 5:32 PM
To: Amith Khandakar
Cc: usrp-users@lists.ettus.com
Subject: RE: Simulink and USRP2

Hi Amith,

The Comms System Toolbox (CST) does not have any examples of real time image streaming, but it does have examples of text message streaming.  In R2012a, the CST shipped a Simulink-based example called ‘commqpsktxrx’ that streams data using QPSK modulation, an AWGN channel, open-loop frequency correction, closed-loop frequency and phase recovery, closed-loop symbol timing recovery, and correlation-based frame synchronization.  The model displays the text message at the MATLAB command prompt when the simulation finishes.

Also in R2012a, the USRP support package shipped two USRP-based examples that perform the same function as commqpsktxrx.  The first, sdruqpsktx, implements the QPSK transmitter and sends data into an SDRu Transmitter block.  The second, sdruqpskrx, receives the data with an SDRu Receiver block, then performs the demodulation described in the paragraph above.

The type or source of data has no bearing on the modulation/demodulation scheme.  If you use the QPSK models as your starting point, you should be able to use image data as your source and make the necessary adaptations to the model(s) to reconstruct it at the receiver.

Hth,
Mike

From: Amith Khandakar [mailto:amitk@qu.edu.qa]mailto:[mailto:amitk@qu.edu.qa]
Sent: Friday, November 30, 2012 4:40 PM
To: Mike McLernon
Cc: usrp-users@lists.ettus.commailto:usrp-users@lists.ettus.com
Subject: RE: Simulink and USRP2

Dear Mr. Mike

Do you have any example for Real Time Image streaming using USRP ( 2 of them ).

I am working on a model , but can you help me with any built Simulink model which transmits and on the other hand I can receive the image and reconstruct it.

Sorry for the little information , but you can refer the attachment for more information:

  1.   First run the m-file
    
  2.   Then run the Simulink model to use the data created from the m file and then regenerate it ( image streaming )
    

I have plans of introducing a AWGN channel once I can properly reconstruct the image on the other side and then finally involve the USRP.

I hope I could make you understand what I am trying to do .

THANK YOU SO MUCH for taking the time and helping me out with this. WILL REALLY APPRECIATE IF YOU CAN HELP ME.

God Bless.

Regards

Amith
From: Mike McLernon [mailto:Mike.McLernon@mathworks.com]mailto:[mailto:Mike.McLernon@mathworks.com]
Sent: Wednesday, November 28, 2012 4:50 PM
To: Amith Khandakar
Cc: usrp-users@lists.ettus.commailto:usrp-users@lists.ettus.com
Subject: RE: Simulink and USRP2

Hi Amith,

You can post to the list, and you’ll get a response.

Best,
Mike

From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com]mailto:[mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Amith Khandakar
Sent: Wednesday, November 28, 2012 12:32 AM
To: usrp-users@lists.ettus.commailto:usrp-users@lists.ettus.com
Subject: [USRP-users] Simulink and USRP2

Hello everyone

Can anyone help me with an Implementation I am trying to do with Simulink and USRP 2.

Please reply me back if you have some experience , so that I can share the problem I am facing now .

Regards


رؤيتنا: أن تصبح جامعة قطر نموذجا للجامعة الوطنية في المنطقة، تتميز بنوعية التعليم والأبحاث، وبدورها الرائد في التنمية الاقتصادية والاجتماعية.

Our Vision: Qatar University shall be a model national university in the region, recognized for high quality education and research, and for being a leader of economic and social development.

Dear Mike Thank you so much for your reply and It is really helpful I must say. Dear mike , can you please help me with the below implementation where I have one Simulink model with both the QPSK transmitter and QPSK receiver . The Simulink model will run for an infinite amount of time in which the QPSK transmitter will run for 5 unit of time and then the QPSK receiver block will be active waiting for reception for a particular period of time and if receives proper signal in that time , It will then change to transmitter block else will stay in receiver block for some more time until a specified timeout. [cid:image001.png@01CDD5A2.3703B320] Simulink Model [cid:image002.png@01CDD5A2.3703B320] QPSK Transmitter Block [cid:image003.png@01CDD5A2.3703B320] QPSK Receiver Block The issue is how to specify time for each block to run without affecting the run time for the whole Simulink model. I hope I could make you understand and hopefully you can help me with the above implementation. Regards Amith From: Mike McLernon [mailto:Mike.McLernon@mathworks.com] Sent: Monday, December 03, 2012 5:32 PM To: Amith Khandakar Cc: usrp-users@lists.ettus.com Subject: RE: Simulink and USRP2 Hi Amith, The Comms System Toolbox (CST) does not have any examples of real time image streaming, but it does have examples of text message streaming. In R2012a, the CST shipped a Simulink-based example called ‘commqpsktxrx’ that streams data using QPSK modulation, an AWGN channel, open-loop frequency correction, closed-loop frequency and phase recovery, closed-loop symbol timing recovery, and correlation-based frame synchronization. The model displays the text message at the MATLAB command prompt when the simulation finishes. Also in R2012a, the USRP support package shipped two USRP-based examples that perform the same function as commqpsktxrx. The first, sdruqpsktx, implements the QPSK transmitter and sends data into an SDRu Transmitter block. The second, sdruqpskrx, receives the data with an SDRu Receiver block, then performs the demodulation described in the paragraph above. The type or source of data has no bearing on the modulation/demodulation scheme. If you use the QPSK models as your starting point, you should be able to use image data as your source and make the necessary adaptations to the model(s) to reconstruct it at the receiver. Hth, Mike From: Amith Khandakar [mailto:amitk@qu.edu.qa]<mailto:[mailto:amitk@qu.edu.qa]> Sent: Friday, November 30, 2012 4:40 PM To: Mike McLernon Cc: usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> Subject: RE: Simulink and USRP2 Dear Mr. Mike Do you have any example for Real Time Image streaming using USRP ( 2 of them ). I am working on a model , but can you help me with any built Simulink model which transmits and on the other hand I can receive the image and reconstruct it. Sorry for the little information , but you can refer the attachment for more information: 1. First run the m-file 2. Then run the Simulink model to use the data created from the m file and then regenerate it ( image streaming ) I have plans of introducing a AWGN channel once I can properly reconstruct the image on the other side and then finally involve the USRP. I hope I could make you understand what I am trying to do . THANK YOU SO MUCH for taking the time and helping me out with this. WILL REALLY APPRECIATE IF YOU CAN HELP ME. God Bless. Regards Amith From: Mike McLernon [mailto:Mike.McLernon@mathworks.com]<mailto:[mailto:Mike.McLernon@mathworks.com]> Sent: Wednesday, November 28, 2012 4:50 PM To: Amith Khandakar Cc: usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> Subject: RE: Simulink and USRP2 Hi Amith, You can post to the list, and you’ll get a response. Best, Mike From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com]<mailto:[mailto:usrp-users-bounces@lists.ettus.com]> On Behalf Of Amith Khandakar Sent: Wednesday, November 28, 2012 12:32 AM To: usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> Subject: [USRP-users] Simulink and USRP2 Hello everyone Can anyone help me with an Implementation I am trying to do with Simulink and USRP 2. Please reply me back if you have some experience , so that I can share the problem I am facing now . Regards ________________________________ رؤيتنا: أن تصبح جامعة قطر نموذجا للجامعة الوطنية في المنطقة، تتميز بنوعية التعليم والأبحاث، وبدورها الرائد في التنمية الاقتصادية والاجتماعية. Our Vision: Qatar University shall be a model national university in the region, recognized for high quality education and research, and for being a leader of economic and social development.
MM
Mike McLernon
Mon, Dec 10, 2012 1:42 PM

Hi Amit,

Do you need to use time as the quantity that controls the activity of the QPSK transmitter and receiver?  Can you trigger their operation on an event, like the reception of a certain amount of data?  I think you will better control the model that way, since there are tx/rx transmission delays in this link that are difficult to quantify without running the model on your particular computer.

Hth,

Mike

From: Amith Khandakar [mailto:amitk@qu.edu.qa]
Sent: Saturday, December 08, 2012 4:15 PM
To: Mike McLernon
Cc: usrp-users@lists.ettus.com
Subject: RE: Simulink and USRP2
Importance: High

Dear Mike

Thank you so much for your reply and It is really helpful I must say.

Dear mike , can you please help me with the below implementation where I have one Simulink model with both the QPSK transmitter and QPSK receiver .

The Simulink model will run for an infinite amount of time in which the QPSK transmitter will run for 5 unit of time and then  the QPSK receiver block will be active waiting for reception for a particular period of time and if receives proper signal in that time , It will then change to transmitter block else will stay in receiver block for some more time until a specified timeout.

                                                Simulink Model

                                                   


	

QPSK
Transmitter Block

QPSK
Receiver Block

The issue is how to specify time for each block to run without affecting the run time for the whole Simulink model.

I hope I could make you understand and hopefully you can help me with the above implementation.

Regards

Amith

From: Mike McLernon [mailto:Mike.McLernon@mathworks.com]
Sent: Monday, December 03, 2012 5:32 PM
To: Amith Khandakar
Cc: usrp-users@lists.ettus.com
Subject: RE: Simulink and USRP2

Hi Amith,

The Comms System Toolbox (CST) does not have any examples of real time image streaming, but it does have examples of text message streaming.  In R2012a, the CST shipped a Simulink-based example called ‘commqpsktxrx’ that streams data using QPSK modulation, an AWGN channel, open-loop frequency correction, closed-loop frequency and phase recovery, closed-loop symbol timing recovery, and correlation-based frame synchronization.  The model displays the text message at the MATLAB command prompt when the simulation finishes.

Also in R2012a, the USRP support package shipped two USRP-based examples that perform the same function as commqpsktxrx.  The first, sdruqpsktx, implements the QPSK transmitter and sends data into an SDRu Transmitter block.  The second, sdruqpskrx, receives the data with an SDRu Receiver block, then performs the demodulation described in the paragraph above.

The type or source of data has no bearing on the modulation/demodulation scheme.  If you use the QPSK models as your starting point, you should be able to use image data as your source and make the necessary adaptations to the model(s) to reconstruct it at the receiver.

Hth,

Mike

From: Amith Khandakar [mailto:amitk@qu.edu.qa]
Sent: Friday, November 30, 2012 4:40 PM
To: Mike McLernon
Cc: usrp-users@lists.ettus.com
Subject: RE: Simulink and USRP2

Dear Mr. Mike

Do you have any example for Real Time Image streaming using USRP ( 2 of them ).

I am working on a model , but can you help me with any built Simulink model which transmits and on the other hand I can receive the image and reconstruct it.

Sorry for the little information , but you can refer the attachment for more information:

  1.   First run the m-file
    
  2.   Then run the Simulink model to use the data created from the m file and then regenerate it ( image streaming )
    

I have plans of introducing a AWGN channel once I can properly reconstruct the image on the other side and then finally involve the USRP.

I hope I could make you understand what I am trying to do .

THANK YOU SO MUCH for taking the time and helping me out with this. WILL REALLY APPRECIATE IF YOU CAN HELP ME.

God Bless.

Regards

Amith

From: Mike McLernon [mailto:Mike.McLernon@mathworks.com]
Sent: Wednesday, November 28, 2012 4:50 PM
To: Amith Khandakar
Cc: usrp-users@lists.ettus.com
Subject: RE: Simulink and USRP2

Hi Amith,

You can post to the list, and you’ll get a response.

Best,

Mike

From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Amith Khandakar
Sent: Wednesday, November 28, 2012 12:32 AM
To: usrp-users@lists.ettus.com
Subject: [USRP-users] Simulink and USRP2

Hello everyone

Can anyone help me with an Implementation I am trying to do with Simulink and USRP 2.

Please reply me back if you have some experience , so that I can share the problem I am facing now .

Regards


رؤيتنا: أن تصبح جامعة قطر نموذجا للجامعة الوطنية في المنطقة، تتميز بنوعية التعليم والأبحاث، وبدورها الرائد في التنمية الاقتصادية والاجتماعية.

Our Vision: Qatar University shall be a model national university in the region, recognized for high quality education and research, and for being a leader of economic and social development.

Hi Amit, Do you need to use time as the quantity that controls the activity of the QPSK transmitter and receiver? Can you trigger their operation on an event, like the reception of a certain amount of data? I think you will better control the model that way, since there are tx/rx transmission delays in this link that are difficult to quantify without running the model on your particular computer. Hth, Mike From: Amith Khandakar [mailto:amitk@qu.edu.qa] Sent: Saturday, December 08, 2012 4:15 PM To: Mike McLernon Cc: usrp-users@lists.ettus.com Subject: RE: Simulink and USRP2 Importance: High Dear Mike Thank you so much for your reply and It is really helpful I must say. Dear mike , can you please help me with the below implementation where I have one Simulink model with both the QPSK transmitter and QPSK receiver . The Simulink model will run for an infinite amount of time in which the QPSK transmitter will run for 5 unit of time and then the QPSK receiver block will be active waiting for reception for a particular period of time and if receives proper signal in that time , It will then change to transmitter block else will stay in receiver block for some more time until a specified timeout. Simulink Model QPSK Transmitter Block QPSK Receiver Block The issue is how to specify time for each block to run without affecting the run time for the whole Simulink model. I hope I could make you understand and hopefully you can help me with the above implementation. Regards Amith From: Mike McLernon [mailto:Mike.McLernon@mathworks.com] Sent: Monday, December 03, 2012 5:32 PM To: Amith Khandakar Cc: usrp-users@lists.ettus.com Subject: RE: Simulink and USRP2 Hi Amith, The Comms System Toolbox (CST) does not have any examples of real time image streaming, but it does have examples of text message streaming. In R2012a, the CST shipped a Simulink-based example called ‘commqpsktxrx’ that streams data using QPSK modulation, an AWGN channel, open-loop frequency correction, closed-loop frequency and phase recovery, closed-loop symbol timing recovery, and correlation-based frame synchronization. The model displays the text message at the MATLAB command prompt when the simulation finishes. Also in R2012a, the USRP support package shipped two USRP-based examples that perform the same function as commqpsktxrx. The first, sdruqpsktx, implements the QPSK transmitter and sends data into an SDRu Transmitter block. The second, sdruqpskrx, receives the data with an SDRu Receiver block, then performs the demodulation described in the paragraph above. The type or source of data has no bearing on the modulation/demodulation scheme. If you use the QPSK models as your starting point, you should be able to use image data as your source and make the necessary adaptations to the model(s) to reconstruct it at the receiver. Hth, Mike From: Amith Khandakar [mailto:amitk@qu.edu.qa] Sent: Friday, November 30, 2012 4:40 PM To: Mike McLernon Cc: usrp-users@lists.ettus.com Subject: RE: Simulink and USRP2 Dear Mr. Mike Do you have any example for Real Time Image streaming using USRP ( 2 of them ). I am working on a model , but can you help me with any built Simulink model which transmits and on the other hand I can receive the image and reconstruct it. Sorry for the little information , but you can refer the attachment for more information: 1. First run the m-file 2. Then run the Simulink model to use the data created from the m file and then regenerate it ( image streaming ) I have plans of introducing a AWGN channel once I can properly reconstruct the image on the other side and then finally involve the USRP. I hope I could make you understand what I am trying to do . THANK YOU SO MUCH for taking the time and helping me out with this. WILL REALLY APPRECIATE IF YOU CAN HELP ME. God Bless. Regards Amith From: Mike McLernon [mailto:Mike.McLernon@mathworks.com] Sent: Wednesday, November 28, 2012 4:50 PM To: Amith Khandakar Cc: usrp-users@lists.ettus.com Subject: RE: Simulink and USRP2 Hi Amith, You can post to the list, and you’ll get a response. Best, Mike From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Amith Khandakar Sent: Wednesday, November 28, 2012 12:32 AM To: usrp-users@lists.ettus.com Subject: [USRP-users] Simulink and USRP2 Hello everyone Can anyone help me with an Implementation I am trying to do with Simulink and USRP 2. Please reply me back if you have some experience , so that I can share the problem I am facing now . Regards ________________________________ رؤيتنا: أن تصبح جامعة قطر نموذجا للجامعة الوطنية في المنطقة، تتميز بنوعية التعليم والأبحاث، وبدورها الرائد في التنمية الاقتصادية والاجتماعية. Our Vision: Qatar University shall be a model national university in the region, recognized for high quality education and research, and for being a leader of economic and social development.