sardana-org / sardana

Moved to GitLab: https://gitlab.com/sardana-org/sardana
39 stars 52 forks source link

*_meas_conf macro errors #1527

Open tiagocoutinho opened 3 years ago

tiagocoutinho commented 3 years ago

I am putting here some errors I am having with the *_meas_conf macros.

I have several more errors I will be putting when I know I can reproduce easily.

1 - set_meas_conf first time error

Example:

Door_bl04_1 [4]: get_meas_conf all
ActiveMntGrp = mg1
   Channel   Enabled   Output   PlotType   PlotAxes   Timer   Monitor   Synchronizer   Synchronization   ValueRefEnabled   ValueRefPattern
 --------- --------- -------- ---------- ---------- ------- --------- -------------- ----------------- ----------------- -----------------
     myth2      True     True         No        n/a   myth2     myth2       software           Trigger             False                  

Door_bl04_1 [5]: set_meas_conf Synchronization Start myht2
ActiveMntGrp = mg1
An error occurred while running set_meas_conf:
AttributeError: 'NoneType' object has no attribute 'lower'
Hint: in Spock execute `www`to get more details

Door_bl04_1 [6]: set_meas_conf Synchronization Trigger myth2
ActiveMntGrp = mg1

Door_bl04_1 [7]: set_meas_conf Synchronization Start myth2
ActiveMntGrp = mg1

Door_bl04_1 [8]: get_meas_conf all
ActiveMntGrp = mg1
   Channel   Enabled   Output   PlotType   PlotAxes   Timer   Monitor   Synchronizer   Synchronization   ValueRefEnabled   ValueRefPattern
 --------- --------- -------- ---------- ---------- ------- --------- -------------- ----------------- ----------------- -----------------
     myth2      True     True         No        n/a   myth2     myth2       software             Start             False

2 - get_meas_conf mixed columns

At the beamline, when I do get_meas_conf in a "complex" measurement group, at least the Synchronizer columns are mixed in relation to the channels. In expconf it appears to be correct.

--- TODO: add an example

reszelaz commented 3 years ago

Hi @tiagocoutinho, I can not reproduce the first problem that you describe. See my steps:

Door_zreszela_1 [15]: defmeas mntgrp06 oned01
Created mntgrp06

Door_zreszela_1 [16]: set_meas mntgrp06

Door_zreszela_1 [17]: get_meas_conf all
ActiveMntGrp = mntgrp06
   Channel   Enabled   Output   PlotType   PlotAxes    Timer   Monitor   Synchronizer   Synchronization   ValueRefEnabled   ValueRefPattern
 --------- --------- -------- ---------- ---------- -------- --------- -------------- ----------------- ----------------- -----------------
    oned01      True     True         No        n/a   oned01    oned01       software           Trigger               n/a               n/a

Door_zreszela_1 [18]: set_meas_conf Synchronization Start oned01
ActiveMntGrp = mntgrp06

Door_zreszela_1 [19]: get_meas_conf all
ActiveMntGrp = mntgrp06
   Channel   Enabled   Output   PlotType   PlotAxes    Timer   Monitor   Synchronizer   Synchronization   ValueRefEnabled   ValueRefPattern
 --------- --------- -------- ---------- ---------- -------- --------- -------------- ----------------- ----------------- -----------------
    oned01      True     True         No        n/a   oned01    oned01       software             Start               n/a               n/a

I also tried to create the measurement group and set it as ActiveMntGrp in expconf and then use the set_meas_conf macro but it also worked without problems.

Regarding problem two, I will wait for an example of the measurement group from your side.

Cheers!