SLT3G1 creating tasks, triggers and shortcuts
Nouveau paragraphe
A short illustration in video and text to demonstrate the test code edition, test sequence upload to the tester, and execution by ysing software and hardware triggers
Required HW, FW, and SW tools
This blog section is edited for our partners and clients to provide insights about using our all-in-one electronic tester SLT3G1.
The video above provides a quick overview about how to create test sequences, load them to the tester, run them by using front panel buttons.
Step by step:
A test sequence is called a task.
You can edit tasks it through the the GUI interface of the SLT3G1 tester with your brower at http://127.0.0.1 (SCRIPT page).
In this illustration we developped 5 tasks named (FLASH, RAMP, LOOP1, LOOP2, STOP) and uploaded them to the tester from the SCRIPT page (see video).
A volatile task or script is then executed to map each task to front pannel buttons (F1, F2, F3, F4, F5).
beginVolatileTask;
setTaskShortcut 0 0 1 FLASH;
setTaskShortcut 0 0 2 RAMP;
setTaskShortcut 0 0 3 LOOP1;
setTaskShortcut 0 0 4 LOOP2;
setTaskShortcut 0 0 5 STOP;
lcdDisplayText 999;
lcdDisplayText 0 1 0 SLT3G1 DEMO;
lcdDisplayText 0 3 0 TASK SHORTCUTS;
endTask;
The code of RAMP task is listed in details in the figure below with comments for each instruction section in order to illustrate the code writing simplicity.
Advanced informationis available though the help pages of the GUI interface.
Task code driving the LED as a FLASH pulse
beginTask 0 0 0 FLASH;
ldoSetVoutClamp 4.0 0 1;
ldoSetIoutClamp 1.0 0 1;
ldoSetVout 3.0 0 1;
ldoEnableOutput 0 0 1;
delayms 100;
ldoDisableOutput 0 0 1;
endTask;
Ramps LED voltage up an down
beginTask 0 0 0 RAMP;
ldoSetVoutClamp 4.0 0 1;
ldoSetIoutClamp 1.0 0 1;
ldoSetVout 2.4 0 1;
ldoEnableOutput 0 0 1;
ldoSetVoutStep 0.050 0 1; set Vstep1
ldoIncrVout 0 0 1; incr Vout1
delayms 25;
ldoMeasVout 0 0 1;
setUsrFloatVar 3.2 0 1;
compareFloatGreater 0 xrVOUT1 xrVAR1;
jumpIf -5 0 0;
ldoDecrVout 0 0 1; decr Vout1
delayms 25;
ldoMeasVout 0 0 1;
setUsrFloatVar 2.4 0 2;
compareFloatLower 0 xrVOUT1 xrVAR2;
jumpIf -5 0 0;
ldoDisableOutput 0 0 1;
endTask;
Repeast FLASH task each 1 second
beginTask 0 0 0 LOOP1;
lfTMRstop 0 1 0;
lfTMRsetCyclicTask 1 1 0 FLASH;
lfTMRstart 0 1 0;
endTask;
Repeast RAMP task each 1 second
beginTask 0 0 0 LOOP2;
lfTMRstop 0 1 0;
lfTMRsetCyclicTask 1 1 0 RAMP;
lfTMRstart 0 1 0;
endTask;
Stops running timer
beginTask 0 0 0 STOP;
lfTMRstop 0 1 0;
endTask;
Maps task running to front panel buttons
beginVolatileTask;
setTaskShortcut 0 0 1 FLASH;
setTaskShortcut 0 0 2 RAMP;
setTaskShortcut 0 0 3 LOOP1;
setTaskShortcut 0 0 4 LOOP2;
setTaskShortcut 0 0 5 STOP;
lcdDisplayText 999;
lcdDisplayText 0 1 0 SLT3G1 DEMO;
lcdDisplayText 0 3 0 TASK SHORTCUTS;
endTask;
F1: Flash once
F2: Flash gradual
F3: Flash cyclic normal
F4: Flash cyclic gradual
F5: stop tmr
Copyright SL3J SYSTEMS. All Rights Reserved | Privacy policy | Cookie policy | Terms of use | Terms of sale