From 45acfb0d29a732b50c76e1acd2f484eae4c7d6ad Mon Sep 17 00:00:00 2001 From: bparks13 Date: Fri, 31 Oct 2025 10:42:50 -0400 Subject: [PATCH 1/2] Add basic troubleshooting step when lock cannot be acquired --- OpenEphys.Onix1/ConfigurePortController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenEphys.Onix1/ConfigurePortController.cs b/OpenEphys.Onix1/ConfigurePortController.cs index 0bad98f8..9d31dcff 100644 --- a/OpenEphys.Onix1/ConfigurePortController.cs +++ b/OpenEphys.Onix1/ConfigurePortController.cs @@ -84,8 +84,9 @@ public override IObservable Process(IObservable source .GetCustomAttribute()? .Description ?? "Address " + deviceAddress.ToString(); var message = portVoltage.Requested.HasValue ? - $"Unable to acquire communication lock on {portString}" : - $"Unable to acquire communication lock on {portString}. You may need to manually specify a PortVoltage greater than {PortVoltage.Applied} volts, the maximum automatic value for this device."; + $"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on." : + $"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on." + + $"\n\nYou may need to manually specify a PortVoltage greater than {PortVoltage.Applied} volts, the maximum automatic value for this device."; dispose(); throw new InvalidOperationException(message); From ed67822c53962892f67b6f0e63e92444c42696e2 Mon Sep 17 00:00:00 2001 From: bparks13 Date: Mon, 3 Nov 2025 14:06:06 -0500 Subject: [PATCH 2/2] Indicate that manually specifying voltage is not the first step --- OpenEphys.Onix1/ConfigurePortController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenEphys.Onix1/ConfigurePortController.cs b/OpenEphys.Onix1/ConfigurePortController.cs index 9d31dcff..de1a7742 100644 --- a/OpenEphys.Onix1/ConfigurePortController.cs +++ b/OpenEphys.Onix1/ConfigurePortController.cs @@ -86,7 +86,7 @@ public override IObservable Process(IObservable source var message = portVoltage.Requested.HasValue ? $"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on." : $"Unable to acquire communication lock on {portString}. Confirm the headstage port is turned on." - + $"\n\nYou may need to manually specify a PortVoltage greater than {PortVoltage.Applied} volts, the maximum automatic value for this device."; + + $"\n\nIf the problem persists, you may need to manually specify a PortVoltage greater than {PortVoltage.Applied} volts, the maximum automatic value for this device."; dispose(); throw new InvalidOperationException(message);