old_code/access.py
def extract_string(index):
    """Get the label, value string and conval for one parameter (ie TMData) 
    from DPP shared memory.
    index = item ordinal
    """
    # Reads up to byte_count bytes from the shared memory segment starting at offset and returns them as a bytes object (which is the same as a str under Python 2).
    tmdata = dpp_shm.read(TMData_size, index * TMData_size)
    # Extract one TMData.  Most entries here are undefined
    (yll, yul, rll, rul, conval, dnval, flag, tag, cstrval, clabel,
     units, comment) = struct.unpack(TMData_fmt, tmdata)
    # Convert C strings
    cstrmo = cstre.match(cstrval)
    if not cstrmo:
        print('Formatted string does not match', cstrval)
        sys.exit(1)
    strval = cstrmo.group(1)
    label = clabel.rstrip('\x00')
    if not strval:
        # Convert items with no strval to a string
        strval = str(dnval)
    return (label, (strval, conval))
Get the label, value string and conval for one parameter (ie TMData) 
    from DPP shared memory.
    index = item ordinal
    
Get the label, value string and conval for one parameter
from DPP shared memory.
index = item ordinal
Get the label value string and conval for one parameter from DPP shared memory . index = item ordinal
def extract_string(index):
    tmdata = dpp_shm.read(TMData_size, index * TMData_size)
    (yll, yul, rll, rul, conval, dnval, flag, tag, cstrval, clabel,
     units, comment) = struct.unpack(TMData_fmt, tmdata)
    cstrmo = cstre.match(cstrval)
    if not cstrmo:
        print('Formatted string does not match', cstrval)
        sys.exit(1)
    strval = cstrmo.group(1)
    label = clabel.rstrip('\x00')
    if not strval:
        strval = str(dnval)
    return (label, (strval, conval))
def extract_string ( index ) : tmdata = dpp_shm . read ( TMData_size , index * TMData_size ) ( yll , yul , rll , rul , conval , dnval , flag , tag , cstrval , clabel , units , comment ) = struct . unpack ( TMData_fmt , tmdata ) cstrmo = cstre . match ( cstrval ) if not cstrmo : print ( 'Formatted string does not match' , cstrval ) sys . exit ( 1 ) strval = cstrmo . group ( 1 ) label = clabel . rstrip ( '\x00' ) if not strval : strval = str ( dnval ) return ( label , ( strval , conval ) )
Get the label, value string and conval for one parameter (ie TMData)
from DPP shared memory.
Get the label value string and conval for one parameter ( ie TMData ) from DPP shared memory .
"""Get the label, value string and conval for one parameter (ie TMData) 
    from DPP shared memory.
    index = item ordinal
    """ # Reads up to byte_count bytes from the shared memory segment starting at offset and returns them as a bytes object (which is the same as a str under Python 2). # Extract one TMData.  Most entries here are undefined # Convert C strings # Convert items with no strval to a string
index