Go Down

Topic: USBTMC Host Driver (Read 675 times) previous topic - next topic

NaoNao

Hi there,

Do you have any measurement instruments which have a USB Female Type B connector?
If you said yes, Great! You most likely have USBTMC devices!

I made USBTMC Host driver for USB Host Shield 2.0.
USBTMC (USB Test and Measurement Class) is a set of standard device class specifications, built on top of the USB standard.
This driver allows you to communicate with Measurement Instruments.

I wrote a simple example using this driver.
You can communicate with your measurement instruments like below.


I also made a demonstration on Youtube.

I have USBTMC Host driver repository on GitHub.
If you have any questions, please feel free to make issues.


I hope this will help others.
Have fun.

contateste123

Hi!

Is there a way to let the commands get past 20 bytes?

Some commands of my oscilloscope are very large, such as:

:MEASure:VRMS DISPlay,DC,CHANNEL1

And also even longer if I want to use a command that allows me to use annotations on screen.

Is there a way to send more than 20 bytes?


I really like your library it works quite well!
 
Thanks a lot!!!

NaoNao

Thank you for using my USBTMC Host driver!!

I agree with you. The command length 20 bytes was a little bit short.
It was just enough size on my situation.

I increase the command length from 20 bytes to 64 bytes, and also you can change the command length (USBTMC_COMMAND_SIZE) on USBTMC.h.

The repository is already updated and try it out on your applications.

If you have any questions, please feel free to create a issue.

Have fun.

contateste123

Works like a charm now! Thanks a lot :)

Go Up