From 83810b0384e4b08031a7b6d1e708b351258dc7b3 Mon Sep 17 00:00:00 2001 From: rajeshwari-kiwad Date: Tue, 11 Nov 2025 23:15:54 +0530 Subject: [PATCH 1/2] adding delay.constant --- xml-handler/src/resources/sweep/MP5000Sweep.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xml-handler/src/resources/sweep/MP5000Sweep.xml b/xml-handler/src/resources/sweep/MP5000Sweep.xml index f1a3387..184e791 100644 --- a/xml-handler/src/resources/sweep/MP5000Sweep.xml +++ b/xml-handler/src/resources/sweep/MP5000Sweep.xml @@ -570,6 +570,11 @@ step_source_complete_events) end + -- Adding step-to-sweep-delay -- + if sweep_source_event ~= nil then + tm_add.delay.constant(self.trigger_model, block.wait_sweep, stepToSweepDelay) + end + -- Notify other channels that the steppers are done stepping tm_add.notify(self.trigger_model, block.step_notify, self.event_source) @@ -1278,7 +1283,7 @@ local numberOfSteps = %STEP-COUNT% local numberOfSweeps = %SWEEP-POINTS% - local stepToSweepDelay = %STEP-TO-SWEEP-DELAY% + stepToSweepDelay = %STEP-TO-SWEEP-DELAY% local nplc = %NPLC% From 86a662f96d2404630508432c625fe61809687ebe Mon Sep 17 00:00:00 2001 From: rajeshwari-kiwad Date: Fri, 14 Nov 2025 09:59:04 +0530 Subject: [PATCH 2/2] block.delay_sweep changes --- xml-handler/src/resources/sweep/MP5000Sweep.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xml-handler/src/resources/sweep/MP5000Sweep.xml b/xml-handler/src/resources/sweep/MP5000Sweep.xml index f45e5ea..704e20a 100644 --- a/xml-handler/src/resources/sweep/MP5000Sweep.xml +++ b/xml-handler/src/resources/sweep/MP5000Sweep.xml @@ -555,6 +555,7 @@ step = self.slot_idx .. self.channel_idx .. "_step_step", waitall_steps = self.slot_idx .. self.channel_idx .. "_step_waitall_", step_notify = self.slot_idx .. self.channel_idx .. "_step_done", + delay_sweep = self.slot_idx .. self.channel_idx .. "_step_delay_sweep", wait_sweep = self.slot_idx .. self.channel_idx .. "_step_wait_sweep", measure = self.slot_idx .. self.channel_idx .. "_step_measure", waitall_step_meas = self.slot_idx .. self.channel_idx .. "_step_other_measure_waitall_", @@ -587,7 +588,7 @@ -- Adding step-to-sweep-delay -- if sweep_source_event ~= nil then - tm_add.delay.constant(self.trigger_model, block.wait_sweep, stepToSweepDelay) + tm_add.delay.constant(self.trigger_model, block.delay_sweep, stepToSweepDelay) end -- Notify other channels that the steppers are done stepping