Allow setting the external command sensitivity
Opened this issue · 1 comments
From https://aiephys.slack.com/archives/C06P3MYEV6H/p1715876746135019:
Yesterday, while running adaptive, we ran into an issue where the maximum current injection for the given gain settings was exceeded. Naturally, we got the low-level error message to check the scaling/gain settings. I worked around the issue by stopping acquisition, changing the MCC command gain, syncing mies in the hardware tab, and restarting the stimset. However, in the future I would prefer to manage this within the adaptive suprathreshold analysis function.
Ideally, the analysis function would change the gain, but MCC XOP doesn't support this. Do you know if the API does?
A fallback option is to have the analysis function give the maximal current injection at the given gain and stop, maybe that's enough to pass the set, if not, give the user the chance to change the gain when they continue to use the existing data from the previous attempt.
Can you think of any other options?
Which gain setting are we speaking of?
Is it the primary/secondary gain from here?
These are already exposed by the MCC XOP and also included in AI_SendToAmp since daddd56 (AI_SendToAmp: Add some more MCC functions, 2022-04-05).
So we can automatically adjust them if needed.
Or are we speaking about the external command sensitivity?
This one we can query using AxonTelegraphAGetDataStruct, ExtCmdSens, and are already storing in the labnotebook.
I could not find them being settable from AxMultiClampMsg.h.
From my limited understandind and testing it is the external command sensitivity.
Tim will ask Molecular Devices if they can add it.