Showing posts with label SpectrumLab. Show all posts
Showing posts with label SpectrumLab. Show all posts

Saturday, 9 January 2016

The things I have learned about SpectrumLab (2)

Adding a DSP Noise Blanker:


I have been using the Grabber on 40 metres recently, and had a terrible time with QRN crashes from lightning in thunderstorms around the Oceania Region.  The crashes are so bad they obliterate incoming QRSS signals completely at times.

SpecLab has a secret weapon to combat QRN!  I have learned that SpecLab has built in DSP Noise Blankers, which are completely configurable!  After reading the help file on the NB's and learned how to configure them correctly, I was utterly amazed at how effective they are.

How to configure a DSP Noise Blanker and get it up and running:-

You will need to reconfigure the default setting of Speclab in the **Components**Circuit Window** menu.  The default setting for the input to Spectrum Analyser1 is circuit point L1, this needs to be changed to circuit point L2 to include Blackbox1.  To do this click the box with "L1" in it shown wired to Spectrum Analyser1 (lower/centre).  In the pull down menu that appears click "L2=Left Blackbox1" then click OK.  You should have what is shown below on screen.



Spectrum analyser1 is now connected to the output of the left hand Blackbox1, this is where a Noise Blanker resides and can now be enabled.

Click left hand Blackbox1, and a pull down menu appears, select Noise Blanker, and enable it by clicking Noise Blanker and then Mode in the further pull down menu.  Blackbox1 between L1 and L2 should now turn green showing a NB is enabled.

You now need to configure the NB parameters to make it work effectively.

You need a receiver with an antenna connected to it, and setup on the band you want to use.  The noise spectrum from the receiver should fill the lower 5dB or so of the onscreen frequency spectrum.

Go back into the NB pull down and click "Trigger peak/avrg = xx" this will open a further pull down.  Now click "Connect to slider" then "OK".  In the 2 text boxes at lower right on the Components screen - the top one should now say "Noise Blanker Trigger Level L1" and beneath it you will see the level - xxdB.
  
On the far right of the components Screen there is a vertical slider, now slowly adjust the slider up and down until the yellow frequency Spectrum display just disappears.  Now readjust the slider until the Freq Spectrum reappears just back to it's normal level, now set the lower scale to read +1.0 dB above that normal level.  That is the most important parameter now set.

The rest of the parameters need to be set to the following list:-

Ramp Time = 0.01 sec
Pre-trigger blanking time = 0.0005 sec
Post-trigger blanking time =0.3 sec
Average detector RISE time const = 0.01 sec
Average detector DECAY time const = 0.01 sec

The figures below the dotted line in the NB menu are the current figures for the spectrum you are currently viewing and will change with time.

You can use the slider to adjust the values (don't forget to check the slider box to bring the slider up for that particular parameter) or just enter the figures given into the parameter box directly.  These figures certainly work on 40 Metres for me even with a full blown local thunderstorm raging around me!

The Post Trigger blanking time for me was the trickiest to set.  It needs to be long enough to just completely blank one lightning flash, and 0.3 seconds or slightly shorter seems to be best for me - too little time and you see the end of the noise pulse - too much time, left a black vertical line on the Spectrum screen.  Thicker vertical black lines on the waterfall are where the NB has blanked off multiple strikes, being retriggered several times during the Noise Spike so the shorter this can be, within reason, the better.  You will hardly notice the blanking caused by a single lightning strike - you will hear the spike in the receiver, but it will not show on the waterfall.

The lack of highly coloured vertical lines certainly makes better reading of the waterfall, but the NB will block only short rise time spikes - not QRM from CW, phone or telegraph transmissions.

Don't forget to do a save to your "Config" file, before you exit SpecLab!  Otherwise you will have to do this all over again....


Pete
ZL2ik
10 Jan 2016





Things I have learned about SpectrumLab

Adding Band, Date/Time to a filename automatically:


I have been using SpectrumLab for my Grabber Software for some years, and I'm still learning new things about it, as I strive to improve what I show on my website.

File naming and saving:

There are a number of ways of saving files automatically in SpectrumLab.  The first is available in the **Options**Screen Capture** tab.


Here you can add in the "Filename" text box, the Drive, route, and filename, for instance "D:\Spectrum\30M\Kapture\Argo.jpg"  This tells SpecLab where to save the file to, and the filename.  SpecLab will then append a "File index", to the filename, so they are not overwritten each time a new file is saved with the same filename.  The File index can be edited by simply over typing the number on the text box.  This all occurs when a **Periodic Action** takes place, which can be programmed to occur at given intervals (10 mins, or 4 hours, say).  See **Options**Periodic Actions** Tab.

I use the extremely simple FTP upload program by ON7YD, ArgoUpload.  Everytime a new file ends up in the directory, this Routine, at the time it uploads the file, strips the filename back to the first 4 characters in the filename.   A File named "Argo1234" will end up being FTP'd to the website as just "Argo" which is exactly what we want!  This action overwrites the older file with the same name already on the website, effectively updating it. 

The above method is fine if you only want a simple file name, because you cannot stop the addition of the file index process.  

I wanted to put in the filename, Band, Date, and Time, for future reference and ease of searching a particular file at a later time.  The appended index number was too simple.  However I was able to come up with another method of doing this, while retaining the name stripping feature of ArgoUpload to handle the overwriting of the file on the website.  This is how I did it.

A feature in SpecLab's Options, will allow the program to carry out specific actions at regular intervals (like every 10 minutes, or 4 hours, say).  See the **Options**Periodic Actions** Tab.  To activate the periodic action you must first tick the "Active" check box. 



Here above I have setup a Periodic Action which will happen 24 hours per day at regular intervals of 10:00 minutes.  Note the a periodic Action is activated by ticking (clicking) the Active box.

I have also added in the Action macro(s) text box a Periodic Action to Capture a Screen Shot, every 10 minutes, saving it to D:\Spectrum\40M\Kapture\..

By using this method of Capture, as a screenshot Periodic Action, you can pre-name the file using the internal programming facilities of SpecLab itself.  At every interval you can command SpecLab to capture a file, by entering what you want to happen in the Action (Macros) Text Box.

I have entered the command Capture and in brackets after the command the Filename, location to save the file, the filename, and the file type (either .jpg or .bmp).

I'll explain the procedure here:
There are 3 commands in the instruction, marked in orange Text:

Capture("D:\Spectrum\40M\Kapture\Argo 40M" +str("DDMMYY hhmm",now)+"z.jpg")

Capture - tells Speclab to initiate a screen capture.

" " - Quotes deliminate text in the filename.

+  - command - "Append"

str - command that says:  the String that follows should be converted by the command now to Date/Time format.

The instruction ends up like this:

D:\Spectrum\40M\Kapture\Argo 40M 100116 2340z.jpg

The file ends up in - D:\Spectrum\40M\Kapture\

With a filename - Argo 40M 100116 2340z.jpg

At upload time ArgoUpload strips the filename back to Argo.jpg and everything happens as before!

Don't forget to do a save to your "Config" file, before you exit SpecLab!  Otherwise you will have to do this all over again....


Pete
ZL2iK
10 Jan 2016