Search found 149 matches

by lowenthalm
Mon Apr 22, 2024 7:20 pm
Forum: How do I?
Topic: Passing parameters to Python scripts from sequences
Replies: 1
Views: 62

Passing parameters to Python scripts from sequences

There doesn't seem to be anyway to pass a command line parameter to a python script that is called from a SharpCap sequence. I even tried quoting the path to the script in the sequence and that added a parameter, but SC just treats the whole thing including quotes as the path, so it fails. The only ...
by lowenthalm
Mon Apr 22, 2024 6:20 pm
Forum: Bug Reports
Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Replies: 9
Views: 635

Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0

Thanks! I have been scouring through my scripts, and found a few more missing objects I missed in my last post: SharpCap.LiveStacking.SaveRawFrames = SharpCap.LiveStacking.SaveRawFrames.WhileNotPausedOrDithering SharpCap.LiveStacking.SaveRawFrames = 0 and SharpCap.LiveStacking.GetFilenameForSaveWith...
by lowenthalm
Mon Apr 22, 2024 4:19 am
Forum: Bug Reports
Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Replies: 9
Views: 635

Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0

It appears that the assignment: SharpCap.Focusers.SelectedFocuser.Position = new_position works as a replacement for Move( pos ). I believe I may have tried to assign to the focuser field .value, which maybe doesn't always work. Luckily, it turns out I had the use of Move localized to one function s...
by lowenthalm
Fri Apr 19, 2024 9:28 pm
Forum: Bug Reports
Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Replies: 9
Views: 635

Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0

Thanks Robin! In some cases of accessing controls, the value works fine, but Bin is some sort of strange object that requires casting to make it useable. I was wondering whether there might be cameras with asymmetric binning that would make a single integer Bin value problematic, but I couldn't imag...
by lowenthalm
Thu Apr 18, 2024 5:10 pm
Forum: Bug Reports
Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Replies: 9
Views: 635

Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0

I found the bin BinFactor when I started searching for a fix, but it seemed to be the pixel area of the bin, not the bin value. This looked like something for internal use and it also seemed pretty weird in my code to check if the bin was 2 by checking to see if BinFactor was 4. I thought maybe you ...
by lowenthalm
Thu Apr 18, 2024 5:31 am
Forum: Bug Reports
Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Replies: 9
Views: 635

My Python scripts broke between 4.1.11137.0 and 4.1.12025.0

So I have a several scripts that access various controls, such as binning and the focuser controls, etc. These all worked fine under version 4.1.11137.0 in late October 2023 (same windows 10 installation as I have now, but there have been a few security updates since then, I presume). I finally got ...
by lowenthalm
Tue Oct 03, 2023 12:44 am
Forum: SharpCap Beta Testing Forum
Topic: Some missing modulo math in sequences!
Replies: 1
Views: 5643

Some missing modulo math in sequences!

I was running a sequence a couple of days ago using Version 4.1.1013.0 (9/4/2023) and ran into an interesting issue. I was using the following code in a RA scanning focus test I was running. SEQUENCE ... MOUNT OFFSET 4 0 .... END SEQUENCE The script had worked just fine a while back and suddenly sta...
by lowenthalm
Wed Sep 20, 2023 4:25 am
Forum: Scripting
Topic: Can periodic Python tasks be installed?
Replies: 1
Views: 5864

Can periodic Python tasks be installed?

I want to record camera cooler behavior periodically, probably every 30 seconds or so. Is there a way of installing Python script or function object that is called periodically?
by lowenthalm
Mon Sep 11, 2023 3:18 am
Forum: SharpCap Beta Testing Forum
Topic: Capturing Flats in Sequence and dark flats
Replies: 1
Views: 5687

Capturing Flats in Sequence and dark flats

I noticed recently that there is a sequence step for capturing flats with bias frames, but none for capturing flats with dark flats, which I find works much better. Would this something that could be added in? I see the can of worms involving selecting filters or asking to cover the scope and so on,...
by lowenthalm
Mon Sep 11, 2023 3:10 am
Forum: SharpCap Beta Testing Forum
Topic: Suggestion for longer stabilization time with GOTO Image
Replies: 4
Views: 6233

Re: Suggestion for longer stabilization time with GOTO Image

I just identified this issue when running a sequence. When you use goto image in a sequence it doesn't follow-up with a plate solve to center the target. You have to call it in the next sequence step. However, since the mount hasn't stabilized it gets a randomly offset position to center on, so the ...