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.

Trigger Model - Exercise 1

Models 2450, 2460, 2461, 2470
Post Reply
Andrea C
Keithley Applications
Keithley Applications
Posts: 1543
Joined: October 15th, 2010, 10:35 am
Country: United States
Contact:

Trigger Model - Exercise 1

Post by Andrea C » December 30th, 2020, 9:56 am

Here is some intro info to familiarize with the trigger block programming in 2450 or similar touch screen models.

Hook a scope probe to digital output line 1 on the DB9 connector on rear of instrument (pin 1 = +, pin 9 = GND).

Use TSP command set.
The digital line has a pull up and will read 5V normally. This script will strobe it low for 100usec duration every 1 msec.
The script will loop 500 times.

Code: Select all

loopCount = 500
delayDuration = 1e-3  --500e-6

trigger.model.load("Empty")	--load an empty trigger model as to clear all trigger model blocks

 --setup digital output to strobe when NOTIFY2 event occurs
digio.line[1].mode = digio.MODE_TRIGGER_OUT
trigger.digout[1].pulsewidth = 100e-6
trigger.digout[1].stimulus   = trigger.EVENT_NOTIFY2
	     


trigger.model.setblock(1, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY2)  -- strobe the digital output
trigger.model.setblock(2, trigger.BLOCK_DELAY_CONSTANT, delayDuration)
trigger.model.setblock(3, trigger.BLOCK_BRANCH_COUNTER, loopCount, 1)  -- go back to block 1

trigger.model.initiate()

The results in the following trigger blocks:
trigger_model_digital_bit_strobe.PNG
trigger blocks
trigger_model_digital_bit_strobe.PNG (56.25 KiB) Viewed 123 times
A scope capture:
trigger_model_digital_bit_strobe_scope.PNG
scope capture using KickStart software
trigger_model_digital_bit_strobe_scope.PNG (74.43 KiB) Viewed 123 times

Here is scope capture with the delay duration of 100usec and the digout pulse width set to the default/minimum of 10usec.
trigger_model_digital_bit_strobe_scope2.PNG
10usec strobe, 100usec period
trigger_model_digital_bit_strobe_scope2.PNG (76.95 KiB) Viewed 122 times

Post Reply

Return to “2450/2460/2461/2470 Touchscreen SourceMeter”

Who is online

Users browsing this forum: No registered users and 2 guests