Hello Paul,
You could use the "conditional actions" to invoke the batchfile, and
only set a flag (variable) in the "periodic actions". The "conditional
actions" are quite versatile (you have timers there, etc etc) but
compared to a real scripting language, a bit tedious to configure.
Details at
www.qsl.net/dl4yhf/speclab/perisced.htm#cond_actions
A timer can be started anywhere (also in the "periodic actions"), and
the "conditional actions" can be used to do whatever you like when the
timer expires. There are twenty different timers that may run at the
same time, so you could use one timer to wait a few seconds before
uploading lf1.jpg, and some other time before uploading lf2.jpg.
The timers are explained in the same document linked above, in the
chapter about the conditional actions.
All the best,
Wolf DL4YHF .
On 06.11.2018 11:58, N1BUG wrote:
Hi LF,
I am trying to set up two SpecLab instances as grabbers to monitor
the EU and NA LF QRSS windows, but I am having some problems with
FTP upload.
Either SpecLab instance works fine by itself, calling ftp_up.bat
with either lf1.jpg or lf2.jpg parameter. But when I run two
instances, one using lf1.jpg, the other using lf2.jpg there are
problems related to both trying to run ftp_up.bat at the same time.
This creates random behavior, many FTP errors and usually only one
file makes it to the FTP server.
I would like to have both SpecLab instances upload every 10 or 15
minutes but I am not sure how to get around this problem. I could
rewrite ftp_up. bat to hard code the two file names and upload both
in one operation. This solves the log out of FTP server but not able
to log back in quickly enough. But it doesn't solve the problem of
both SpecLab instances trying to call ftp_up.bat at the same time. I
thought about having just one SpecLab instance calling ftp_up.bat
but I think this doesn't guarantee the other instance has yet
created the .jpg file to upload.
Any ideas how to do this properly? Is there any way to insert a
delay of some seconds in the SpecLab periodic actions? Such as...
capture lf2.jpg
wait for some seconds
call ftp_up bat
??
I will have some other questions about optimizing SpecLab parameters
for performance later. :)
73,
Paul
|