[Python] What is the 'live' kwarg of grab_data method (from a PyMoDAQ viewer) refering to?

Discussão em 'Python' iniciado por Stack, Abril 14, 2025.

  1. Stack

    Stack Membro Participativo

    I am working on PyMoDAQ software to enhance the pymodaq_plugins_nidaqmx and wondering about this particular kwarg.

    Can someone explain to me what this "live" kwargs is refering to ? Is it a deprecated version of the "live_mode_available" attribute or something else ?

    def grab_data(self, Naverage=1, **kwargs):
    update = False
    if 'live' in kwargs:
    if kwargs['live'] != self.live:
    update = True
    self.live = kwargs['live']
    if update:
    self.update_task()


    I tried to run my PyMoDAQ viewer by snapshot and in live mode (green arrow of the viewer), and this live kwargs seems indeed True (update is set to True) when using live mode.

    So I am wondering if it is another use of the "live_mode_available" attributes (maybe 1 of this 2 is deprecated ?) or indeed something else.

    Continue reading...

Compartilhe esta Página