@@ -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