Skip to content

Commit

Permalink
Tests/ReachTargetVoltage: Use a dedicated stimset
Browse files Browse the repository at this point in the history
This stimset has 5 sweeps, and that is the number we are assuming in
ReachTargetVoltage in the targetVoltages wave.
  • Loading branch information
t-b committed Jul 15, 2024
1 parent 6426daa commit fdd77a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ static Constant HEADSTAGE = 1

static Function [STRUCT DAQSettings s] PS_GetDAQSettings(string device)

InitDAQSettingsFromString(s, "MD1_RA1_I0_L0_BKG1_DB0" + \
"__HS" + num2str(HEADSTAGE) + "_DA1_AD1_CM:IC:_ST:StimulusSetA_DA_0:")
InitDAQSettingsFromString(s, "MD1_RA1_I0_L0_BKG1_DB0" + \
"__HS" + num2str(HEADSTAGE) + "_DA1_AD1_CM:IC:_ST:ReachTargetVoltage_DA_0:")

return [s]
End

static Function GlobalPreAcq(string device)

ST_SetStimsetParameter("StimulusSetA_DA_0", "Analysis function (generic)", str = "ReachTargetVoltage")

PGC_SetAndActivateControl(device, "slider_DataAcq_ActiveHeadstage", val = HEADSTAGE)

PGC_SetAndActivateControl(device, "check_DataAcq_AutoBias", val = 1)
Expand Down Expand Up @@ -52,10 +50,10 @@ static Function RTV_Works_REENTRY([str])

variable sweepNo

CHECK_EQUAL_VAR(GetSetVariable(str, "SetVar_Sweep"), 3)
CHECK_EQUAL_VAR(GetSetVariable(str, "SetVar_Sweep"), 5)

sweepNo = AFH_GetLastSweepAcquired(str)
CHECK_EQUAL_VAR(sweepNo, 2)
CHECK_EQUAL_VAR(sweepNo, 4)

[WAVE deltaI, WAVE deltaV, WAVE resistance, WAVE resistanceErr, WAVE autobiasFromDialog] = GetLBNEntries_IGNORE(str, sweepNo)

Expand Down
Binary file modified Packages/tests/_2017_09_01_192934-compressed.nwb
Binary file not shown.

0 comments on commit fdd77a9

Please sign in to comment.