Hello,
I don't know of such code, but do you know if the instrument is in the USBTMC class? If so you can use VISA to communicate with it in a message-based manner. Also, you may want to contact the manufacturer to see if they have any code they can give you from their development/testing internally!
Repost if you have further questions!
Thank you,
JLS