Search found 275 matches

by Forum_2017
11 Dec 2018, 16:56
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Hi, I'm 18 months late here, but I run an SQM-LU, and read it it using my own little program written in Interactive Data Language (IDL), he language of professional Astronomy. Here's how I connect to the COM port:- SQM_h=COMM_OPEN(SQM_COM,$ BAUD = 9600 ,$ DATA = 8,$ MODE = 3, $ PARITY = 'N',$ STOP =...
by Forum_2017
11 Dec 2018, 16:56
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Hi I can confirm the following script works based on the SP3 pre-release CRET$ = Serial.Connect(6,115200) if CRET$ = True Then Message ("Port 6 Connected.") else Message ("Port 6 NOT Connected.") endif Serial.Send("rx" + chr(13)) Pause(1) r$ = Serial.Receive$() Print(r$) Serial.Disconnect() Print("E...
by Forum_2017
11 Dec 2018, 16:55
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Fabio - yes I would be interested in the prerelease and will contact you by private message. Can I add that I have taken another tack which does not negate my interest in the port connection route; this involves reading a text file. I will post my script when I fine tune it - but basically it takes ...
by Forum_2017
11 Dec 2018, 16:55
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Yes, the option has been added to scripts today. It will be released with the Service Pack 3 next autumn. To receive a prerelease please contact me by email.
Fabio.
by Forum_2017
11 Dec 2018, 16:55
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Fabio,
The SQM runs at a baud of 115200, Is there a way to change AA6 *serial.send/receive to work at another baud rate?

Regards
by Forum_2017
11 Dec 2018, 16:54
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

If all else fails Keith and the simple solution of changing the baud rate within an AA6 script is not easy, I will write an exe that you can run using : System.Execute("scripts\Sqm.exe rx reply.txt") Bit like the PHD2 guiding interface. You could also mess about with the commands... sqmcmd = "ix" Sy...
by Forum_2017
11 Dec 2018, 16:54
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Hi all have tried all as requested and not got anywhere I think this maybe something to do with port settings - I had a reply from the unihedron guys the gist of which is below "It would be much better to have the Astorart script set the baud rate to 115200, because if the SQM is set to 9600, then o...
by Forum_2017
11 Dec 2018, 16:54
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

sub WaitForOutput() tx = 0 While rx = "" and tx < timeout rx = Serial.Recieve() Pause(1) tx = tx +1 End while End sub You need to wait for the reply to come back due to the time the internal chip takes to average the readings. So add a wait for reply subroutine like the above after sending the messa...
by Forum_2017
11 Dec 2018, 16:54
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Hi Thanks for the reply I will what you have suggested asap I think from a previous reply from the SQM guys that I cannot change the port settings but will investigate that and confirm I also think this is some info that the "port controller" manages the port settings but again it is not proven Onwa...
by Forum_2017
11 Dec 2018, 16:53
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Re: Read data from SQM-LU device

Hello, something I would try: 1) Connect to the hardware using a serial port terminal (for example: PuTTY) and verify the connection: https://www.youtube.com/watch?v=dO-BMOzNKcI 2) Place a Pause between .Send and .Receive (the pause after Connect is not needed). 3) Check if the hardware supports 960...
by Forum_2017
11 Dec 2018, 16:53
Forum: Scripts
Topic: Read data from SQM-LU device
Replies: 11
Views: 5328

Read data from SQM-LU device

Hi newbie here so gentle please. I have Astroart 6 with SP2 and using Camera Control 6 and 6.2 beta. I am on a steep learning curve with my newly aquired telescopes/mounts etc. As an aside (I used to work in Automation/MES in the pharmaceutical industry as a software developer - now retired) I thoug...
by Forum_2017
11 Dec 2018, 16:51
Forum: Scripts
Topic: Detecting daytime and nighttime
Replies: 1
Views: 3418

Re: Detecting daytime and nighttime

> when it's 15 degrees below the horizon then it's surely night.

Nope!

18 degrees below is the official start of astronomical darkness.

Civil, Nautical and Astronomical twilight are each 6 degrees, hence astronautical night starts at -18 degrees.

Andrew