Jump to content

Canada's top-tier Telescopes & Accessories
Be as specific as possible when reporting issues and *ALWAYS* include the full version number of the application you are using and your exact *CAMERA MODEL*
PLEASE READ ==> If you get a StructureMap or EdsInitializeSDK() error please RE-INSTALL before posting in the forum <==
  • 0
Sign in to follow this  
Riccardo.Sordo

Send command vb.net

Question

Hi!

 

I'm trying to create a FLAT capture program integrated with my observatory software.
Is the system for sending commands with short shutter speeds correct?

 BackyardTcpClient.SendCommand(String.Format("takepicture target:{0} duration:{1} iso:{2} quality:{3} exposures:{4} imagetype:{5} bin:{6}", "FLAT_" _
                                                    & date1.Day & "_" & date1.Month & "_" & date1.Year, "1/100", "100", "RAW", "3", "FLAT", bin))

 

 

this is because it seems to me that the flat is completely overexposed.

shutter speed is: 1/100 sec. for 100 ISO.

 

Best regards, Riccardo.

Share this post


Link to post
Share on other sites

14 answers to this question

Recommended Posts

  • 0

It is not clear from the API documentation whether the takepicrure command can take Tv exposures, but if it is supported perhaps you should use  a decimal number, for example, 0.01 rather than a string like "1/100" that is not a number.

I would also expect that if any of the arguments do not make sense, that the command would raise an exception rather than misinterpret the command.

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Riccardo.Sordo said:

I'm trying to create a FLAT capture program integrated with my observatory software.
Is the system for sending commands with short shutter speeds correct?

 BackyardTcpClient.SendCommand(String.Format("takepicture target:{0} duration:{1} iso:{2} quality:{3} exposures:{4} imagetype:{5} bin:{6}", "FLAT_" _
                                                    & date1.Day & "_" & date1.Month & "_" & date1.Year, "1/100", "100", "RAW", "3", "FLAT", bin))

You are sending invalid parameters.  As per the documentation these are the valid values for each parameters.

target:{name}

duration:{duration in seconds, default is 1}   <<<=== you must send the duration in seconds, not TV shutter speeds

iso:{100, 400, 800, 1600, default is 1600}

quality:{jpg, raw, default is jpg}

exposures:{number of images to take, default is 1}

imagetype:{1=preview, 0=capture, default is 1}  <<<=== you must send either 1 or 0, not FLAT.

 

Sadly the current API only accept seconds for the duration, not TV shutter speeds specifically.  You do bring up a good point however, perhaps TV shutter speeds should be added as a possibility.  Internally, BYE has converted the errornous "1/100" TV shutter speed to 1 second and this may be why your flat is overexposed.

Regards,

 

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, astroman133 said:

Just so that I understand...You seem to be saying that the current version of the API only does BULB exposures of 1 second or longer. Tv exposures, shorter than 1 second are not currently possible. Is that correct?

With the current API, it appears to be the case, yes.

I was just looking and the code and there is support for shutter speeds in there, but it looks like it is just missing the mapping from the API supplied parameter to the actual valid TV shutter value. Might be a simple 10 minute fix. If this is the case I'll fix that for the next release for sure.

Regards,

Share this post


Link to post
Share on other sites
  • 0

Well, this might already work after all.  Looking at the API code it looks like there's an undocumented parameter called shutter.

You need to use the shutter parameter instead of duration parameter.

target:{name}
duration:{duration in seconds, default is 1}
shutter:{any camera valid shutter speed, default is BULB}
iso:{100, 400, 800, 1600, default is 1600}
quality:{jpg, raw, default is jpg}
exposures:{number of images to take, default is 1}
imagetype:{1=preview, 0=capture, default is 1}


Examples:
“takepicture target:M33 duration:300 iso:800”
“takepicture duration:15 iso:1600”
“takepicture duration:15”
“takepicture shutter:1/100 iso:800”
“takepicture quality:raw iso:1600”
“takepicture target:M13 duration:300 iso:800 imagetype:0”
 

