Precise timing sub 1ms

Anything that doesn't fit into any of the other forums
Post Reply
RedArrow78
Posts: 7
Joined: Tue May 26, 2020 9:20 am

Precise timing sub 1ms

#1

Post by RedArrow78 »

Hello SharpCap Users,
I'm working on a project, and need very precise timing in the header of the FITS. I currently use a ZWO ASI294MC camera, which have a good resolution. I really need an accurate time in the header of the FITS. I set a Capture session wich lasts for 33 seconds, with a 1s exposure time and a 350 gain.
I have some interrogations:
-Does the time in the header corresponds to the beginning, the middle, the end of the exposition time? And how does SharpCap manage the time loss between the camera and SharpCap (USB timeloss, others??)
-I feel like Sharpcap sets the camera settings, and then, the camera sends a flux of images continuously. And then, i understand that SharpCap keeps only images that interest him. Am I right??
-if I purshase a timebox with a basler camera (with external trigger), will i be safe with my 1ms goal? And will this system work ? I mean, the timebox will send a triggerpulse to the camera. But the time shown in the header will be from what?? who build the FITS header? SharpCap or the camera?

I don't know if it's all clear. I understand that my english isn't perfect, and i'm sorry about that.
Thank you a lot for your help
Thibault
User avatar
admin
Site Admin
Posts: 17598
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Precise timing sub 1ms

#2

Post by admin »

Hi,

with the latest versions of SharpCap, the DATEOBS in the header of a fits file is the best approximation of the time that the frame started, but is almost certain wrong...

In general, can only get a timestamp at the point that the frame is delivered from camera software to SharpCap application. SharpCap will then subtract the length of the exposure from this time point to try and estimate when the frame started, but of course there are problems with this – we have no idea how long the frame was delayed inside the camera, how long it spent being transferred to the PC over the USB cable or how long it was processed inside the camera SDK before being delivered SharpCap.

There are two ways around this problem – firstly there's a camera model from QHY which has a built-in GPS system and with appropriate calibration should be able to provide data inside the image that gives the frame start/end points to at least microsecond accuracy. The other approach is to put some sort of accurate clock in view of the camera so that each frame records its own timestamp in the image itself. On a very basic level you could have something like a millisecond time feeding a 10 bit counter that would light up 10 LEDs in a row, giving you a binary readout time that is accurate to millisecond levels over about 1000 seconds before the counter wraps around.

Cheers, Robin
Post Reply