Skip to content

NI visa32.dll (lib) Wrap for octave on windows10 for instrument control .

License

Notifications You must be signed in to change notification settings

jimjiang2/octave_visa32_wrap_windows

Repository files navigation

octave_visa32_wrap_windows

This is a guide to wrap NI visa32.dll (lib) in octave on Windows10 PC for instrument control .

I have try it and compile a .oct file , then it works on windows octave. four base functions are working well !

################################################################################################# below is something need to install:

  1. install NI visa32 , my version is download from "RIGOL TECHNOLOGIES" https://www.rigolna.com/products/digital-oscilloscopes/1000z/ find "UltraSigma Instrument Connectivity Driver"

  2. octave Version: https://ftpmirror.gnu.org/octave/windows/octave-6.4.0-w64-installer.exe octave-6.4.0-w64-installer.exe

  3. copy *.h & lib file to local octave path:

image

visa.h , visatype.h , and visa32.lib file ( Note: that there is a 64 bit and 32bits version of visa32..... )

"C:\Program Files\IVI Foundation\VISA\Win64\Lib_x64\msc\visa32.lib"
this one is ok.
and the *.h file: C:\Program Files\IVI Foundation\VISA\Win64\Include\visa.h

C:\Program Files (x86)\IVI Foundation\VISA\WinNT\include\visatype.h

  1. in octave gui ,run cmd: mkoctfile visa_tb_windows_wrap.cc -L. -lvisa32

  2. then you will see a "visa_tb_windows_wrap.oct" file . try to modify test_script.m do you own test!!!

instid = viopen("TCPIP::192.168.3.84::INSTR");

viwrite(instid, "*idn?");

viread(instid);

viwrite(instid, ":MEAS:freq?");

viread(instid);

log like this: image

########### copyright ###################################################################################### main code is from : https://github.com/dac922/octave-instrument-control/blob/master/legacy/visa_tb/visa_tb.cc

thanks

https://github.com/dac922

About

NI visa32.dll (lib) Wrap for octave on windows10 for instrument control .

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published