varenius / salsa

Code developed for the 2.3m radio telescopes SALSA in Onsala, Sweden
MIT License
16 stars 6 forks source link

Write and include python/DMC program to count cogs in az and el #12

Closed varenius closed 3 years ago

varenius commented 9 years ago

It would be convenient to have a program, in e.g. Python, which uploads and runs a DMC code on the RIO to automatically count the number of cogs. Sketch of this program:

Connect to RIO. Download any code currently there to a file, save it with timestamp and IP. Then, abort all running processes and replace memory code with "counter" DMC code, permanent burning not necessary. The counter code should track automatically the cog variations, like the SALS Acode, but not automatically reset the counters. The python code starts the counting loops in the DMC code. The python code then starts motors to reset both alaz (going in negative direction). Python code checks every second or so if telescope is stuck in some axis, meaning it is done moving and terminate motor, and then reset this counter. When both counters have been reset, the python code starts the movement in the positive direction (optional only one axis). The DMC code will now count the cogs. The python code checks every second if telescope is stuck, meaning it is done. When it is, it get's the counter value by "MG" command and stores in an output logfile.

varenius commented 3 years ago

No longer relevant, because we switched to MD01 in #43.