Difference between revisions of "DragScript Orbits"

From Voyager Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__TOC__
 
__TOC__
  
In addition to the primary [[DragScript Elements|DragScript Actions]], which do things like slewing the mount and running a sequence, DragScript elements can control other observatory functions, such as Starkeeper.it's companion product, Viking, which monitors and controls observatory I/O devices.  Custom observatory control elements are also listed here, but they will not be of general interest.
+
This DragScript category manage operation for RoboOrbits automata.
  
==Viking==
+
==Orbits==
These elements send commands to Voyager's companion product, Viking.  Viking monitors and controls I/O devices in the observatory.
+
This DragScript category manage the download and import process fro RoboOrbits Data.
 
 
For more information on Viking, visit [https://voyager https://voyagerastro.com/products/viking]
 
 
 
[[File:Dragscript-viking-2.11h.jpg]]
 
<br />
 
 
 
===Viking Client===
 
These commands connect to Viking and to Viking I/O cards.  Refer to [[Viking Setup]] for further information on configuring Voyager to communicate with Viking.
 
 
 
[[File:Dragscript-viking-client.png]]
 
 
 
*'''Viking Client Connect''':  Connect to the Viking software
 
 
 
[[File:Dragscript-viking-client-connect.png]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window<br />
 
 
 
*'''Viking Client Disconnect''':  Disconnect from the Viking software
 
 
 
[[File:Dragscript-viking-disconnect.png]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
 
 
*'''I/O Card Connect''': Connect to Viking's I/O card
 
 
 
[[File:Dragscript-iocard-connect.png]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
 
 
*'''I/O Card Disconnect''':  Disconnect from Viking's I/O card:
 
 
 
[[File:Dragscript-iocard-connect.png]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window
 
  
 +
[[File:Immagineyy.png|link=https://wiki.starkeeper.it/index.php/File:Immagineyy.png]]
 
<br />
 
<br />
  
===Out Relays===
+
* '''Download And Update ASTEROIDS Data:''' download from the URL defined in Common tab of Voyager Setup the asteroids data and import in RoboOrbits Database. This action can be a long one. Up to tens of minutes. Depends on your internet connection speed and on power of your PC processor
Out Relay commands turn I/O relays connected to Viking on or off:
+
* '''Download And Update COMETS Data:'''  download from the URL defined in Common tab of Voyager Setup the comets data and import in RoboOrbits Database.  
 
 
[[File:Dragscript-out-relays.png]]
 
 
 
*'''Relay On''': Command Viking to turn a relay on
 
 
 
[[File:Dragscript-relayon.jpg]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''OUT Number''':  Relay number to turn on.  Enter 0 to turn on all the relays
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
 
 
*'''Relay Off''':  Command Viking to turn a relay off
 
 
 
[[File:Dragscript-relayoff.jpg]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''OUT Number''':  Relay number to turn off.  Enter 0 to turn off all the relays
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
 
 
===Out Automation===
 
Automation actions control I/O devices with three states:  Open, Close and Stop.  One piece of hardware that supports three states is the MyHome Bticino device  https://www.bticino.com/solutions/home-automation/
 
 
 
The main use of this device is to control a motor that could be used, for example, to open or close a window shade, or stop it at a particular position.  You may use this type of device in your observatory control to do something such as open and close a roll-off roof.
 
 
 
[[File:Dragscript-out-automation.png]]
 
 
 
*'''Open Automation''':
 
 
 
[[File:Dragscript-open-automation.jpg]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''Automation Number''':  Number of automation device to open
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
*'''Close Automation''':
 
 
 
[[File:Dragscript-close-automation.jpg]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking. Currently this is pre-selected to Client ID #1
 
*'''Automation Number''':  Number of automation device to close
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
 
 
*'''Stop Automation''':  Stop the specified Viking automation's execution
 
 
 
[[File:Dragscript-stop-automation.png]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''Automation Number''':  Number of automation device to stop
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window
 
 
 
<br />
 
 
 
*
 
 
 
===PWM Pulse Width Modulation===
 
[[File:Dragscript-pwm.png]]
 
 
 
*'''Activate PWM''':  Set the value of a pulse width modulation device and activate it:
 
 
 
[[File:Dragscript-pwm-open.jpg]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''PwM Number''':  Enter the number of the PWM device to control.  Enter 0 to send this command to all PWM devices
 
*'''Percentage''':  Set the PWM device to this level, specified as a percentage from 0-100%
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
*'''Deactivate PWM''':  Deactivate a pulse width modulation device:
 
 
 
[[File:Dragscript-deactivate-automation.jpg]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''PwM Number''':  Enter the number of the PWM device to deactivate.  Enter 0 to send this command to all PWM devices
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
 
 
===DAC===
 
This action is the setup for the DAC output to Viking.
 
 
 
[[File:Dragscript-dac-choice.jpg]]
 
 
 
*'''Set DAC Output''':
 
 
 
[[File:Dragscript-dac-setup.jpg]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''DAC Number''':  Enter the number of the DAC device to use.  Enter 0 to send this command to all PWM devices
 
*'''ADU Value''':  Analog to Digital Unit conversion factor.  E.g., if the DAC can output 5VDC max and ADU resolution is 1024 ADU, 512 ADU is 2.5VDC
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window
 
 
 
<br />
 
===In===
 
These actions monitor inputs to Viking.
 
 
 
[[File:Dragscript-In.png]]
 
 
 
*'''Wait High Level IN''':  Wait until the specified Viking input remains at a high level for the given amount of time:
 
 
 
'''[[File:Dragscript-in-high.jpg]]'''
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''IN Number''':  IN device to monitor for a high status
 
*'''Is MyHome Bticino Input Type''':  If checked, the input to monitor is a MyHome Bticino device  https://www.bticino.com/solutions/home-automation/
 
*'''High for''':  Number of seconds for the device to remain in a high state to exit the wa'''it'''
 
*'''Timeout''':  Number of seconds to wait before timing out the wait
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window<br />
 
 
 
*'''Wait Low Level IN''':  Wait until the specified Viking input remains at a low level for the given amount of time:
 
 
 
[[File:Dragscript-wait-low.png]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''IN Number''':  IN device to monitor for a low status
 
*'''Is MyHome Bticino Input Type''':  If checked, the input to monitor is a MyHome Bticino device  https://www.bticino.com/solutions/home-automation/
 
*'''Low for''':  Number of seconds for the device to remain in a Low state to exit the wa'''it'''  (TYPO:  Field label should be "Low for:")
 
*'''Timeout''':  Number of seconds to wait before timing out the wait
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window <br />
 
 
 
===Analog In===
 
Analog In actions monitor analog input values to Viking.
 
 
 
[[File:Dragscript-analog-in.png]]
 
 
 
*'''Wait Analog IN remain in range for''':  Wait until an analog input to Viking remains within the given range for the specified time:
 
 
 
[[File:Dragscript-analog-in-config.png]]
 
 
 
*'''Client ID''':  Select the client ID to use when communicating to Viking.  Currently this is pre-selected to Client ID #1
 
*'''Analog IN Number''':  Analog IN device to monitor
 
*'''Expected Range''':  Specify the minimum and maximum values of the desired range
 
*'''In Range for''':  Amount of time in seconds the monitored Analog IN value must remain within the Expected Range for the wait to end
 
*'''Timeout''':  Number of seconds to wait before timing out the wait
 
*'''OK''':  Save the settings and close the window
 
*'''Cancel''':  Discard changes and close the window
 
 
 
*
 
 
 
 
 
==Array Observatory==
 
Custom Array Observatory control elements for manage [[Array|Voyager array version]].
 
 
 
 
 
===Array Actions===
 
These commands manage multinode parallels actions for Array
 
 
 
[[File:DSArray.png]]
 
 
 
*'''Array Link''':  Link the Array establishing the communications between MASTER and SLAVE
 
*'''Array Unlink''':  Unlink the Array closing the communications between MASTER and SLAVE
 
*'''Array Setup Connect''':  Connect setup of each nodes in a parallelized way
 
**[[File:DSArrayConnect.png]]
 
*'''Array Disconnect''':  Disconnect setup of each nodes in a parallelized way
 
**[[File:DSArrayDisconnect.png]]
 
*'''Array Cooling''':  Cooling CCD camera of each nodes in a parallelized way
 
**[[File:DSArrayCooldown.png]]
 
*'''Array Warmup''':  Warmup CCD camera of each nodes in a parallelized way
 
**[[File:DSArrayWarmup.png]]
 
*'''Array Sequence''':  Run a Custom Array Sequence on the array
 
**[[File:DSArraySequence.png]]
 
 
 
 
 
===Node Actions===
 
These commands manage single node actions for Array
 
 
 
[[File:DSNodeActions.png]]
 
 
 
* '''Node Execute DragScript''':  Run a DragScript Self Contained with not interaction with DragScript Session WIndows in Voyager. In SLAVE nodes of the Array (not in MASTER). Action will wait the remote DragScript to end
 
** [[File:DSSelfContAction.png]]
 
** '''Node ID:''' ID of the SLAVE node where the DragScript will be executed
 
** '''DragScript Path&File:''' Path and Name or only Name of the DragScript to execute. If only name will be edited the dragscript will be searched in the default script directory of the Voyager SLAVE PC. If the field contains path and file name the specified path will be used, you must use the SLAVE PC path file system
 
 
 
* '''Node Open Flat Device Cover''': Open the Flat device cover on the Remote Array Node
 
** [[File:NFDOpen.png]]
 
** '''Node ID:''' ID of the SLAVE node where the DragScript will be executed
 
** '''Device ID:''' ID of the Flat Device to use (1 or 2)
 
* '''Node Close Flat Device Cover''': Close the Flat device cover on the Remote Array Node
 
** [[File:NFDClose.png]]
 
** '''Node ID:''' ID of the SLAVE node where the DragScript will be executed
 
** '''Device ID:''' ID of the Flat Device to use (1 or 2)
 
* '''Node Switch ON Light Flat Device:''' Switch ON Light of Flat device on the Remote Array Node
 
** [[File:NFDLightON.png]]
 
** '''Node ID:''' ID of the SLAVE node where the DragScript will be executed
 
** '''Device ID:''' ID of the Flat Device to use (1 or 2)
 
* '''Node Switch OFF Light Flat Device:''' Switch OFF Light of Flat device on the Remote Array Node
 
** [[File:NFDLightOFF.png]]
 
** '''Node ID:''' ID of the SLAVE node where the DragScript will be executed
 
** '''Device ID:''' ID of the Flat Device to use (1 or 2)
 
* '''Node Select Brightness Flat Device:''' Select Light Brightness level of Flat device on the Remote Array Node
 
** [[File:NFDSetBright.png]]
 
** '''Node ID:''' ID of the SLAVE node where the DragScript will be executed
 
** '''Device ID:''' ID of the Flat Device to use (1 or 2)
 
** '''Brightness:''' value to set of the light brightness on remote Flat device
 
* '''Node Execute DragScript ASYNC:'''  Run a DragScript Self Contained with not interaction with DragScript Session WIndows in Voyager. In SLAVE nodes of the Array (not in MASTER). Action <u>WILL NOT WAIT</u> the remote DragScript to end
 
**[[File:Immagineergergrgergerg.png]]
 
**'''Node ID:''' ID of the SLAVE node where the DragScript will be executed
 
**'''DragScript Path&File:''' Path and Name or only Name of the DragScript to execute. If only name will be edited the dragscript will be searched in the default script directory of the Voyager SLAVE PC. If the field contains path and file name the specified path will be used, you must use the SLAVE PC path file system
 
**{{Note|Attention !! Wrong of use of this block can damage your setup !!}}
 
* '''Node Abort Running Action:''' Abort any running action in the remote Node indicated
 
**[[File:Immaginer4g3wefwef.png]]
 
** '''Node ID:''' ID of the SLAVE node where the running Action will be aborted
 
**{{Note|Attention !! Wrong of use of this block can damage your setup !!}}
 
 
 
 
 
===Array Decisions===
 
These Block check Array status to take a decision
 
  
[[File:Immagineerweweewe.png]]
 
  
*'''DO IF ARRAY NODE FREE''':  Execute the blocks inside the DO IF Node only if there aren't any actions running in the remote node selected
+
As for the manual actions the data previosly stored in RoboOrbits database will be erased and replaced with the new ones.
**[[File:Immaginekikuik.png]]
 
** '''Node ID:''' ID of the SLAVE node where to check if status is no running actions
 
**{{Note|Attention !! Wrong of use of this block can damage your setup !!}}
 
  
 +
{{note|Please use these functions in a part of the DragScript outside astronomical night that cannot be interrupted by emergency events in order to avoid possible corruption of the RoboOrbits database due to premature interruption of the import process. It is recommended to use it during the day or at the end of the morning operations at the end of the night and before restarting the dragscript.}}
 
[[Category:DragScript]]
 
[[Category:DragScript]]
 
[[Category:All]]
 
[[Category:All]]
 
[[Category:Manual|Ld]]
 
[[Category:Manual|Ld]]

Latest revision as of 12:06, 1 June 2023

This DragScript category manage operation for RoboOrbits automata.

Orbits

This DragScript category manage the download and import process fro RoboOrbits Data.

Immagineyy.png

  • Download And Update ASTEROIDS Data: download from the URL defined in Common tab of Voyager Setup the asteroids data and import in RoboOrbits Database. This action can be a long one. Up to tens of minutes. Depends on your internet connection speed and on power of your PC processor
  • Download And Update COMETS Data: download from the URL defined in Common tab of Voyager Setup the comets data and import in RoboOrbits Database.


As for the manual actions the data previosly stored in RoboOrbits database will be erased and replaced with the new ones.

Important Note! Please use these functions in a part of the DragScript outside astronomical night that cannot be interrupted by emergency events in order to avoid possible corruption of the RoboOrbits database due to premature interruption of the import process. It is recommended to use it during the day or at the end of the morning operations at the end of the night and before restarting the dragscript.