Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

UT8805E Pyvisa Communication

I am trying to communicate over ethernet with a Uni-Trend UT8805E Digital Multimeter using pyvisa.  I am able to open a connection and am able to write to the device without hassle (I think), as I am able to see changes on the screen on the device that line up with the commands I send.  For instance, I am able to change the trigger source, trigger a measurement, change the measurement type.  I am also sometimes able to use instrument.query() with several standard commands like *ESR?.  However, if I try to use instrument.query("*IDN?"), I get an EOFError.  Also, *ESR? returns 32, which I understand to mean the device didn't understand the command or the previous command hasn't been processed yet.  

 

read_stb() returns 0.  read_raw() throws a VI_ERROR_TMO (-1073807339): Timeout expired before operation completed (this error returns quickly, even if I make the timeout very long).  

 

I am unable to query the ID, but can query some other standard commands.  I am also unable to read or query any of the commands in the programming manual.

 

I am including a link to the programming manual here:

https://assets.testequity.com/te1/Documents/pdf/uni-t/Uni-T_UT8805E_Programming_Manual_0424.pdf

but I found it to be lacking information so I've also been looking at the manual for a similar device from the same company:

https://events.uni-trend.com/hubfs/Instrument%20Product%20documentation/Multimeters/UT8806E/11040111...

 

Lastly, I am doing this on an Ubuntu machine so I doubt 

 

Any help is greatly appreciated.

0 Kudos
Message 1 of 10
(467 Views)

One more data point.  When I list_resources(), I do not see the device listed.  However, when I try to connect, it does not throw an error, and when I run list_opened_resources(), it lists the connection.

0 Kudos
Message 2 of 10
(442 Views)

Update #2:

I took the multimeter and connected it to a windows machine that has NI MAX.  NI MAX was able to recognize the device immediately and can communicate no problem.  Unfortunately, the desired set up involves the multimeter communicating with the Ubuntu computer.

0 Kudos
Message 3 of 10
(390 Views)

I have exact the same problems. Strange is that a query like x =<instrument>.query('MEAS:RES?') works on my windows laptop but gives an error on both my MacBook and my raspberry pi5 no matter the pyton version. 

0 Kudos
Message 4 of 10
(160 Views)

I was actually able to figure this one out.  It turned out there was a permissions issue on the Ubuntu machine I was trying to use.  I'd never encountered that problem in Linux so it was pretty weird.  I don't remember for certain what I did to fix it, but I believe this link will help:
https://superuser.com/questions/1085991/give-application-user-access-to-usb-device

You have to make a file in the udev rules directory that gives permission to a specific device using the vendor and device ID numbers of that device.

0 Kudos
Message 5 of 10
(147 Views)

Do you remember what end characters are used on your device? Seems like it needs a cr maybe followed by a lf

greetings from the Netherlands
0 Kudos
Message 6 of 10
(133 Views)

I’ve tried a termination with \r\n with no results.

0 Kudos
Message 7 of 10
(125 Views)

Here is a snippet one of the Uni-Trend people sent me.  I'm assuming you're using a Uni-Trend device.  If not, you can probably disregard this.

picture.png

 Everything worked flawlessly for me once I gave the appropriate permissions, hopefully the same will work for you.

0 Kudos
Message 8 of 10
(118 Views)

Oh, I also had to update the firmware of the UT8805E.

0 Kudos
Message 9 of 10
(117 Views)

Dear BovineJoni,

My problem is not with the usb connection but with the lan connection though in the end, the results are the same as you had before. I added the rule with no result, also changed from "usb" to "net" with no result. I'm affraid this goes over my head for now. I'm a rookie in linux. Thanks for your help !

0 Kudos
Message 10 of 10
(98 Views)