Skip to content

Commit ed08b5f

Browse files
RajeshwriKrajeshwari-kiwad
andauthored
adding step to sweep delay in script (#42)
Adding step to sweep delay in script using command --------- Co-authored-by: rajeshwari-kiwad <rajeshwari.kiwad@tektronix.com>
1 parent bb650b6 commit ed08b5f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

xml-handler/src/resources/sweep/MP5000Sweep.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@
555555
step = self.slot_idx .. self.channel_idx .. &quot;_step_step&quot;,
556556
waitall_steps = self.slot_idx .. self.channel_idx .. &quot;_step_waitall_&quot;,
557557
step_notify = self.slot_idx .. self.channel_idx .. &quot;_step_done&quot;,
558+
delay_sweep = self.slot_idx .. self.channel_idx .. &quot;_step_delay_sweep&quot;,
558559
wait_sweep = self.slot_idx .. self.channel_idx .. &quot;_step_wait_sweep&quot;,
559560
measure = self.slot_idx .. self.channel_idx .. &quot;_step_measure&quot;,
560561
waitall_step_meas = self.slot_idx .. self.channel_idx .. &quot;_step_other_measure_waitall_&quot;,
@@ -585,6 +586,11 @@
585586
step_source_complete_events)
586587
end
587588

589+
-- Adding step-to-sweep-delay --
590+
if sweep_source_event ~= nil then
591+
tm_add.delay.constant(self.trigger_model, block.delay_sweep, stepToSweepDelay)
592+
end
593+
588594
-- Notify other channels that the steppers are done stepping
589595
tm_add.notify(self.trigger_model, block.step_notify, self.event_source)
590596

@@ -1307,7 +1313,7 @@
13071313
local numberOfSteps = %STEP-COUNT%
13081314
local numberOfSweeps = %SWEEP-POINTS%
13091315

1310-
local stepToSweepDelay = %STEP-TO-SWEEP-DELAY%
1316+
stepToSweepDelay = %STEP-TO-SWEEP-DELAY%
13111317

13121318
local nplc = %NPLC%
13131319

0 commit comments

Comments
 (0)