开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Minor Issues with Linsim Channel Simulator-Early tests and thoughts


 

I have been doing some evaluations of Linsim and I have identified a couple of minor issues.?
In my early tests, I selected 1 path and a spread of 1Hz and and AWGN with SNR=25dB.?
I did one set of tests at a sample rate of 8kbs and another set at 48kbs. I repeated the tests?
with path 1 selected, a spread of 1Hz, and an offset of +5Hz.?
?
I am using Windows 11+Dell G10 laptop.
?
Observations
?
1. I intercomapared Linsim v2.0.4 and and Moe Wheatley's Pathsim v1.0. I generated a 1kHz sinewave
with a 60 sec duration at a sample rate of 8kbs. In this case the time domain wave forms exhibited
very similar envelope fluctuations. When I performed an FFT on the records the resulting spectra
exhibited a Gaussian shape with the same width. When I applied an offset of +5.0Hz, the spectrum
shifted up by 5.0Hz with Pathsim. With Linsim, the Gaussian spectrum shifted down by -5.0 Hz. So there?
is a potential sign error with the offset in the Linsim code.
?
2. I performed an additional set of tests with a 1kHz sinewave with a 60sec duration and a sample
rate of 48kbs. In this case I did not use Pathsim since it only works with a sample rate of 8kbs.
I first applied the 1kHz sinewave to Linsim with Path 1 selected, a spread of 1 Hz, and 0 offset.
The resulting output waveform exhibited much faster envelope fluctuations. This was confirmed?
with the FFT, which showed markedly wider Gaussian spectrum-the width increased approximately 6x.
?
3. I suspected that this spread issue has something to do with the different data rates since is 6x
larger than the 8kbs case. I then repeated the test with a spread of 1/6 = 0.166, that?
corresponds to the ratio of the data rates 8kbs/48kbs. The resulting spectrum using an FFT showed?
the correct shape and frequency spread.
?
4. I think this spreading issue can be corrected in Linsim by applying a scale factor to the
?spread that accounts for the ratio: 8kbs/(the selected date rate kbs)--My best guess :-)
?
5. When I applied a +5.0 Hz offset with the 48kbs sinewave the resulting spectrum shifted down
-5.0 Hz. So this Offset sign error is the same at the higher sample rates.?
?
Summary
?
1. Linsim is a robust and much needed update to Pathsim that enables processing of .wav files?
for a variety of data rates in the range 8kbs to 48 kbs.
?
2. When using Linsim at data rates other than 8kbs, adjust the spread using a scale factor of
8kbs/(the selected data rate kbs).
?
3. There is a sign error in the offset. So simply switch the sign of the desired frequency offset.
?
4. I have applied pulse trains generated with Matlab to Linsim and I will report on my findings?
soon.
?
Bob Johnk, WB0VGD?
Arvada, Colorado


 

开云体育

Thank you John.? You are the first user to comprehensively test Linsim.? I am very pleased with your report.

I will review the code and make changes as your tests indicate and will reply on this forum when a new test version is available.

David,
W1HKJ

On 1/11/25 12:58, Robert Johnk via groups.io wrote:

