AUTD3 library wrapper for python
Project description
pyautd3
autd3 library for python3.6+
version: 0.3.1.3
Install
pip install pyautd3
or from this repository
pip install git+https://github.com/shinolab/pyautd.git
Requirements
If you are using Windows, install Npcap with WinPcap API-compatible mode (recomennded) or WinPcap.
If you are using Linux/MacOS, you may need to install and run pyautd3 as root.
sudo pip install pyautd3
sudo python
>>> import pyautd3
Exmaple
from pyautd3 import *
import sys
def get_adapter_name():
adapters = AUTD.enumerate_adapters()
for i, adapter in enumerate(adapters):
print('[' + str(i) + ']: ' + adapter[0] + ', ' + adapter[1])
index = int(input('choose number: '))
return adapters[index][0]
if __name__ == '__main__':
adapter = get_adapter_name()
autd = AUTD()
autd.add_device([0, 0, 0], [0, 0, 0])
# autd.add_device([0, 0, 0], [0, 0, 0])
autd.open(LinkType.SOEM, adapter)
f = AUTD.focal_point_gain(90, 80, 150)
m = AUTD.sine_modulation(150)
autd.append_gain_sync(f)
autd.append_modulation_sync(m)
print('press enter to start stm...')
sys.stdin.readline()
m = AUTD.modulation(255)
autd.append_modulation_sync(m)
f1 = AUTD.focal_point_gain(87.5, 80, 150)
f2 = AUTD.focal_point_gain(92.5, 80, 150)
autd.append_stm_gain(f1)
autd.append_stm_gain(f2)
autd.start_stm(50)
print('press enter to exit...')
sys.stdin.readline()
autd.finish_stm()
autd.dispose()
Author
Shun Suzuki, 2020
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyautd3-0.3.1.3.tar.gz
(4.5 kB
view hashes)
Built Distribution
pyautd3-0.3.1.3-py3-none-any.whl
(196.1 kB
view hashes)
Close
Hashes for pyautd3-0.3.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a37bd096e81dd21982806dc5592ec3de655e757bafa98539370fc03ecc2b0824 |
|
MD5 | d031e9b1cfb82324f39826d7a7169c77 |
|
BLAKE2b-256 | e5e21b70d8201f5a6e4b24a343f1493e55d31b4284ac20de66ded0e8674f808b |