Share this post


Link to post
Share on other sites
  • 0

Thanks, that makes perfect sense. So, the argument for the shutter parameter can be any value that appears in the Shutter dropdown? Does it include 'AV-Flat' and 'PROGRAM' or are only the numeric values and BULB allowed?

Thanks!

Share this post


Link to post
Share on other sites
  • 0

 

Hi!, I was away on business. I tried the code with the indicated parameter but it always gives me 1 sec.

Takepicture shutter:1/100 iso:800”

 

  Private Sub CatturaBIASToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles CatturaBIASToolStripMenuItem.Click
        BackyardTcpClient.SendCommand(String.Format("takepicture shutter:1/100 iso:100"))
    End Sub

 

Share this post


Link to post
Share on other sites
  • 0
On 1/24/2020 at 5:12 PM, admin said:

You are sending invalid parameters.  As per the documentation these are the valid values for each parameters.

target:{name}

duration:{duration in seconds, default is 1}   <<<=== you must send the duration in seconds, not TV shutter speeds

iso:{100, 400, 800, 1600, default is 1600}

quality:{jpg, raw, default is jpg}

exposures:{number of images to take, default is 1}

imagetype:{1=preview, 0=capture, default is 1}  <<<=== you must send either 1 or 0, not FLAT.

 

Sadly the current API only accept seconds for the duration, not TV shutter speeds specifically.  You do bring up a good point however, perhaps TV shutter speeds should be added as a possibility.  Internally, BYE has converted the errornous "1/100" TV shutter speed to 1 second and this may be why your flat is overexposed.

Regards,

 

        'target:{name}
        'duration:{duration in seconds, default is 1}
        'iso:{100, 400, 800, 1600, default is 1600}
        'quality:{jpg, raw, default is jpg}
        'exposures:{number of images to take, default is 1}
        'imagetype:{ Preview, LIGHT, DARK, FLAT, BIAS, DARK_FLAT, default is
        'Preview}
        'Examples:
        '“takepicture target:M33 duration:300 iso:800”
        '“takepicture duration:15 iso:1600”
        '“takepicture duration:15”
        '“takepicture quality:raw iso:1600”

The parameters (which work) of the API documentation and the application are different from what you indicate!

Share this post


Link to post
Share on other sites
  • 0
    Private Sub CatturaFLATToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles CatturaFLATToolStripMenuItem.Click
        'target:{name}
        'duration:{duration in seconds, default is 1}
        'iso:{100, 400, 800, 1600, default is 1600}
        'quality:{jpg, raw, default is jpg}
        'exposures:{number of images to take, default is 1}
        'imagetype:{ Preview, LIGHT, DARK, FLAT, BIAS, DARK_FLAT, default is
        'Preview}
        'Examples:
        '“takepicture target:M33 duration:300 iso:800”
        '“takepicture duration:15 iso:1600”
        '“takepicture duration:15”
        '“takepicture quality:raw iso:1600”  
        Dim bin As Integer = 1
        Dim date1 As Date = Date.Now
        BackyardTcpClient.SendCommand(String.Format("takepicture target:{0} shutter:{1} iso:{2} quality:{3} exposures:{4} imagetype:{5} bin:{6}", "FLAT_" _
         & date1.Day & "_" & date1.Month & "_" & date1.Year, "1-100", "200", "raw", "1", "FLAT", bin))
    End Sub

 

...this code put above works perfectly with my program.

Shutter par 1/100 not works, Shutter par 1-100  works, 

Share this post


Link to post
Share on other sites
  • 0
Just now, Riccardo.Sordo said:

3.1.18 EOS version...

Thank you.  It looks like I may have forgotten to update the API documentation at some point. I'll look into it. Glad you got shutter 1-100 to work :)

Thank you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

This site uses cookies to offer your a better browsing experience. You can adjust your cookie settings. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies, our Privacy Policy, and our Terms of Use