yes, this is what I meant but UDM instead of UDS but still workncap[0] is the x component of ncap

I understood that but I didn't think there was a Macro, say C_UDMI_G to get the gradients from a UDM automatically. I wasn't sure how I would be getting the gradients from a UDM.n