Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.
KEITHLEY INSTRUMENTS,MODEL DMM7510,04309750,1.6.3d
I am running a trigger model remotely via telnet to sense an analog measurement event. The trigger model works well when the event occurs, however when the event fails to happen I would like to be able to abort the model and move on to a different routine. The method I am using with other commands to determine completion is *opc?
It appears with the trigger model that if *opc? is used after trigger.model.initiate() the input buffer fails to see the command trigger.model.abort()
Is there another way to know when a trigger model has completed the measurement event?
The following is the sequence I am sending the DMM prior to the analog trigger event.
dmm.measure.func = dmm.FUNC_DC_VOLTAGE
dmm.measure.autozero.enable = dmm.OFF
dmm.measure.range = 1
dmm.measure.analogtrigger.mode = dmm.MODE_WINDOW
dmm.measure.analogtrigger.window.levelhigh = 0.1
dmm.measure.analogtrigger.window.levellow = 0.02
dmm.measure.analogtrigger.window.direction = dmm.DIRECTION_ENTER
samp_count = 50
test1 = buffer.make(samp_count)
trigger.model.setblock(3,trigger.BLOCK_MEASURE, test1, samp_count)
---Some time passes and the measure event doesn't happen---
At this point the UI still displays WAIT with the wait icon, and doesn't recognize any subsequent commands.
If I try the above sequence without *opc? the model aborts fine, however my program doesn't have a good way to know if the DMM has finished the measurement trigger.
- Keithley Applications
- Posts: 1323
- Joined: October 15th, 2010, 10:35 am
- Country: United States
present_state, n = trigger.model.state() -- state, present block number
If the analog trigger has not yet occurred, it should be at the WAIT block.
Who is online
Users browsing this forum: No registered users and 4 guests