When I execute the following command:
SharpCap.SelectedCamera.CaptureSingleFrameTo("c:\test.fits")
I get the error message:
Path must be an absolute path
Not sure why I get this message.
Thank you.
Dennis
CaptureSingleFrameTo error
- admin
- Site Admin
- Posts: 13330
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: CaptureSingleFrameTo error
Hi,
I think that the python language is interpreting 'c:\test.fits' as 'c:<tab>est.fits' since '\t' is the way to put a tab in a python string. Try 'c:\\test.fits' - I think that's the right way to do it.
cheers,
Robin
I think that the python language is interpreting 'c:\test.fits' as 'c:<tab>est.fits' since '\t' is the way to put a tab in a python string. Try 'c:\\test.fits' - I think that's the right way to do it.
cheers,
Robin
Re: CaptureSingleFrameTo error
Hi Robin,
Actually, I found that if "/" is used instead of "\", it works - must be a Windows file naming thing.
Thanks anyway for your response.
Dennis
Actually, I found that if "/" is used instead of "\", it works - must be a Windows file naming thing.
Thanks anyway for your response.
Dennis
Re: CaptureSingleFrameTo error
Hi Robin,
BTW: your suggestion works as well.
Dennis
BTW: your suggestion works as well.
Dennis