Control your power for flats

Discuss Prism's scripting language, specialized scripts for scientific or cosmetic purposes
Post Reply
Fellside
Posts: 11
Joined: Fri May 11, 2018 12:31 pm

Tue Jun 04, 2019 2:59 am

Hi Hamza,

Would it be possible to share your Control your power for flats script.

This feature has just been added just at the right time as I have just purchased an LED panel.:-)

Also how are you controlling the brightness of your 24" x 24" LED panel.? What software Software-Hardware are you using?

Many thanks

Graham
Hamza Touhami
Site Admin
Posts: 564
Joined: Sat May 20, 2017 6:05 pm
Location: Phoenix,AZ
Contact:

Tue Jun 04, 2019 9:24 pm

This is the switch we use to control the observatory https://www.digital-loggers.com/lpc.html

This is the content of the batch file, let's call it "powerup.bat" and this is what you run from PRSIM.

Code: Select all

 C:\Windows\SysWOW64\cmd.exe /c cscript C:\Windows\SysWOW64\...\powerup.vbs 
This is the content of a VBS script to run the DigitalLoggers to turn power on:

Code: Select all

set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.run "Chrome.exe"
WScript.sleep 2000
WshShell.sendkeys "http://admin:yourpassword@192.168.1.231:9001/script?run005=run"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
And this is the content of the VBS file to command the DigitalLoggers to turn off the power in the morning. This should be executed at the "end of observation" sequence:

Code: Select all

set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.run "Chrome.exe"
WScript.sleep 2000
WshShell.sendkeys "http://admin:yourpassword@192.168.1.231:9001/script?run003=run"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
NOTE: The DigitalLogger has an internal scripting function that super easy to use and extremely handy. It help us prevent thing from happening early in the morning and pre for the night . The switch waits for 0600 and kills the power, this prevent some catastrophic failures from happening if, for example. the mount does not park right. This also turns on the power for us at 1700 in preparation for the night.
script.png
I understand that this might be a little convoluted, so please ask any question you might have and I will try and help
Hamza Touhami | Site Administrator
Hyperion-Astronomy.com
Hamza Touhami
Site Admin
Posts: 564
Joined: Sat May 20, 2017 6:05 pm
Location: Phoenix,AZ
Contact:

Tue Jun 04, 2019 9:28 pm

I do not, however, control the brightness of the LED panel we use. It is on or off but this can be easily adjusted for the most transmissive filter you have e.g: the luminance filter. The way I set ours is to try the brightness I can have it and still have a successful flat at 0.1 seconds.

We just started carrying a new version of large USB controlled flat panels, the biggest one is 20 inches in diameter and is fully adjustable and has an ASCOM driver that is fully compatible with PRISM. We are looking into complete integration with PRISM actually.


https://www.hyperion-astronomy.com/coll ... 0014600249
Hamza Touhami | Site Administrator
Hyperion-Astronomy.com
Fellside
Posts: 11
Joined: Fri May 11, 2018 12:31 pm

Wed Jun 05, 2019 2:09 pm

Hi Hamza.

Many thanks for the bat file. It will come in useful.

I am controlling my flat panel using an Arduino and the software on this git hub page.

https://github.com/jwellman80/ArduinoLi ... lnitak.ino

There is no Ascom driver. it is supposed to be based on FLAT_MAN software. I believe the SGP has the ability to drive this Arduino/software combination directly (no Ascom Driver)

Full integration with with Prism is great.

Many thanks

Graham
Hamza Touhami
Site Admin
Posts: 564
Joined: Sat May 20, 2017 6:05 pm
Location: Phoenix,AZ
Contact:

Wed Jun 05, 2019 2:32 pm

great points there, noted.

Thanks
Hamza Touhami | Site Administrator
Hyperion-Astronomy.com
Post Reply