PCSDK - Tracking for a robot TCP

I’d like to get a robot TCP data by real-time tracking. Can somebody help me to make codes by PCSDK please?

or similar reference codes will do…

Thank you!!