Skip to content

Commit 7b7dab2

Browse files
committed
ASSERT: Output fifo position
1 parent f74ca5d commit 7b7dab2

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
@@ -203,6 +203,7 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput])
203203
Make/FREE/T tpStates = {NONE}
204204
Make/FREE/T daqStates = {NONE}
205205
Make/FREE/T acqStates = {NONE}
206+
Make/FREE/T fifoPos = {NONE}
206207

207208
if(!SVAR_Exists(lockedDevices) || IsEmpty(lockedDevices))
208209
lockedDevicesStr = NONE
@@ -211,7 +212,7 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput])
211212

212213
numLockedDevices = ItemsInList(lockedDevicesStr)
213214

214-
Redimension/N=(numLockedDevices) sweeps, daqStates, tpStates, acqStates
215+
Redimension/N=(numLockedDevices) sweeps, daqStates, tpStates, acqStates, fifoPos
215216

216217
for(i = 0; i < numLockedDevices; i += 1)
217218
device = StringFromList(i, lockedDevicesStr)
@@ -222,6 +223,7 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput])
222223
tpStates[i] = TestPulseRunModeToString(testpulseMode)
223224
daqStates[i] = DAQRunModeToString(runMode)
224225
acqStates[i] = AS_StateToString(ROVar(GetAcquisitionState(device)))
226+
fifoPos[i] = num2str(ROVar(GetFifoPosition(device)))
225227
endfor
226228
endif
227229

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

0 commit comments

Comments
 (0)