Home » » How to fix PyVISA ‘ValueError: Could not locate a VISA implementation. Install either the NI binary or pyvisa-py.’

How to fix PyVISA ‘ValueError: Could not locate a VISA implementation. Install either the NI binary or pyvisa-py.’

Written By SBlog on Monday, July 25, 2022 | July 25, 2022

Untuk masalah seperti berikut ini
"Could not locate a VISA implementation. Install either the IVI binary or pyvisa-py"

perlu dilakukan install library pyvisa-py dengan cara.

sudo pip3 install pyvisa-py :  python 3

sudo pip2 install pyvisa-py : python 2


pengujian program menggunakan pyvisa berikut ini.

import pyvisa
rm = pyvisa.ResourceManager()
rm.list_resources()
inst = rm.open_resource('GPIB0::12::INSTR')
print(inst.query("*IDN?"))


0 comments:

Post a Comment

(^_^) [o_o] (^.^) (".") ($.$)