Complex scripting in NINA Stefan Berg Nighttime Imaging 'N' Astronomy (N.I.N.A. / NINA) · Harry Karamitsos · ... · 6 · 195 · 0

hkara 0.90
...
· 
·  Share link
Does anyone use or have any complex scripts examples?
i’v looked at Patriot Astro’s scripts but I’m looking for uses of loops and if-then statements and where to put them.
Like
bluemoon737 3.61
...
· 
·  Share link
Did you try the NINA Discord channel?
Like
hkara 0.90
Topic starter
...
· 
·  Share link
No. I guess I should…
Like
CCDnOES 8.34
...
· 
·  1 like
·  Share link
Check out the most recent presentation on the astroimaging channel. Mostly you will be using Marc Blank's Sequencer Powerups Plugin.
Like
bluemoon737 3.61
...
· 
·  Share link
@Kathy Walker was looking for something similar I believe, maybe she can point you in the right direction.
Like
KathyNS 5.12
...
· 
·  2 likes
·  Share link
I am just a beginner with NINA, but I have been learning fast, out of necessity.  It's a steep learning curve.

I have used Loops.  Where to put them? … They will only go in the Loops section of the sequence, so the where is easy.  The order doesn't matter: all the loops in a particular instruction block are evaluated frequently (I think I read somewhere they are evaluated every 5 seconds) and then applied.

A set of Loop conditions will allow the instruction block to run (and repeat) until any one of the conditions becomes false.  So for example, I want my sequence to stop at dawn.  I also want it to stop if the target drops below 20 degrees elevation.

So I added:
- Loop Until Time: Astronomical Dawn
- Loop Until Altitude Below: 20 degrees

But if neither of those conditions becomes true before the sequence finishes, the whole thing will repeat.  That's why it is called a "Loop".  Since that's not what I wanted - I wanted it to run once only - I had to add another Loop instruction:
- Loop For Iterations: 1 iteration

The combined effect of my three Loop instructions is that the instructions run until finishes, or until dawn, or until the target is too low, *whichever happens first*.

I haven't used any of the If-then-else Powerups, so I can't help you with those.  So far, Loops and Triggers are handling what I want to do.
Like
hkara 0.90
Topic starter
...
· 
·  1 like
·  Share link
Thank you very much. I wasn't sure if the whole block ran or would it interrupt when the loop condition was met as in loop until Astronomical Dawn.
Like
 
Register or login to create to post a reply.