Sensor analysis with script problem

Discussions on extending SharpCap using the built in Python scripting functionality
elythomaslumber
Posts: 8
Joined: Fri Feb 04, 2022 8:25 am

Sensor analysis with script problem

#1

Post by elythomaslumber »

I've seen a YT-video where someone uses a script for investigation of a certain gain range.
The anylysis is running well.
The sweet spot seems to be around GAIN 251. So I would like to investigate the range with:
SharpCap.SelectedCamera.SetGainsOfInterestForSensorAnalysis([200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350])

Unfortunately the script is not recognized during execution of the sensor analysis.

After that I tried to use the some gain values which are used regulary by Sharpcap:
SharpCap.SelectedCamera.SetGainsOfInterestForSensorAnalysis([100,158,251,398])

I use the latest version of Sharpcap (64Bit) on WIN10 PC. The camera is connected, pictures are taken and after that I dropped in the script.

Camera is an OMEGON veTEC533c (OEM Touptek). Only the ASCOM driver from Touptek will work with the sensor analysis. The native drivers as well as the Omegon ASCOM driver will not work with the analysis feature.

Question is, why does it not work? Does the camera need to have a specific feature?

Regards
Hardy
elythomaslumber
Posts: 8
Joined: Fri Feb 04, 2022 8:25 am

Re: Sensor analysis with script problem

#2

Post by elythomaslumber »

I forgot to say that I have the free version which seems to be older than the current PRO version.
Could it be that there is the difference?

My version is 4.0.8395.0 and the version which was used in the video is the PRO 4.0.8532

UPDATE:
updtated to the latest version 4.0.8655.0 and no change...
Last edited by elythomaslumber on Fri Feb 04, 2022 4:06 pm, edited 1 time in total.
User avatar
admin
Site Admin
Posts: 13306
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sensor analysis with script problem

#3

Post by admin »

Hi,

there was a bug in earlier versions of 4.0 that meant that the additional gains were ignored for some cameras. I think this is what is happening for you. Try updating to the very latest from the download page and see if that works.

cheers,

Robin
elythomaslumber
Posts: 8
Joined: Fri Feb 04, 2022 8:25 am

Re: Sensor analysis with script problem

#4

Post by elythomaslumber »

Hi Robert,
thanks for your feedback!

Meanwhile I have update to 4.0.8655.0 64-Bit but still the same result. The generic sensor analysis is working with both ASCOM drivers (OMEGON and Touptek) for my OMEGON veTEC533c but the script is still ignored:
SharpCap.SelectedCamera.SetGainsOfInterestForSensorAnalysis([200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350])

I tested with the ASCOM Touptek driver for this camera (ATR3CMOS09000KPA), where I can select HGC and LGC. Just for information, the OMEGON driver does not allow to select the mode. Seems it is running in the LGC mode. The native drivers are not supported by SharpCap with the sensor analysis feature.

After that I uninstalled the 64Bit version and installed the same release as 32Bit version, but got the same result. The script will not be used.

Regards,
Hardy
Rainer
Posts: 3
Joined: Sun Feb 24, 2019 4:22 pm

Re: Sensor analysis with script problem

#5

Post by Rainer »

Hi,
i test the script from Daniel Nimmervoll (Austria) with my QHY 268C. I used the newest version of sharpcap (64bit) but it doesen´t work.

regards
Rainer
User avatar
admin
Site Admin
Posts: 13306
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sensor analysis with script problem

#6

Post by admin »

Hi,

if you are still having a problem with this in the latest SharpCap, please send me the exact script that you are using and the SharpCap log that includes the sensor analysis procedure happening - I will investigate further. I did try this with an ASCOM driver yesterday before replying and it seemed that my custom gains were being used.

cheers,

Robin
elythomaslumber
Posts: 8
Joined: Fri Feb 04, 2022 8:25 am

Re: Sensor analysis with script problem

#7

Post by elythomaslumber »

Hi Robert,
attached you will find the LOG ans some additional info.
Hope it helps
Regards,
Hardy
Attachments
Camera OMEGON veTEC533c.pdf
(211.01 KiB) Downloaded 85 times
Log_2022-02-05T15_29_08-9204.zip
(638.56 KiB) Downloaded 71 times
User avatar
admin
Site Admin
Posts: 13306
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sensor analysis with script problem

#8

Post by admin »

Ah, OK, thanks. I think I have found the problem, which was simply a bit of incorrect logic for linear gain cameras that stopped the gains of interest being considered. I have fixed and the new version will be available on Monday.

cheers,

Robin
Rainer
Posts: 3
Joined: Sun Feb 24, 2019 4:22 pm

Re: Sensor analysis with script problem

#9

Post by Rainer »

Hi Robin,
I have now performed the sensor analysis on my QHY 268C again with the latest sharpcap version (8667). I have used the script from Daniel Nimmervoll.

SharpCap.SelectedCamera.SetGainsOfInterestForSensorAnalysis([51,52,53,54,55,56,57,58,59])

But again, the interesting range between gain 50 and 60 was not resolved.
The log file is attached.
Regards
Rainer
Attachments
Log_2022-02-07T16_03_12-14976.log
(180.95 KiB) Downloaded 69 times
elythomaslumber
Posts: 8
Joined: Fri Feb 04, 2022 8:25 am

Re: Sensor analysis with script problem

#10

Post by elythomaslumber »

I just tested with the ASCOM driver from Touptek the OMEGON veTEC533c and here it works now!

SharpCap.SelectedCamera.SetGainsOfInterestForSensorAnalysis([200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350])
and
SharpCap.SelectedCamera.SetGainsOfInterestForSensorAnalysis([218,219,220,221,22,224,225])

Thanks a lot for the fast solution! Please notice the message from Rainer. He has still the problem with his QHY.

Regards
Hardy
Attachments
veTEC533c_LCG_uncooled_individual-2.jpg
veTEC533c_LCG_uncooled_individual-2.jpg (148.63 KiB) Viewed 4505 times
veTEC533c_LCG_uncooled_individual-1.jpg
veTEC533c_LCG_uncooled_individual-1.jpg (289.43 KiB) Viewed 4510 times
Post Reply