Python wrappers to control NI VirtualBench. These wrappers call into the official c-driver, allowing you to control VirtualBench from a Python application.
Five Instruments. One Device. Radically Practical.
By combining the most essential instruments into one device and integrating with PCs and iPads, the VirtualBench all-in-one instrument is simple, is convenient, and opens up new possibilities for how you can interact with benchtop instruments.
What’s Included?
- Mixed-Signal Oscilloscope With Protocol Analysis
- Function Generator
- Digital I/O, SPI master, I2C master
- Programmable DC Power Supply
- Digital Multimeter
More information can be found on ni.com.
- NI VirtualBench hardware
- VirtualBench driver >= 1.1.0 Be sure to check "ANSI C Support" during installation.
- Python >= 3.4. You will need 32-bit Python support to work with the NI-provided drivers.
./examples/hands_free_dmm.py
Requirements- Infinity USB Digital Foot Control with Computer plug (IN-USB2)
- pip install pywinusb
- pip install Pyglet
- copy
./support/avbin-win32-5.zip/avbin.dll
into yourc:\Windows\System32
directory
- Run the following on a Windows Command Line terminal
mkdir Projects
cd Projects
git clone https://github.com/armstrap/armstrap-pyvirtualbench.git
cd armstrap-pyvirtualbench
python -m pip install .
python examples\ps_example.py
- To install in "edit mode" - that is, to use the files directly in the project directory instead of making a read-only installation - in the above instructions replace
python -m pip install .
with
python -m pip install -e .
- NI support article on pyVirtualBench
- VirtualBench C library is found in
C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C
- Examples for the C-API of VirtualBench are found in
C:\Users\Public\Documents\National Instruments\VirtualBench ANSI C Examples