Skip to content

Commit

Permalink
Update to control setvar for manual pressure control; when TP is not …
Browse files Browse the repository at this point in the history
…running and manual mode is ON, pressure will update (It didn't before).
  • Loading branch information
timjarsky authored and t-b committed Feb 27, 2025
1 parent 7f5e6d6 commit daffe38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Packages/MIES/MIES_DAEphys.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,13 @@ Function DAP_SetVarProc_CAA(STRUCT WMSetVariableAction &sva) : SetVariableContro

DAP_UpdateChanAmpAssignStorWv(device)
P_UpdatePressureDataStorageWv(device)

// --- updates pressure during manual pressure mode when TP is not running ---
variable hs = DAG_GetNumericalValue(device, "slider_DataAcq_ActiveHeadstage")
if(P_GetPressureMode(device, hs) == PRESSURE_METHOD_MANUAL)
P_RunP_ControlIfTPOFF(device)
endif

break
case 9: // mouse down
strswitch(sva.ctrlName)
Expand Down

0 comments on commit daffe38

Please sign in to comment.