How to export field output data and coordinates of a node using Abaqus/Scripting ?

Dear everyone,

I am trying to export node coordinates and the CSDMG value at each node of my impact model to rebuild it with Python. However, my program does not seem to extract the CSDMG value of the node considered.

My program :

    for node in instance.nodes:
        inc.append(i)
        Noeud.append(node.label)
        CoordX.append(node.coordinates[0])
        CoordY.append(node.coordinates[1])
        CoordZ.append(node.coordinates[2])
        CSDMG.append(lastFrame.fieldOutputs['CSDMG  General_Contact_Domain'].values[node.label].data)
        i=i+1

I suppose the penultimate line reads the CSDMG value at another node than node.label. What do you recommend to improve my code ? Thank you so much !

Alban