hello and welcome to this tutorial regarding uh scripting with another signal Shar and today we would like to have a deeper look into the script limit line which you can download for free from the internet limit line means you can set up the limit and when the limit is exceeded due to a transmitter which is transmitting for example um he can stop the analyzer he can tell him to record the result or to make a screenshot so as a sample we have here at 434 mahz a remote control a car remote control which if we push the button you can see they are transmitting so what we did already was install installing the uh python script if we click on it the script launcher uh is starting but the script launcher is telling as there is nothing inside because no scripts are installed up to now so we close it again and now we want to install uh the limit line script which I've downloaded already from the another homepage and copied it uh to the uh hard disk inside of the signal Shar I go to service and I go to Windows we don't need Administration rights to do so now I open an ex Explorer and I go to folder D and there is folder scripts this is what I created where I put in uh all the scripts from the another homepage and here is another uh script launcher limit line do zip I open this and and I copy them all okay then I go back and now go into the folder another signal shark all as made on the second partition data D there is a folder called scripting if you have run the script launcher once um he will uh activate this or set up this um folder go into scripting you user scripts and here we can now create a new subfolder which we call for example limit lines okay we open the folder and we paste all the content that's it this was the installation now we go back into our application to the measurement now we can start python again and now we can see the limit line is indicated here and we have now uh the first script is regarding U making measurements uh with limit lines and the second one is the settings of the limit lines before we can do any measurements with it we have to set up um the settings so I click on it and open it what we see first is trigger settings so the trigger event what should be done after trigger so he should record for example for one second we can also put in longer periods but we keep it here um on one second trigger on limit line event yes please do so uh trigger on uh push the button um this is also possible here other things also possible um interesting is also uh the name of the subfolder where we put all the um results inside I call it oh let's say n Li line uh the prefix of the result should be uh limit line short and the comment is um I did it Orga did it okay so now let's uh that was a trigger setting now let's also have a look to the Limit line settings so which Trace do we want to operate at the moment we only have the uh plus Peak activated that's why he we can only select the plus Peak and the limit value the upper one the lower one or both so we can set both if you'd like on a horizontal line we can also do it with a tables this will show this is something we will show a little bit later and we can now set the upper limit to for example - 90 and the lower limit to - 120 okay but let's face only to the upper one that's enough okay and now we did all the settings and we are ready to take some measurements I click on the measurements and what we can see now is the current measurement and the upper limit line when we have a look into the background we can see that the analyzer is still operating but in remote control because the script is remote controlling the analyzer okay and now let me push my remote control and he is storing a result okay last trigger event was limit line b b exceeded 1:00 uh in the afternoon I quit I set the script launcher into the background and now I would have a look into the m memory okay I open the folder of the memory here I have um my subfolder now the limit line I set it as a working directory and now you can see limit line the LL the prefix and the comment hogga did it and now I do a recall and now you can see there is a recording of the last oh okay that's also a longer period before but here at round about 1 second the event happened and then there is additional round about 1 second of recording remember something we have said 1 second after the trigger please record for another second so by this we can see the whole sequence so if you now apply a marker we can move the marker versus frequency or time and then we can go into the Spectrum and see when the was the trigger event okay we can see the Spectrum accordingly okay so this works and to be honest this is not real time if you need something with nanc resolutions and absolutely precise uh triggering and so on uh then you have to go into the IQ analyzer which is an option for the signal shark also aailable this year is how to say the easy solution okay and uh this was just uh with with our functionality limit line and we can also do it now with a little bit more complicated a limit line so therefore we go into the settings of the limit lines again and tell him please don't be a simple line be a table okay and here you can see we can do it while markers we can do an additional offset we can import hdf5 files normally the storing of a result inside of a signal chart is done as an hdf5 file we will see it a little bit later we can import a zsv which you create it maybe by um Exel or you can also save something as CSV for example if we are now doing a limit line curve manually um we can save it as CSV and later on again imported as CSV so I will add a point here plus and now I type in first of all a frequency let's start at 433 mahz tap and the level should be let's say minus 90 dbm lower value is not of Interest we keep it at - 999 so plus 434 Mega um minus 80 t and a third one 435 um let's say minus 90 yeah okay so if we have created now a complex curve maybe we would also love to save it to save it at CSV is open the folder and saying us okay where to store it not on under documents or wherever you want okay I go into my folder another signal shark a scripting a user script limit lines and here I saw it save okay close it and now measure with it we can see and now I push my remote control from the distance oh exceeded already storing a result and this how it works uh with a more complex than a um simple limit line curve okay now I would like to make from an existing Spectrum I want to set an existing Spectrum to reference curve therefore I need an interesting Spectrum I go to traces I switch on the max on Peak and infinite recording and I push my remote control to have such kind of spectrum line as a reference okay therefore I store it I call it okay data has been saved bring it back into operation and now I open the settings of the limit line python script limit line settings and now I import from hdf5 the reference open it's the upper limit curve select the task it's Spectrum the trace is maximum Peak and I can add an additional 5tp in value now I go back into my measurement you can now see the current measurement and in yellow um the limit line curve now if I push the button off on the distance or it's not exceeding the limit curve if I go closer to the antenna now it's exceeding it's recording okay so by this you can use a very complex uh curve as a reference and whenever um the signal is exceeding it it's recording the result so again we can now recall it um which was the latest one this on the recall and here's my recalling taking a marker and going into the Spectrum okay that's it for now thank you very much for uh watching this little tutorial and remember there are more scripts available for the signal shark so download them install them and hope you have a lot of success with them okay thank you very much and bye-bye