Loading ...
Sorry, an error occurred while loading the content.

TrackingRates problem

Expand Messages
  • Michel Meunier
    Hello Peter, Now my axisrates seems to pass with succes your test (with the 0.9.3 version) but now I have a problem with the TrackingRates property. with a vbs
    Message 1 of 18 , Aug 1, 2005
    • 0 Attachment
      Hello Peter,

      Now my axisrates seems to pass with succes your test (with the 0.9.3
      version) but now I have a problem with the TrackingRates property.
      with a vbs script like this one all is ok:
      dim x
      Set x = CreateObject("MCMTII.Telescope")
      msgbox x.TrackingRates.count
      msgbox x.TrackingRates.item(1)
      msgbox x.TrackingRates.item(2)
      msgbox x.TrackingRates.item(3)
      msgbox x.TrackingRates.item(4)
      set x=nothing

      in my program the trackingrates is defined like that:

      function TTelescope.Get_TrackingRates: ITrackingRatesCol;
      var
      TrackingRates:TTrackingRatesCol;
      begin
      TrackingRates:=TTrackingRatesCol.Create;
      result:=TrackingRates;
      end;
      where TTrackingRatesCol is a collection of TrackingRate.

      with validator I get:

      "ASCOM Telescope Validator","0.9.3","(c)2004 by Peter Enzerink"
      "Validated","01/08/2005 10:28:50"
      "Problems","0"
      "Unknowns","5"
      "PlatformVersion","4.1"
      "Astro32.dll","True",""
      "AllowMoves",0,"Not all tests were run."
      "AllowParkUnpark",1,""
      "AllowSetPark",0,"Skipped Setpark."
      "Connected","Faux"
      ""
      "AlignmentMode","Polar","Optional Implemented",""
      "Altitude","0.0d","Optional Implemented",""
      "ApertureArea","0m²","Optional Implemented",""
      "ApertureDiameter","0m","Optional Implemented",""
      "AtHome","Faux","Implemented",""
      "AtPark","Faux","Implemented",""
      "Azimuth","0.0d","Optional Implemented",""
      "CanFindHome","Faux","Implemented",""
      "CanPark","Faux","Implemented",""
      "CanPulseGuide","Faux","Implemented",""
      "CanSetDeclinationRate","Faux","Implemented",""
      "CanSetGuideRates","Faux","Implemented",""
      "CanSetPark","Faux","Implemented",""
      "CanSetPierSide","Faux","Implemented",""
      "CanSetRightAscensionRate","Faux","Implemented",""
      "CanSetTracking","Faux","Implemented",""
      "CanSlew","Vrai","Implemented",""
      "CanSlewAltAz","Faux","Implemented",""
      "CanSlewAltAzAsync","Faux","Implemented",""
      "CanSlewAsync","Vrai","Implemented",""
      "CanSync","Vrai","Implemented",""
      "CanSyncAltAz","Faux","Implemented",""
      "CanUnpark","Faux","Implemented",""
      "Connected","Faux","Implemented","ISSUE: Many MethProps will fail to
      return a value and many MethProps will not be tested if Telescope is not
      Connected."
      "Declination","-89.194d","Implemented",""
      "DeclinationRate","0.0s","Optional Implemented",""
      "Description","","Implemented",""
      "DoesRefraction","Faux","Optional Implemented",""
      "DriverInfo","Driver ASCOM for MCMTII copyright
      M.Meunier","Implemented","Driver ASCOM for MCMTII copyright M.Meunier"
      "DriverVersion","0.1","Implemented",""
      "EquatorialSystem","LocalTopocentric","Implemented",""
      "FocalLength","0.0d","Optional Implemented",""
      "GuideRateDeclination","0.0s","Optional Implemented",""
      "GuideRateRightAscension","0.0s","Optional Implemented",""
      "InterfaceVersion","2","Implemented",""
      "IsPulseGuiding","Faux","Optional Implemented",""
      "Name","MCMTII","Implemented",""
      "RightAscension","18.962h","Implemented",""
      "RightAscensionRate","0.0s","Optional Implemented",""
      "SideOfPier","East","Optional Implemented",""
      "SiderealTime","5.147h","Implemented",""
      "SiteElevation","0m","Optional Implemented",""
      "SiteLatitude","0.0d","Optional Implemented",""
      "SiteLongitude","0.0d","Optional Implemented",""
      "Slewing","Faux","Optional Implemented",""
      "SlewSettleTime","0s","Optional Implemented",""
      "TargetDeclination","0.0d","Unknown Error","ERROR: MCMTII.Telescope
      (-2147220479) Target declination not available"
      "TargetRightAscension","0.0h","Unknown Error","ERROR: MCMTII.Telescope
      (-2147220479) Target right ascension not available"
      "Tracking","Vrai","Not Available",""
      "TrackingRate","Sidereal","Optional Implemented",""
      "TrackingRates","Unknown","Unknown Error","ERROR: Validator ( 91)
      Variable objet ou variable bloc With non définie"
      "UTCDate","01/08/2005 08:28:38","Implemented","00:00:00"
      ""
      "AbortSlew","Not Available","Not Available",""
      "AxisRates","axisSecondary:[3]
      1.5458957172702E-03-1.5458957172702E-03,0.100000435236769-0.100000435236769,2.00000087047354-2.00000087047354","Implemented","axisPrimary:[3]
      0.005222578125-0.005222578125,0.1-0.1,2-2 axisSecondary:[3]
      1.5458957172702E-03-1.5458957172702E-03,0.100000435236769-0.100000435236769,2.00000087047354-2.00000087047354"
      "CanMoveAxis","Primary Secondary ","Implemented","Primary Secondary "
      "CommandBlind","Not Available","Not Available",""
      "CommandBool","Not Available","Not Available",""
      "CommandString","Not Available","Not Available",""
      "DestinationSideOfPier","Unknown","Optional Not Implemented",""
      "FindHome","n/a","n/a",""
      "MoveAxis","Not Available","Not Available",""
      "Park","n/a","n/a",""
      "PulseGuide","n/a","n/a",""
      "SetPark","n/a","n/a","ERROR: ProgCtrl ( 380) Invalid property value"
      "SlewToAltAz","Not Available","Not Available",""
      "SlewToAltAzAsync","Not Available","Not Available",""
      "SlewToCoordinates","Not Available","Not Available",""
      "SlewToCoordinatesAsync","Not Available","Not Available",""
      "SlewToTarget","Not Available","Not Available",""
      "SlewToTargetAsync","Not Available","Not Available",""
      "SyncToAltAz","Not Available","Not Available",""
      "SyncToCoordinates","Not Available","Not Available",""
      "SyncToTarget","Not Available","Not Available",""
      "Unpark","n/a","n/a",""

      I can't see where is the problem.

      Michel
    • Michel Meunier
      oups sorry it was for Peter Enzerink
      Message 2 of 18 , Aug 1, 2005
      • 0 Attachment
        oups sorry it was for Peter Enzerink
      • Dan Gray
        Hi all, I ve been working on an ASCOM driver for my servo controller, and now I am ready to have a couple of beta testers use it. I used C# and have it
        Message 3 of 18 , Aug 1, 2005
        • 0 Attachment
          Hi all,
          I've been working on an ASCOM driver for my servo controller, and now I am ready to have a couple of beta testers use it.  I used C# and have it working on my laptop just fine. 

          I then tried to install it on my desktop machine, and I get the error message: "Failed to load driver: Automation error"

          Since C# is managed I know I have to register it for COM, so on my laptop, I ran the following RegAsm.exe command:
          C:\WINNT\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe SiTech.dll -codebase -regfile SiTech

          This created a file named SiTech.reg, with a bunch of entries in it, simular to this:

          "
          REGEDIT4

          [HKEY_CLASSES_ROOT\Record\{093A9860-FF52-3071-B797-1152BF52FCE1}\1.0.2028.40465]
          "Class"="JH.CommBase.CommBase+Parity"
          "Assembly"="SiTech, Version=1.0.2028.40465, Culture=neutral, PublicKeyToken=null"
          "CodeBase"="file:///C:/Program Files/Common Files/ASCOM/Telescope/SiTech.DLL"

          "


          There are many more entries, for every public method I have.

          I then took this file to my desktop machine, and "ran" it, which created all the entries in the registry, but I still get the error message above.

          I manually placed the
          [HKEY_LOCAL_MACHINE\SOFTWARE\ASCOM\Telescope Drivers\SiTech.Telescope]
          @="SiTech"

          So the chooser seems to "know" about the SiTech driver.

          Any help would be greatly appreciatted!!!!

          Dan Gray

        • Bob Denny
          Dan -- I suggest you re-post by starting a new thread instead of replying. I almost missed your note because you created it by replying to the crazy thread
          Message 4 of 18 , Aug 1, 2005
          • 0 Attachment
            Dan --

            I suggest you re-post by starting a new thread instead of replying. I
            almost missed your note because you created it by replying to the crazy
            thread that already has three separate discussions embedded! I'm going to
            post a separate message regarding thread respect.

            Meanwhile, I am not that familiar with the gutz of what .NET puts into the
            registry when registering for COM, but what you did with RegAsm should have
            done it. I rely on the built-in "deployment" projects to build the WIndows
            Installer packages, and this stuff is totally hidden. YOu just tell it to
            register an assembly for COM when installed (and it usually picks this up
            from the assembly build settings anyway!).

            -- Bob
          • Tim Long
            You can download the Digital Dome Works driver (which includes C# source code) from my web site. The web site also has MSDN style developer documentation. Look
            Message 5 of 18 , Aug 2, 2005
            • 0 Attachment

              You can download the Digital Dome Works driver (which includes C# source code) from my web site. The web site also has MSDN style developer documentation. Look for a class called RegisterCOM. Lose that class as a customer installer action to register my assemblies on the target machine.

               

              By the way _ I don’t recommend adding your driver profile to the Ascom registry directly. Use the Profile. Register method (see helper documentation).

               

              ~ Tim Long

              http://syd.tigranetworks.co.uk

              http://syd.tigranetworks.co.uk/DDW/Default.aspx

              http://syd.tigranetworks.co.uk/Developer/DDW/NDoc/index.html

               

               

               

               


              From: ASCOM-Talk@yahoogroups.com [mailto:ASCOM-Talk@yahoogroups.com] On Behalf Of Dan Gray
              Sent: 01 August 2005 23:11
              To: ASCOM-Talk@yahoogroups.com
              Subject: [ASCOM] NEED HELP! Registering for COM

               

              Hi all,
              I've been working on an ASCOM driver for my servo controller, and now I am ready to have a couple of beta testers use it.  I used C# and have it working on my laptop just fine. 

              I then tried to install it on my desktop machine, and I get the error message: "Failed to load driver: Automation error"

              Since C# is managed I know I have to register it for COM, so on my laptop, I ran the following RegAsm.exe command:
              C:\WINNT\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe SiTech.dll -codebase -regfile SiTech

              This created a file named SiTech.reg, with a bunch of entries in it, simular to this:

              "
              REGEDIT4

              [HKEY_CLASSES_ROOT\Record\{093A9860-FF52-3071-B797-1152BF52FCE1}\1.0.2028.40465]
              "Class"="JH.CommBase.CommBase+Parity"
              "Assembly"="SiTech, Version=1.0.2028.40465, Culture=neutral, PublicKeyToken=null"
              "CodeBase"="file:///C:/Program Files/Common Files/ASCOM/Telescope/SiTech.DLL"

              "


              There are many more entries, for every public method I have.

              I then took this file to my desktop machine, and "ran" it, which created all the entries in the registry, but I still get the error message above.

              I manually placed the
              [HKEY_LOCAL_MACHINE\SOFTWARE\ASCOM\Telescope Drivers\SiTech.Telescope]
              @="SiTech"

              So the chooser seems to "know" about the SiTech driver.

              Any help would be greatly appreciatted!!!!

              Dan Gray


            Your message has been successfully submitted and would be delivered to recipients shortly.