I have been doing some evaluations of Linsim and I have identified a couple of minor issues.?
In my early tests, I selected 1 path and a spread of 1Hz and and AWGN with SNR=25dB.?
I did one set of tests at a sample rate of 8kbs and another set at 48kbs. I repeated the tests?
with path 1 selected, a spread of 1Hz, and an offset of +5Hz.?
?
I am using Windows 11+Dell G10 laptop.
?
Observations
?
1. I intercomapared Linsim v2.0.4 and and Moe Wheatley's Pathsim v1.0. I generated a 1kHz sinewave
with a 60 sec duration at a sample rate of 8kbs. In this case the time domain wave forms exhibited
very similar envelope fluctuations. When I performed an FFT on the records the resulting spectra
exhibited a Gaussian shape with the same width. When I applied an offset of +5.0Hz, the spectrum
shifted up by 5.0Hz with Pathsim. With Linsim, the Gaussian spectrum shifted down by -5.0 Hz. So there?
is a potential sign error with the offset in the Linsim code.
?
2. I performed an additional set of tests with a 1kHz sinewave with a 60sec duration and a sample
rate of 48kbs. In this case I did not use Pathsim since it only works with a sample rate of 8kbs.
I first applied the 1kHz sinewave to Linsim with Path 1 selected, a spread of 1 Hz, and 0 offset.
The resulting output waveform exhibited much faster envelope fluctuations. This was confirmed?
with the FFT, which showed markedly wider Gaussian spectrum-the width increased approximately 6x.
?
3. I suspected that this spread issue has something to do with the different data rates since is 6x
larger than the 8kbs case. I then repeated the test with a spread of 1/6 = 0.166, that?
corresponds to the ratio of the data rates 8kbs/48kbs. The resulting spectrum using an FFT showed?
the correct shape and frequency spread.
?
4. I think this spreading issue can be corrected in Linsim by applying a scale factor to the
?spread that accounts for the ratio: 8kbs/(the selected date rate kbs)--My best guess :-)
?
5. When I applied a +5.0 Hz offset with the 48kbs sinewave the resulting spectrum shifted down
-5.0 Hz. So this Offset sign error is the same at the higher sample rates.?
?
Summary
?
1. Linsim is a robust and much needed update to Pathsim that enables processing of .wav files?
for a variety of data rates in the range 8kbs to 48 kbs.
?
2. When using Linsim at data rates other than 8kbs, adjust the spread using a scale factor of
8kbs/(the selected data rate kbs).
?
3. There is a sign error in the offset. So simply switch the sign of the desired frequency offset.
?
4. I have applied pulse trains generated with Matlab to Linsim and I will report on my findings?
soon.
?
Bob Johnk, WB0VGD?
Arvada, Colorado


 

开云体育

John,

The computational part of linsim is modeled exactly after pathsim.? All of the path, noise etc is performed at 8000 samples per second data.? Source and output file sample rates are converted using high precision resampling libraries.? I want to duplicate your tests.? For the 48kbs tests did you use both input and output files to 48kbs?? linsim can be used as a rate converter if no other signal processing is performed.

David

On 1/11/25 12:58, Robert Johnk via groups.io wrote:

I have been doing some evaluations of Linsim and I have identified a couple of minor issues.?
In my early tests, I selected 1 path and a spread of 1Hz and and AWGN with SNR=25dB.?
I did one set of tests at a sample rate of 8kbs and another set at 48kbs. I repeated the tests?
with path 1 selected, a spread of 1Hz, and an offset of +5Hz.?
?
I am using Windows 11+Dell G10 laptop.
?
Observations
?
1. I intercomapared Linsim v2.0.4 and and Moe Wheatley's Pathsim v1.0. I generated a 1kHz sinewave
with a 60 sec duration at a sample rate of 8kbs. In this case the time domain wave forms exhibited
very similar envelope fluctuations. When I performed an FFT on the records the resulting spectra
exhibited a Gaussian shape with the same width. When I applied an offset of +5.0Hz, the spectrum
shifted up by 5.0Hz with Pathsim. With Linsim, the Gaussian spectrum shifted down by -5.0 Hz. So there?
is a potential sign error with the offset in the Linsim code.
?
2. I performed an additional set of tests with a 1kHz sinewave with a 60sec duration and a sample
rate of 48kbs. In this case I did not use Pathsim since it only works with a sample rate of 8kbs.
I first applied the 1kHz sinewave to Linsim with Path 1 selected, a spread of 1 Hz, and 0 offset.
The resulting output waveform exhibited much faster envelope fluctuations. This was confirmed?
with the FFT, which showed markedly wider Gaussian spectrum-the width increased approximately 6x.
?
3. I suspected that this spread issue has something to do with the different data rates since is 6x
larger than the 8kbs case. I then repeated the test with a spread of 1/6 = 0.166, that?
corresponds to the ratio of the data rates 8kbs/48kbs. The resulting spectrum using an FFT showed?
the correct shape and frequency spread.
?
4. I think this spreading issue can be corrected in Linsim by applying a scale factor to the
?spread that accounts for the ratio: 8kbs/(the selected date rate kbs)--My best guess :-)
?
5. When I applied a +5.0 Hz offset with the 48kbs sinewave the resulting spectrum shifted down
-5.0 Hz. So this Offset sign error is the same at the higher sample rates.?
?
Summary
?
1. Linsim is a robust and much needed update to Pathsim that enables processing of .wav files?
for a variety of data rates in the range 8kbs to 48 kbs.
?
2. When using Linsim at data rates other than 8kbs, adjust the spread using a scale factor of
8kbs/(the selected data rate kbs).
?
3. There is a sign error in the offset. So simply switch the sign of the desired frequency offset.
?
4. I have applied pulse trains generated with Matlab to Linsim and I will report on my findings?
soon.
?
Bob Johnk, WB0VGD?
Arvada, Colorado


 

