There is a whole bucket of goodness in the new 10.5 update of TheSkyX, and the latest daily build has a new feature that is near and dear to my heart. It's something I've been wanting in TheSkyX myself for quite a while, and a customer came up to me at NEAIC/NEAF this year and asked for it. That was all the impetus I needed to follow through with my threats (to myself) to add this feature to our scripting engine. So here it is:
But, as the late night TV man says, "But WAIT! There's MORE!"
You can also spit things out to the script result pane while the script is running. No more waiting until the script completes to see the output.
My favorite script is of course my dithering script for when you're doing unguided imaging. All it does is nudge the mount a tiny bit between each exposure (this also provides a free meridian flip between exposures), and it works fantastic with DSLR's when you don't need to guide (either because your exposure lengths are short enough, or when your using ProTrack on a Paramount). I've modified both the OSC version, and one that changes filters for you to incorporate these new capabilities, and they are now distributed with TheSkyX as example scripts (look in /Resources/Common/User/Java Scripts): UnguidedDitherOSC.js and UnguidedDitherWFilters.js.
Output to the script result pane is trivial. Just call writeLine("some text here"), for example:
Each call to writeLine() will be a new line of text in the script result pane.
There are a few rules for accessing text files... we had to take some security concerns into consideration, as allowing TCP/IP access to a machine and then giving it access to the hard drive is... well, not always the best of ideas. One must tread carefully. Here's the lowdown:
1. Script output files are always .txt. In fact, .txt is automatically appended to the file name.
2. Script output files cannot be more than 4MB, at which point you simply can't keep appending to them.
3. Script file names can only contain alphanumeric characters.
3. You can only open one file at a time for reading or writing.
4. Script input and output files will only be created in, or read from the folder /ScriptFiles, which is located in your /MyDocuments/TheSkyX Professional Edition (or /Library/Application Support/Software Bisque/TheSkyX Professional Edition on Mac OS X & Linux/Raspberry Pi).
The methods on ScriptedLog are pretty self explanatory (I hope):
For example, the following would open a file called "output.txt", and write some data to it. If the file can't be opened, an error message is displayed in the output pane.
TextFile.write("Here's some text\r\n");
Take a look at the two example scripts for a more elaborate example of using these new features. Until Orchestrate X is completed... this is my favorite way to image!
05-29-2016 9:43 AM