Open t-b opened 1 year ago
@t-b sorry for the late response here but I have uploaded a few experiments from the above list to your server and they are in the folder called /issue-1741. Let me know if you would like me to upload any additional files
Thanks for the uploaded experiments. I've looked into them and found what I expected.
There are assertion messages like
!!! Assertion FAILED !!!
Message: "The control check_Settings_TP_SaveTP in the panel ITC18USB_Dev_0 is disabled. The control state cannot be changed when disabled."
Please provide the following information if you contact the MIES developers:
################################
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stacktrace:
PGC_SetAndActivateControlVar(...)#L133 [MIES_ProgrammaticGUIControl.ipf]
PGC_SetAndActivateControl(...)#L202 [MIES_ProgrammaticGUIControl.ipf]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Time: 2023-03-30T10:24:48-07:00
Locked device: [ITC18USB_Dev_0]
Current sweep: [10]
DAQ: [DAQ_BG_MULTI_DEVICE]
Testpulse: [TEST_PULSE_NOT_RUNNING]
Experiment: 2023_03_30_094323 (Packed)
Igor Pro version: 9.0.1.1 (38961)
MIES version:
Release_2.6_20220606-720-g11874eca8
Date and time of last commit: 2023-01-13T17:42:47+01:00
Submodule status:
e46385bee5c53a0daa1eca0c1d6af44d19677c13 Packages/IPNWB (e46385b)
d229d451f35e88b8c38edb8c26533acfbc3fd10f Packages/doc/doxygen-filter-ipf (heads/main)
873dee901d747ceedfce01e66c058c8791a3b046 Packages/unit-testing (873dee9)
################################
in there.
And the culprit is really that the WSE tries to change the check_Settings_TP_SaveTP
checkbox while that checkbox is disabled. It get's disabled by AutoTP as that requires check_Settings_TP_SaveTP to be checked.
@ru57y34nn
Questions:
@t-b the way that the WSE works right now is when we first switch from voltage clamp to current clamp after we complete the cell attached sweep, the WSE will first check the "save each testpulse" button and then it will check the "Auto testpulse" button. The "Auto testpulse" button will get checked each time we switch from voltage clamp to current clamp, but the "save each testpulse" button will only be checked if we are at the appropriate state in the WSE, the state where we run the resting membrane potential sweep, which is the state at which we want to save each testpulse.
I actually have not been able to recreate this issue. I am not sure how helpful this will be but I have attached a screenshot of the relevant WSE code for your reference. Let me know if you have anymore questions but I will also see if we can implement a check of the Auto TP state before checking the save testpulse button.
@ru57y34nn So the only reason you are checking "save each testpulse" is because "Auto TP" requires it?
@t-b we are checking "save each testpulse" here because we want to save the testpulses while the user is at this state (which is the first current clamp sweep we run) for analysis later. This first current clamp sweep is ran without autobias so we can measure the average voltage that the cell wants to sit at over a 6 second sweep and then we hold the cell at that potential, but we want to be able to analyze the test pulses that were collected during that sweep (I forget that exact reason at this moment). Sorry about the late reply but let me know if you have more questions and I will try to better about responding more immediately going forward, thanks.
Tim and me had a brief look here and we think it would be beneficial to inspect the WSE logfiles. It might also be helpful to check if WSE's write_to_igor
checks the error code in the zmq return message.
Example:
Experiments:
Files:
The ZeroMQ log file has
so the Save TP control is set from ZeroMQ XOP aka WSE.
MIES version: "Release_2.6_20220606-720-g11874eca8"
With Auto TP we also adjust the save TP checkbox regularly and also disable it via AdaptDependentControls.
For internal MIES use one can call
PGC_SetAndActivateControl
with a mode flag which allows to turn off the disabled check of a control. But I would prefer to not allow that for outside users.Questions: