ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

VirtualBench

cancel
Showing results for 
Search instead for 
Did you mean: 

Pyvirtualbench errors on Windows 10 x64

Hi,

This question has been posted before im afriad (https://forums.ni.com/t5/VirtualBench/Pyvirtualbench-errors-on-Windows-10-x64/m-p/3631543#M1134), without any resolution. Im just checking that in the meantime noone has come across this and been able to fix it? The only difference is I am trying to follow this example: http://www.ni.com/video/4395/en/ but it errors on the 7th line.

I have a VB 8012 (on loan) and would really like to control it using python but it seems that noone knows how.

 

Thanks in advanced

 

p.s full Traceback:

Traceback (most recent call last):

File "<ipython-input-8-fc1c4cda5bc4>", line 1, in <module>
runfile('J:/PhysicsandAstronomyResearch/Private/qlm/muskens/Matthew/Scripts/Python/virtualbench.py', wdir='J:/PhysicsandAstronomyResearch/Private/qlm/muskens/Matthew/Scripts/Python')

File "C:\Apps\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile
execfile(filename, namespace)

File "C:\Apps\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "J:/PhysicsandAstronomyResearch/Private/qlm/muskens/Matthew/Scripts/Python/virtualbench.py", line 17, in <module>
ps = VBdevice.acquire_power_supply()

File "J:\PhysicsandAstronomyResearch\Private\qlm\muskens\Matthew\Scripts\Python\virtualbench_modules\pyvirtualbench.py", line 1907, in acquire_power_supply
return self.PowerSupply(self, device_name, reset)

File "J:\PhysicsandAstronomyResearch\Private\qlm\muskens\Matthew\Scripts\Python\virtualbench_modules\pyvirtualbench.py", line 1915, in __init__
status = self.nilcicapi.niVB_PS_InitializeW(self.library_handle, c_wchar_p(self.device_name), c_bool(reset), byref(self.instrument_handle))

OSError: exception: access violation reading 0x000000006EFBC510

0 Kudos
Message 1 of 1
(3,431 Views)