05-18-2017 03:39 PM
I have downloaded pyvirtualbench from here: https://github.com/armstrap/armstrap-pyvirtualbench
And I have tried to run the example after renaming my device to match the dio_exampl.py program. Command line spits this out, but I have not found any solution to the problem yet, anyone else see this?
python dio_example.py
Traceback (most recent call last):
File "dio_example.py", line 42, in <module>
dio = virtualbench.acquire_digital_input_output(channels_to_write);
File "C:\Program Files\Python36\lib\pyvirtualbench.py", line 525, in acquire_digital_input_output
return self.DigitalInputOutput(self, lines, reset)
File "C:\Program Files\Python36\lib\pyvirtualbench.py", line 533, in __init__
status = self.nilcicapi.niVB_Dig_InitializeW(self.library_handle, c_wchar_p(self.lines), c_bool(reset), byref(self.instrument_handle))
OSError: exception: access violation reading 0x0000000010D98990
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dio_example.py", line 53, in <module>
virtualbench.release()
File "C:\Program Files\Python36\lib\pyvirtualbench.py", line 381, in release
status = self.nilcicapi.niVB_Finalize(self.library_handle)
OSError: exception: access violation writing 0x0000000010D98998
05-19-2017 04:55 PM
Hi Ejo,
You can perhaps try posting on the wrapper's issues page too:
https://github.com/armstrap/armstrap-pyvirtualbench/issues
Given that the wrapper is community-developed, we unfortunately don't have any additional insight to it internally from a support perspective.