qcodes/instrument_drivers/AlazarTech/helpers.py
def query_firmware_version(self) -> str:
        """
        Query firmware version in "<major>.<minor>" format

        The firmware version reported should match the version number of
        downloadable fw files from AlazarTech. But note that the firmware
        version has often been found to be incorrect for several firmware
        versions. At the time of writing it is known to be correct for the
        9360 (v 21.07) and 9373 (v 30.04) but incorrect for several earlier
        versions. In Alazar DSO this is reported as FPGA Version.
        """
        asopc_type = self.query_asopc_type()
        # AlazarTech has confirmed in a support mail that this
        # is the way to get the firmware version
        firmware_major = (asopc_type >> 16) & 0xff
        firmware_minor = (asopc_type >> 24) & 0xf
        # firmware_minor above does not contain any prefixed zeros
        # but the minor version is always 2 digits.
        firmware_version = f'{firmware_major}.{firmware_minor:02d}'
        return firmware_version

        Query firmware version in "<major>.<minor>" format

        The firmware version reported should match the version number of
        downloadable fw files from AlazarTech. But note that the firmware
        version has often been found to be incorrect for several firmware
        versions. At the time of writing it is known to be correct for the
        9360 (v 21.07) and 9373 (v 30.04) but incorrect for several earlier
        versions. In Alazar DSO this is reported as FPGA Version.
        
Query firmware version in "." format
The firmware version reported should match the version number of
downloadable fw files from AlazarTech. But note that the firmware
version has often been found to be incorrect for several firmware
versions. At the time of writing it is known to be correct for the
9360 (v 21.07) and 9373 (v 30.04) but incorrect for several earlier
versions. In Alazar DSO this is reported as FPGA Version.
Query firmware version in " . " format The firmware version reported should match the version number of downloadable fw files from AlazarTech . But note that the firmware version has often been found to be incorrect for several firmware versions . At the time of writing it is known to be correct for the 9360 ( v 21 . 07 ) and 9373 ( v 30 . 04 ) but incorrect for several earlier versions . In Alazar DSO this is reported as FPGA Version .
def query_firmware_version(self) -> str:
        asopc_type = self.query_asopc_type()
        firmware_major = (asopc_type >> 16) & 0xff
        firmware_minor = (asopc_type >> 24) & 0xf
        firmware_version = f'{firmware_major}.{firmware_minor:02d}'
        return firmware_version
def query_firmware_version ( self ) -> str : asopc_type = self . query_asopc_type ( ) firmware_major = ( asopc_type >> 16 ) & 0xff firmware_minor = ( asopc_type >> 24 ) & 0xf firmware_version = f'{firmware_major}.{firmware_minor:02d}' return firmware_version
Query firmware version in "<major>.<minor>" format
The firmware version reported should match the version number of
downloadable fw files from AlazarTech.
Query firmware version in " <major > . <minor > " format The firmware version reported should match the version number of downloadable fw files from AlazarTech .
"""
        Query firmware version in "<major>.<minor>" format

        The firmware version reported should match the version number of
        downloadable fw files from AlazarTech. But note that the firmware
        version has often been found to be incorrect for several firmware
        versions. At the time of writing it is known to be correct for the
        9360 (v 21.07) and 9373 (v 30.04) but incorrect for several earlier
        versions. In Alazar DSO this is reported as FPGA Version.
        """ # AlazarTech has confirmed in a support mail that this # is the way to get the firmware version # firmware_minor above does not contain any prefixed zeros # but the minor version is always 2 digits.
self