开云体育

I think I have found an error that might account for the spread error of x6.

David

On 1/11/25 19:49, Dave wrote:

John,

The computational part of linsim is modeled exactly after pathsim.? All of the path, noise etc is performed at 8000 samples per second data.? Source and output file sample rates are converted using high precision resampling libraries.? I want to duplicate your tests.? For the 48kbs tests did you use both input and output files to 48kbs?? linsim can be used as a rate converter if no other signal processing is performed.

David

On 1/11/25 12:58, Robert Johnk via groups.io wrote:
I have been doing some evaluations of Linsim and I have identified a couple of minor issues.?
In my early tests, I selected 1 path and a spread of 1Hz and and AWGN with SNR=25dB.?
I did one set of tests at a sample rate of 8kbs and another set at 48kbs. I repeated the tests?
with path 1 selected, a spread of 1Hz, and an offset of +5Hz.?
?
I am using Windows 11+Dell G10 laptop.
?
Observations
?
1. I intercomapared Linsim v2.0.4 and and Moe Wheatley's Pathsim v1.0. I generated a 1kHz sinewave
with a 60 sec duration at a sample rate of 8kbs. In this case the time domain wave forms exhibited
very similar envelope fluctuations. When I performed an FFT on the records the resulting spectra
exhibited a Gaussian shape with the same width. When I applied an offset of +5.0Hz, the spectrum
shifted up by 5.0Hz with Pathsim. With Linsim, the Gaussian spectrum shifted down by -5.0 Hz. So there?
is a potential sign error with the offset in the Linsim code.
?
2. I performed an additional set of tests with a 1kHz sinewave with a 60sec duration and a sample
rate of 48kbs. In this case I did not use Pathsim since it only works with a sample rate of 8kbs.
I first applied the 1kHz sinewave to Linsim with Path 1 selected, a spread of 1 Hz, and 0 offset.
The resulting output waveform exhibited much faster envelope fluctuations. This was confirmed?
with the FFT, which showed markedly wider Gaussian spectrum-the width increased approximately 6x.
?
3. I suspected that this spread issue has something to do with the different data rates since is 6x
larger than the 8kbs case. I then repeated the test with a spread of 1/6 = 0.166, that?
corresponds to the ratio of the data rates 8kbs/48kbs. The resulting spectrum using an FFT showed?
the correct shape and frequency spread.
?
4. I think this spreading issue can be corrected in Linsim by applying a scale factor to the
?spread that accounts for the ratio: 8kbs/(the selected date rate kbs)--My best guess :-)
?
5. When I applied a +5.0 Hz offset with the 48kbs sinewave the resulting spectrum shifted down
-5.0 Hz. So this Offset sign error is the same at the higher sample rates.?
?
Summary
?
1. Linsim is a robust and much needed update to Pathsim that enables processing of .wav files?
for a variety of data rates in the range 8kbs to 48 kbs.
?
2. When using Linsim at data rates other than 8kbs, adjust the spread using a scale factor of
8kbs/(the selected data rate kbs).
?
3. There is a sign error in the offset. So simply switch the sign of the desired frequency offset.
?
4. I have applied pulse trains generated with Matlab to Linsim and I will report on my findings?
soon.
?
Bob Johnk, WB0VGD?
Arvada, Colorado



 

开云体育

A new development version of linsim has been posted at

Contains the following changes since 2.0.5

commit 6822b34b692ec2d0e0a5c6fbb3ab0aa0f0fd25fa
Author: dave-w1hkj <w1hkj@...>
Date:?? Fri Jan 12 09:38:00 2024 -0500

??? alpha

commit 35df54a5602df2749d235f781092c694e1855dad
Author: dave-w1hkj <w1hkj@...>
Date:?? Sat Jan 11 19:40:20 2025 -0600

??? OFFSET correction
?? ?
????? * change sign of correction
????? * correct resampling of source wav

