Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling multimeter using Pyvisa

Dear user,

As i am new to both Python and instrument control, i am having quite a problem accesing Picotest M3500A multimeter.

I have followed the tutuorial on PyVisa website to access the instrument.

But "pico.trigger()" command gives me an error VI_ERROR_NSUP_ATTR: The specified attribute is not defined or supported by the reference object.

Where pico is the variable name of my instrument.

One more thing, where can i find the SCPI commands to access the instrument? I dont have any idea about it, as i am newbie in instrument control. 

I would to like to read the values from it, write values on it.

Thank you very much in advnace. Any help would be very much appreciated.

 

Cheers!!

0 Kudos
Message 1 of 11
(7,451 Views)

The SCPI commands would be found in the manual, if there is one, from Picotest.

0 Kudos
Message 2 of 11
(7,444 Views)

Hi Balkishore,

 

it would help us alot if you can tell us which Hardware you are using and in which Software environment you are working.

 

Best regards,

 


Abduelkerim

Sales
NI Germany
0 Kudos
Message 3 of 11
(7,422 Views)

PyVisa is for Python, so that would be his software environment.

 

 

0 Kudos
Message 4 of 11
(7,416 Views)

Hi,

I am using PyVisa as my software environment and Picotest M3500A multimeter as my hardware.

All i want to know is the supported SCPI command by the instrument.

Thank you very much in advance.

0 Kudos
Message 5 of 11
(7,408 Views)

Hi Balkishore,

 

you will find the supported SCPI commands here: http://download.zeitech.de/Documents/Picotest_M3500A_Manual.pdf

 

This is the user manual of your Hardware.

When you look on page 113 it starts with the subject of Remote Interface Operations

Two pages later (and following 12 pages) you have several SCPI commands which should help you.

 

Have a nice day,

 

 

Abduelkerim

Sales
NI Germany
0 Kudos
Message 6 of 11
(7,406 Views)

Thank you very much mate!!

Have a great day!!

0 Kudos
Message 7 of 11
(7,404 Views)

Your welcome,

 

have a nice day

Abduelkerim

Sales
NI Germany
0 Kudos
Message 8 of 11
(7,401 Views)

@ADagli

First of all thank you veyr much for helping me out.

I have a small query.

I have saved my instrument in a variable called my_instrument using the following code in PyVisa

from visa import *
my_instrument = instrument("USB0::0x164E::0x0DAD::TW00004282")

 

Now how will i invoke the measure command 

VOLTage:DC? {<range>|MIN|MAX|DEF},{<resolution>|MIN|MAX|DEF}

 

is "my_instrument.VOLTage:DC? {<20>|1|15|2},{<4>|1|3|1}" a correct way of invoking it?


0 Kudos
Message 9 of 11
(7,397 Views)

When i do this, i get an syntax error!! Any help would be very much appreciated.

0 Kudos
Message 10 of 11
(7,396 Views)