Staff Assigned: Adam Robichaud Installing x64 ASCOM Drivers

Discussion in 'DL Imaging Drivers - Aluma, STC, StarChaser' started by Oscar Echeverri, Aug 24, 2023.

  1. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Hello.

    I seem to be unable to install the new x64 ASCOM drivers. I first installed the latest DLAPI drier, but get the error in the attached image when trying to install the ASCOM driver.

    This is a fresh Windows 11 installation FWIW
     

    Attached Files:

  2. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Managed to resolve my issue. SetupDLAPI.exe had installed the x86 MS Visual C++ Redistributables, but the x64 ASCOM drivers require the x64 version of the MS VC++ redistributables.. installed those, and then the ascom driver installed successfully.
     
  3. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Update --- now that it's installed, seems like the filter wheel driver is flaky at best....
    When trying to use NINA to switch filters, it fails to report success most of the time -- the wheel _does_ move the to the correct filter, but the driver fails and causes an error... here's the log from NINA when trying to switch filters:

    Code:
    2023-08-24T21:29:00.8084|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:00.8084|INFO|FilterWheelVM.cs|ChangeFilter|104|Moving to Filter R at Position 1
    2023-08-24T21:29:00.8122|TRACE|AscomDevice.cs|SetProperty|387|SET IFilterWheelFacadeProxy.Position: 1
    2023-08-24T21:29:01.3207|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:01.3228|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:01.3257|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:01.3257|ERROR|FilterWheelVM.cs|ChangeFilter|157|Failed to move filter wheel to filter R at position 1. Current reported position: 7
    2023-08-24T21:29:01.3267|ERROR|NotifyTaskCompletion.cs|WatchTaskAsync|35
    System.Exception: Failed to move filter wheel to filter R at position 2
       at NINA.WPF.Base.ViewModel.Equipment.FilterWheel.FilterWheelVM.<ChangeFilter>d__4.MoveNext() in C:\Projects\nina\NINA.Core.WPF\ViewModel\Equipment\FilterWheel\FilterWheelVM.cs:line 0
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at NINA.WPF.Base.ViewModel.Equipment.FilterWheel.FilterWheelVM.<>c__DisplayClass0_0.<<-ctor>b__5>d.MoveNext() in C:\Projects\nina\NINA.Core.WPF\ViewModel\Equipment\FilterWheel\FilterWheelVM.cs:line 65
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at NINA.Core.Utility.NotifyTaskCompletion`1.<WatchTaskAsync>d__5.MoveNext() in C:\Projects\nina\NINA.Core\Utility\NotifyTaskCompletion.cs:line 33
    2023-08-24T21:29:07.1256|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:07.1256|INFO|FilterWheelVM.cs|ChangeFilter|104|Moving to Filter G at Position 2
    2023-08-24T21:29:07.1277|TRACE|AscomDevice.cs|SetProperty|387|SET IFilterWheelFacadeProxy.Position: 2
    2023-08-24T21:29:07.6306|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:07.6367|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:07.6397|TRACE|AscomDevice.cs|GetProperty|333|GET IFilterWheelFacadeProxy.Position: 7
    2023-08-24T21:29:07.6397|ERROR|FilterWheelVM.cs|ChangeFilter|157|Failed to move filter wheel to filter G at position 2. Current reported position: 7
    2023-08-24T21:29:07.6407|ERROR|NotifyTaskCompletion.cs|WatchTaskAsync|35
    System.Exception: Failed to move filter wheel to filter G at position 3
       at NINA.WPF.Base.ViewModel.Equipment.FilterWheel.FilterWheelVM.<ChangeFilter>d__4.MoveNext() in C:\Projects\nina\NINA.Core.WPF\ViewModel\Equipment\FilterWheel\FilterWheelVM.cs:line 0
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at NINA.WPF.Base.ViewModel.Equipment.FilterWheel.FilterWheelVM.<>c__DisplayClass0_0.<<-ctor>b__5>d.MoveNext() in C:\Projects\nina\NINA.Core.WPF\ViewModel\Equipment\FilterWheel\FilterWheelVM.cs:line 65
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at NINA.Core.Utility.NotifyTaskCompletion`1.<WatchTaskAsync>d__5.MoveNext() in C:\Projects\nina\NINA.Core\Utility\NotifyTaskCompletion.cs:line 33
     
  4. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Anecdotally, it seems like larger index offsets succeed more often... like if I move from position 1 to position 7, it will succeed most of the time, but moving from position 1 to position 2 fails 90% of the time... maybe some sort of race condition? Judging from the NINA logs, it looks as if though NINA requests the FW to move to a position and then queries the FW position 3 times before giving up?

    FWIW, I've never run into this issue with my ZWO FilterWheel on my other rig
     
  5. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    What camera and filter wheel is it?
     
  6. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    It's an STC-7
     
  7. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    I'd like to try and reproduce the issue here.
    What Version of N.I.N.A. eg 2.2 ?
    Steps to reproduce?
     
  8. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Hey Colin, yep -- latest version of NINA
    latest version of the DLAPI and DL Ascom x64 drivers.
    Running v9 firmware on the STC-7

    steps to repro:
    1. Launch Nina
    2. Connect to filter wheel
    3. From the filter wheel section change filter from Position 1 to Position 2
    4. Then from position 2 to position 1
    5. Repeat 3 and 4 a few times, usually I get a failure first or 2nd try
     
  9. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    Can you help me figure out what "latest version of NINA" is?
    They have 2.2, 2.3 RC0001, and Version 3.0 Nightly #003 listed.
     
  10. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Yeah -- they have a few versions up in the air lol. 2.2.0.9001, which I think is deemed the latest stable version.
     
  11. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    Great thanks, I'll run some tests today.
     
  12. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    Ok, I think I see what you are talking about.
    It seems like NINA doesn't know that the filter wheel actually moved already, and gives the error like this:
    nina.png
    I'll see if I can figure out what is going on.
    Thanks for the report.
     
  13. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    More info: They made a code change in NINA from 2.1 to 2.2 that makes this behaviour show up.
    Instead of waiting a reasonable amount of time for the filter to change, it looks like maybe 0.5s later they are checking if it is in the new position already.
    I have to figure out if this is our issue.
    We'll look into this further.
     
  14. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    I've just confirmed that our driver definitely passes ASCOM Conform Universal testing.
    We would need the NINA people to look at this issue. Maybe together we can figure out what is going wrong.
    You can put them in touch with me. chaig (at) diffractionlimited (dot) com
     
  15. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Thanks Colin!
     
  16. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    Hi Oscar, Stefan at Nightime reached out.
     
  17. Oscar Echeverri

    Oscar Echeverri Cyanogen Customer

    Joined:
    Sep 2, 2020
    Messages:
    35
    Location:
    White Lake, Ontario
    Hey Colin, any update on this issue?
     
  18. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    Hi Oscar, so we think we know why N.I.N.A. is not happy with the filter wheel. Unlike versions prior to 2.2 which worked, they changed the way 2.2 handles filter wheels - it is checking to see if the filter wheel arrived at the destination; it didn't used to do this.
    I'm testing a possible fix from our developers, but it isn't quite working the way NINA 2.2 expects.
     
  19. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    7,962
    Location:
    Earth
    Hi Oscar, I sent you an email today with Beta which should solve the N.I.N.A. filter wheel issue.
     

Share This Page