commit 2bf1720a6d407187c40ad45f31ceb1274aca2b0f
Author: dave-w1hkj <w1hkj@...>
Date:?? Wed Aug 9 20:10:39 2023 -0500

??? fix fltk UI
?? ?
????? * fix failure to correctly display check box element

commit d218c58f66e886767da50ea677e6a541f535c3d1
Author: dave-w1hkj <w1hkj@...>
Date:?? Tue Aug 30 12:34:57 2022 -0500

??? fix autoupdate
?? ?
????? * autoupdate screws with the version numbering convention
??????? used by linsim

This should correct the bugs reported below.

73, David
W1HKJ



On 1/11/25 12:58, Robert Johnk via groups.io wrote:

I have been doing some evaluations of Linsim and I have identified a couple of minor issues.?
In my early tests, I selected 1 path and a spread of 1Hz and and AWGN with SNR=25dB.?
I did one set of tests at a sample rate of 8kbs and another set at 48kbs. I repeated the tests?
with path 1 selected, a spread of 1Hz, and an offset of +5Hz.?
?
I am using Windows 11+Dell G10 laptop.
?
Observations
?
1. I intercomapared Linsim v2.0.4 and and Moe Wheatley's Pathsim v1.0. I generated a 1kHz sinewave
with a 60 sec duration at a sample rate of 8kbs. In this case the time domain wave forms exhibited
very similar envelope fluctuations. When I performed an FFT on the records the resulting spectra
exhibited a Gaussian shape with the same width. When I applied an offset of +5.0Hz, the spectrum
shifted up by 5.0Hz with Pathsim. With Linsim, the Gaussian spectrum shifted down by -5.0 Hz. So there?
is a potential sign error with the offset in the Linsim code.
?
2. I performed an additional set of tests with a 1kHz sinewave with a 60sec duration and a sample
rate of 48kbs. In this case I did not use Pathsim since it only works with a sample rate of 8kbs.
I first applied the 1kHz sinewave to Linsim with Path 1 selected, a spread of 1 Hz, and 0 offset.
The resulting output waveform exhibited much faster envelope fluctuations. This was confirmed?
with the FFT, which showed markedly wider Gaussian spectrum-the width increased approximately 6x.
?
3. I suspected that this spread issue has something to do with the different data rates since is 6x
larger than the 8kbs case. I then repeated the test with a spread of 1/6 = 0.166, that?
corresponds to the ratio of the data rates 8kbs/48kbs. The resulting spectrum using an FFT showed?
the correct shape and frequency spread.
?
4. I think this spreading issue can be corrected in Linsim by applying a scale factor to the
?spread that accounts for the ratio: 8kbs/(the selected date rate kbs)--My best guess :-)
?
5. When I applied a +5.0 Hz offset with the 48kbs sinewave the resulting spectrum shifted down
-5.0 Hz. So this Offset sign error is the same at the higher sample rates.?
?
Summary
?
1. Linsim is a robust and much needed update to Pathsim that enables processing of .wav files?
for a variety of data rates in the range 8kbs to 48 kbs.
?
2. When using Linsim at data rates other than 8kbs, adjust the spread using a scale factor of
8kbs/(the selected data rate kbs).
?
3. There is a sign error in the offset. So simply switch the sign of the desired frequency offset.
?
4. I have applied pulse trains generated with Matlab to Linsim and I will report on my findings?
soon.
?
Bob Johnk, WB0VGD?
Arvada, Colorado


 

Hi Dave:
?
Thanks for your kind words and timely responses! Also, thanks for the update. I will install and check it out.?
?
Linsim is a nice package and I am very happy that it accommodates higher data rates and more modern audio formats. I am using
it to test out a channel sounder concept for 3 kHz wide HF channels. Linsim is a great way to test out channel sounder waveform types with a?
wide variety of fading and noise level conditions. So for me it is a valuable tool.
?
Thanks for your efforts in improving and updating it.
?
I will be happy to pass along any additional issues that I encounter. Thanks for your good work!
?
Bob Johnk WB0VGD
Arvada, Colorado


 

Hi Dave:
?
I used 48kbs data rates on both the input and output of of linsim during my tests. I will be happy to provide my .wav input and output .wav files and to you if needed. In the meantime, I will check out the latest release that you just posted.
?
Bob, WB0VGD