7: Sampling temperature at a set time interval Model DMM7510 7½ Digit Multimeter
7-6 DMM7510-900-01 Rev. B / May 2015
--Wait for TRIGGER key press from front panel to start trigger model
trigger.model.setblock(1, trigger.BLOCK_WAIT, trigger.EVENT_DISPLAY)
--Send notify to start the timer
trigger.model.setblock(2, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY1)
--Make a measurement and store the reading in default buffer
trigger.model.setblock(3, trigger.BLOCK_MEASURE, defbuffer1)
--Wait for timer delay to elapse
trigger.model.setblock(4, trigger.BLOCK_WAIT, trigger.EVENT_TIMER1)
--Go to block 2 for the number of times set by MeasCount
trigger.model.setblock(5, trigger.BLOCK_BRANCH_COUNTER, MeasCount, 2)
--Initiate trigger model and wait until finished
trigger.model.initiate()
display.changescreen(display.SCREEN_USER_SWIPE)
display.clear()
--Display a message on the USER swipe screen to indicate test in progress
display.settext(display.TEXT1, "Test in progress...")
waitcomplete()
--Display a message on the user swipe screen to indicate test completion
display.clear()
display.settext(display.TEXT1, "Test complete.")
--Print the temperature readings and the corresponding timestamps
printbuffer(1,defbuffer1.n,defbuffer1)
printbuffer(1,defbuffer1.n,defbuffer1.relativetimestamps)
Test results
The following figures show a sample graph and final test measurement for this application.
Figure 30: Model DMM7510 graph of temperature measurements
北京海洋兴业科技股份有限公司(证券代码:839145)