Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions OpenEphys.Onix1/ConfigurePortController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ public override IObservable<ContextTask> Process(IObservable<ContextTask> source
.GetCustomAttribute<DescriptionAttribute>()?
.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.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wary to recommend applying a higher voltage than the maximum automatic value without caveats about how this should only need to be done in experiments that involve extra long/thin wires or something like that. But this might require more explanation than what we'd want in an exception dialog or whateva.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. It's a fine line between being informative enough and too verbose. And it's unfortunate that we cannot add working links to the dialog, so we cannot just link to an explanation website.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we need to add a link so that we can move the nuance from the pop-up to a web browser, I can create a custom message box with a LinkLabel so we can link out to the documentation. That might be outside the scope of this current issue, but we can move the discussion to a new issue and work out the specifics there

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, this message is being passed up to the Bonsai exception handler. Unable to create a custom message box


dispose();
throw new InvalidOperationException(message);
Expand Down