Skip to content

Commit b0f8248

Browse files
committed
ASSERT: Output fifo position
1 parent 6f8af08 commit b0f8248

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Packages/MIES/MIES_Utilities_ProgramFlow.ipf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput])
205205
Make/FREE/T tpStates = {NONE}
206206
Make/FREE/T daqStates = {NONE}
207207
Make/FREE/T acqStates = {NONE}
208+
Make/FREE/T fifoPos = {NONE}
208209

209210
if(!SVAR_Exists(lockedDevices) || IsEmpty(lockedDevices))
210211
lockedDevicesStr = NONE
@@ -213,7 +214,7 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput])
213214

214215
numLockedDevices = ItemsInList(lockedDevicesStr)
215216

216-
Redimension/N=(numLockedDevices) sweeps, daqStates, tpStates, acqStates
217+
Redimension/N=(numLockedDevices) sweeps, daqStates, tpStates, acqStates, fifoPos
217218

218219
for(i = 0; i < numLockedDevices; i += 1)
219220
device = StringFromList(i, lockedDevicesStr)
@@ -224,6 +225,7 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput])
224225
tpStates[i] = TestPulseRunModeToString(testpulseMode)
225226
daqStates[i] = DAQRunModeToString(runMode)
226227
acqStates[i] = AS_StateToString(ROVar(GetAcquisitionState(device)))
228+
fifoPos[i] = num2str(ROVar(GetFifoPosition(device)))
227229
endfor
228230
endif
229231

@@ -242,6 +244,7 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput])
242244
printf "DAQ: [%s]\r", TextWaveToList(daqStates, ";", trailSep = 0)
243245
printf "Testpulse: [%s]\r", TextWaveToList(tpStates, ";", trailSep = 0)
244246
printf "Acquisition state: [%s]\r", TextWaveToList(acqStates, ";", trailSep = 0)
247+
printf "Fifo position: [%s]\r", TextWaveToList(fifoPos, ";", trailSep = 0)
245248
printf "Experiment: %s (%s)\r", GetExperimentName(), GetExperimentFileType()
246249
printf "Igor Pro version: %s (%s)\r", GetIgorProVersion(), GetIgorProBuildVersion()
247250
print "MIES version:"

0 commit comments

Comments
 (0)