Programming the cooler in Python
Posted: Sun Jan 21, 2024 2:37 am
I'm working through some of the SharpCap Python commands and hit a snag with how to control the cooler.
The commands that I'm attempting to work with are CoolerOnOff and CoolerPower.
For CoolerOnOff there's this cryptic command "cooler = SharpCap.SelectedCamera.Controls.Find(lambda x: x.Name == "Cooler")"in the command cheatsheet, but no explanation oh how to use it.
Now I know that lambda is a temporary command that goes away after it's used, but what is the rest? Is that supposed to be the path to wherever the cooler function is for the camera that I'm using or something else? My camera is a QHY163M and I do have the QHY SDK, however, I'm not finding any sort of cooler program.
For CoolerPower, I'm not sure how it's supposed to be used. I'd like to just display the number, but if I run the command as a print statement, it returns None.
Thanks for the help in advance!
The commands that I'm attempting to work with are CoolerOnOff and CoolerPower.
For CoolerOnOff there's this cryptic command "cooler = SharpCap.SelectedCamera.Controls.Find(lambda x: x.Name == "Cooler")"in the command cheatsheet, but no explanation oh how to use it.
Now I know that lambda is a temporary command that goes away after it's used, but what is the rest? Is that supposed to be the path to wherever the cooler function is for the camera that I'm using or something else? My camera is a QHY163M and I do have the QHY SDK, however, I'm not finding any sort of cooler program.
For CoolerPower, I'm not sure how it's supposed to be used. I'd like to just display the number, but if I run the command as a print statement, it returns None.
Thanks for the help in advance!