Forum
Please or Register to create posts and topics.

Sampleuint can't correspond to explanation

Dear engineer,

We encountered two problems when parsing each SAMP block using the following code:

Please see the attachment for more information, thank you!

Uploaded files:

Hi, yes right the documentation is not complete for the "sampleunits".

Here is the short answer, I will update the related documentation later on.

1. The "sampleunit" struct looks like following. If you are recording IQ data it is normally stored as voltage, which is the type you get ( 19 = DSSU_VOLT )

enum DSPStreamSampleUnit
{
DSSU_GENERIC,
DSSU_DBM,
DSSU_PERCENTAGE,
DSSU_DBM_HZ,
DSSU_DBM_M2,
DSSU_INDEX,
DSSU_PHASE,
DSSU_SIGNED_1,
DSSU_UNSIGNED_1,
DSSU_TIME,
DSSU_DATE_TIME,
DSSU_HZ,
DSSU_HZ_LOG,
DSSU_WATT,
DSSU_SECTOR,
DSSU_SYMBOL,
DSSU_DB,
DSSU_NUMERIC,
DSSU_HZ_LOG_CENTER,
DSSU_VOLT,
DSSU_LOG_PERCENTAGE,
};

2. Yes, by using the Spectran V6 Sweep Zoom block the Spectran V6 device is switching it's frequency very fast and there might be coming more samples than needed of data per frequency step at the IQ output of the Spectran V6 block. The Spectran V6 Sweep Zoom block extracts the needed samples dependent on it's internal required FFT size. You can analyze it by using the Stream Debugger block and changing for example the RBW in the Spectran V6 Zoom block: