Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  30 Apr 2024, Luigi Vigani, Bug Report, Params not initialized when starting sequencer midas_sequencer_ok.pngmidas_sequencer_buggy2.png
    Reply  03 May 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
       Reply  03 May 2024, Stefan Ritt, Bug Report, Params not initialized when starting sequencer param_test.mslfunctions.mslSequencer.jsonScreenshot_2024-05-03_at_09.19.29.pngScreenshot_2024-05-03_at_09.20.47.png
       Reply  03 May 2024, Luigi Vigani, Bug Report, Params not initialized when starting sequencer seq1.PNGseq2.PNGseq3.PNG
          Reply  03 May 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
             Reply  03 May 2024, Stefan Ritt, Bug Report, Params not initialized when starting sequencer 
                Reply  03 May 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
                   Reply  03 May 2024, Stefan Ritt, Bug Report, Params not initialized when starting sequencer Screenshot_2024-05-03_at_18.19.52.png
                      Reply  10 May 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
                         Reply  13 May 2024, Luigi Vigani, Bug Report, Params not initialized when starting sequencer 
                            Reply  21 May 2024, Thomas Senger, Bug Report, Params not initialized when starting sequencer 
                               Reply  21 May 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
                                  Reply  21 May 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
                                     Reply  22 May 2024, Thomas Senger, Bug Report, Params not initialized when starting sequencer 
                                        Reply  30 Aug 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
                                           Reply  04 Sep 2024, Lukas Gerritzen, Bug Report, Params not initialized when starting sequencer 
                                              Reply  04 Sep 2024, Zaher Salman, Bug Report, Params not initialized when starting sequencer 
Message ID: 2751     Entry time: 03 May 2024     In reply to: 2750
Author: Stefan Ritt 
Topic: Bug Report 
Subject: Params not initialized when starting sequencer 
Ok, here is the complete code to reproduce the problem. Load parameter_test.msl which includes functions.msl. From the screenshot you see the variables containing 
garbage, and you also see that from the ODB screenshot. For completeness, I added Sequencer.json which contains the whole sequencer tree.

The interesting thing is that this works sometimes, and sometimes not. I'm not sure if this in the GUI or in the sequencer program, so we have to sort out who can 
fix it ;-)

Best,
Stefan
Attachment 1: param_test.msl  374 Bytes  Uploaded 03 May 2024  | Hide | Hide all | Show all
INCLUDE functions

PARAM lv_start, "Start of LV", 1.8
PARAM lv_stop, "Stop of LV", 2.1
PARAM lv_step, "Step of LV", 0.02

n_iterations = (($lv_stop - $lv_start)/$lv_step)

MSG "Parameters:"
MSG $lv_start
MSG $lv_stop
MSG $lv_step
MSG $n_iterations

MSG "Start of looping"

LOOP n, $n_iterations
   lv_now = $lv_start + $n * $lv_step
   MSG $lv_now
   WAIT SECONDS, 1
ENDLOOP
Attachment 2: functions.msl  300 Bytes  Uploaded 03 May 2024  | Show | Hide all | Show all
Attachment 3: Sequencer.json  15 kB  Uploaded 03 May 2024  | Show | Hide all | Show all
Attachment 4: Screenshot_2024-05-03_at_09.19.29.png  82 kB  Uploaded 03 May 2024  | Show | Hide all | Show all
Attachment 5: Screenshot_2024-05-03_at_09.20.47.png  51 kB  Uploaded 03 May 2024  | Hide | Hide all | Show all
Screenshot_2024-05-03_at_09.20.47.png
ELOG V3.1.4-2e1708b5