Timestamping function, frame limit and auto exposure
Posted: Fri May 29, 2020 1:48 pm
Hello there,
I have tree different question concerning scripting.
I would like to set through the script the timestamped frame on.I didn' find any function for that.
for camera controls this time, i'm not able to set a frame limit in my script.
And finally, for the exposure, i'm able to set the auto esposure mode off, and set manually an expousure time. But, as soon as i begin a capture the auto exposure mode switch back on ! I don' get it.
Here is my code :
import time
import os
SharpCap.Settings.CaptureFolder = "C:\Users\share\Documents\Thibault SharpCap" #assign the folder where captures are saved
SharpCap.SelectedCamera = SharpCap.Cameras.Find( lambda x:x.DeviceName == "ZWO ASI294MC") #Connect the camera to the software
SharpCap.SelectedCamera.Controls.OutputFormat.Value = "TIFF files (*.tif)" #set the output format of capture
SharpCap.SelectedCamera.Controls.Exposure.Automatic = False #Set the exposure to manual (bollean)
SharpCap.SelectedCamera.Controls.Exposure.Value=0.5 #set the exposure time (in ms)
SharpCap.SelectedCamera.Controls.Gain.Automatic = False #Set the gain setting to manual (bollean)
SharpCap.SelectedCamera.Controls.Gain.Value = 25 # Set a specific gain value
if (SharpCap.SelectedCamera.Controls.Exposure.AutoAvailable):
SharpCap.SelectedCamera.Controls.Exposure.Automatic = True
if True:
SharpCap.SelectedCamera.PrepareToCapture()
SharpCap.SelectedCamera.RunCapture()
time.sleep(10)
SharpCap.SelectedCamera.StopCapture()
time.sleep(15)
Thank you very much for your help
I have tree different question concerning scripting.
I would like to set through the script the timestamped frame on.I didn' find any function for that.
for camera controls this time, i'm not able to set a frame limit in my script.
And finally, for the exposure, i'm able to set the auto esposure mode off, and set manually an expousure time. But, as soon as i begin a capture the auto exposure mode switch back on ! I don' get it.
Here is my code :
import time
import os
SharpCap.Settings.CaptureFolder = "C:\Users\share\Documents\Thibault SharpCap" #assign the folder where captures are saved
SharpCap.SelectedCamera = SharpCap.Cameras.Find( lambda x:x.DeviceName == "ZWO ASI294MC") #Connect the camera to the software
SharpCap.SelectedCamera.Controls.OutputFormat.Value = "TIFF files (*.tif)" #set the output format of capture
SharpCap.SelectedCamera.Controls.Exposure.Automatic = False #Set the exposure to manual (bollean)
SharpCap.SelectedCamera.Controls.Exposure.Value=0.5 #set the exposure time (in ms)
SharpCap.SelectedCamera.Controls.Gain.Automatic = False #Set the gain setting to manual (bollean)
SharpCap.SelectedCamera.Controls.Gain.Value = 25 # Set a specific gain value
if (SharpCap.SelectedCamera.Controls.Exposure.AutoAvailable):
SharpCap.SelectedCamera.Controls.Exposure.Automatic = True
if True:
SharpCap.SelectedCamera.PrepareToCapture()
SharpCap.SelectedCamera.RunCapture()
time.sleep(10)
SharpCap.SelectedCamera.StopCapture()
time.sleep(15)
Thank you very much for your help