Skip to content

Output argument "rfData" (and possibly others) not assigned a value in the execution with "readRfData" function. #20

Description

@nsirola

gsrx terminates with an error even if run with default settings and the IQ file given in the example config.

MATLAB version '23.2.0.2599560 (R2023b) Update 8'

Steps to reproduce:

  1. check out v2.1.0 branch
  2. download the example RF IQ data from https://tiedostopalvelu.maanmittauslaitos.fi/tp/julkinen/lataus/tuotteet/FGI-GSRx-OS-DATAFILES/FGI-GSRx%20Raw%20IQ%20Data/MultiGNSS/rawData_GPSL1GalileoE1B_Chapter7.dat
  3. correct the path of the IQ file in the default receiver configuration
  4. launch matlab and run addpath(genpath(pwd))

Start the run with

>> gsrx

Welcome to:  FGI-GSRx software GNSS receiver
by the Finnish Geospatial Research Institute

                   -------------------------------

gale1b Enabled

Acquiring gale1b signals...
*============================================================================================================*
|01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
*============================================================================================================*
Found gale1b signals:
*============================================================================================================*
|.. .. .. .. .. .. .. .. .. .. 11 12 .. .. .. .. .. .. 19 20 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. |
*============================================================================================================*
4 gale1b signals acquired in  89.07 sec.
   Tracking started at 24-Feb-2026 09:47:05

*======*===========*=====*===============*===========*========*=========================*
|  Ch  |  Signal   | PRN |   Frequency   |  Doppler  | Power  |  State                  |
*======*===========*=====*===============*===========*========*=========================*
|   1  |  gale1b   |  11 |  2.44000e+03  |    2440   |    43  |     STATE_FINE_TRACKING |
|   2  |  gale1b   |  12 | -6.24968e+01  |    -62    |    43  |     STATE_FINE_TRACKING |
|   3  |  gale1b   |  19 |  2.04467e+03  |    2045   |    46  |     STATE_FINE_TRACKING |
|   4  |  gale1b   |  20 | -7.86684e+01  |    -79    |    43  |     STATE_FINE_TRACKING |
*======*===========*=====*===============*===========*========*=========================*
Ms Processed: 1000 Ms Left: 459000
Time processed: 16 Time left: 7455

The processing eventually terminates with error:

*======*===========*=====*===============*===========*========*=========================*
|  Ch  |  Signal   | PRN |   Frequency   |  Doppler  | Power  |  State                  |
*======*===========*=====*===============*===========*========*=========================*
|   1  |  gale1b   |  11 |  2.42017e+03  |    2420   |    44  |     STATE_FINE_TRACKING |
|   2  |  gale1b   |  12 | -7.48204e+01  |    -75    |    43  |     STATE_FINE_TRACKING |
|   3  |  gale1b   |  19 |  2.03131e+03  |    2031   |    45  |     STATE_FINE_TRACKING |
|   4  |  gale1b   |  20 | -8.45707e+01  |    -85    |    44  |     STATE_FINE_TRACKING |
*======*===========*=====*===============*===========*========*=========================*
Ms Processed: 41000 Ms Left: 419000
Time processed: 646 Time left: 6601
Not able to read the specified number of samples from file, exiting!
Output argument "rfData" (and possibly others) not assigned a value in the execution with "readRfData" function.
Error in getDataForCorrelation (line 61)
rawSignal = readRfData(fid, signalSettings.dataType, complexData,signalSettings.iqSwap, bytesToSkip, blockSize);
Error in GNSSCorrelation (line 37)
[tR, rawSignal] = getDataForCorrelation(fid,signalSettings,tR,ch);
Error in doTracking (line 72)
                trackResults.(signal) = GNSSCorrelation(allSettings.(signal),trackResults.(signal),channelNr);
Error in gsrx (line 102)
        trackData = doTracking(acqData, settings);
>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions