Get multiple stimuli onset with Cedrus pyxid library

Hello, I am using Stimtracker quad & Response pad( RB-x40) with psychopy toolbox.
In my experiment I need to measures the accuracy and RT of a button press - the accurate RT from the auditory stimulus onset.

So I am currently using pyxid library but I’m having trouble how to set and reset a clock, and wait to receive both auditory & button press onset time.
Device connection is like this :

[Auditory device/ Response Pad(keyboard mode)] – Stimtracker --(Serial port)-- Laptop

Since I am very new to both coding and psychopy, is there any reference of test script so I can understand about this problem?
Thank you.

Best regards,
Jay