Jump to content
  • 1
Joey P

How do I read IQ Data while playing back a file?

Question

1 answer to this question

Recommended Posts

  • 1

Use WbtApi::WbtVRTReadIterator, connect it to the desired stream on playback, check that your current packet type is IF Data by calling getCurrentPacketType() and checking for a return of 1. If it's not, use the ++ operator to increment the iterator and try again.

 

When getCurrentPacketType returns 1, you can use the getCurrentIQDataFloat ( float*, int) function to fill a float array with IQ samples. The samples are ordered with I and Q alternating ( the array starts on I, then the value after it is the related Q, then the next I, etc).

This should get you pointed in the direction you need to go, I highly suggest referencing the API documentation to see the usage of the listed functions.

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×