Skip to main content

Programmatically control Norsonic Nor1029

Project description

nor1029-controller

Programmatically control Norsonic Nor1029

The Nor265(A) microphone boom / turntable is controlled by its proprietary Nor1029 software (see downloads section of product page). After installing and configuring it, you can control the hardware programmatically using this library, which launches and interacts with the GUI.

Install

pip install nor1029-controller

Usage

from nor1029_controller import Nor1029Controller

with Nor1029Controller() as nor:
    nor.rotate(180, speed=10, acceleration=2)

API

Nor1029Controller(filename?, timeout?)

filename

Path to nor1029.exe.

Default: "C:\Program Files (x86)\Norsonic\Nor1029\nor1029.exe"

timeout

Timeout for operations in seconds.

Default: 300 (5 minutes)

nor

Nor1029Controller instance.

.angle

readonly

.rotations

readonly

Optional parameters will default to whatever was previously set.

.rotate(angle, speed?, acceleration?)

.rotate_relative(angle, speed?, acceleration?)

.sweep(start_angle, stop_angle, duration, acceleration?)

Oscillate between two angles.

.start_continuous_rotation(direction, speed?, acceleration?)

from nor1029_controller import Nor1029Controller, RotationDirection
import time

with Nor1029Controller() as nor:
    nor.start_continuous_rotation(
        direction=RotationDirection.CLOCKWISE,
        speed=10,
        acceleration=2
    )

    # Rotate for 5 seconds
    time.sleep(5)

    nor.stop()

.start_rotate(angle, speed?, acceleration?)

.start_rotate_relative(angle, speed?, acceleration?)

.start_sweep(start_angle, stop_angle, duration, acceleration?)

The start_* methods will return when the movement starts, while the regular methods will also wait for the movement to finish.

.stop()

Stop any ongoing movement.

.go_home()

Rotate back to the home position.

.is_moving

readonly

.close()

If you're not using a context manager, you should instead call this method when you are done.

from nor1029_controller import Nor1029Controller

nor = Nor1029Controller()

nor.rotate(180, speed=10, acceleration=2)

nor.close()

RotationDirection

Enum

  • CLOCKWISE
  • COUNTER_CLOCKWISE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nor1029_controller-0.2.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nor1029_controller-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file nor1029_controller-0.2.0.tar.gz.

File metadata

  • Download URL: nor1029_controller-0.2.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for nor1029_controller-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33dcec583e5cbb8740705aa3b8627262fbb96a50abbaf3fb68cfbf2b6be2a87c
MD5 381667a2e39f2fd27387f4c7f862b0af
BLAKE2b-256 d4d20a511f97c16aa3c0c537fc111b76299586dcdd17b6c9f1b1e7720041061e

See more details on using hashes here.

File details

Details for the file nor1029_controller-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nor1029_controller-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1a3a1ffade2fdcdba223049fb65200c1146809c048ce4c395cd9e62f61f9bdd
MD5 6fb00fc638ade5d17bd55765fcef1c8f
BLAKE2b-256 7d9198a3ac04463a9165f73f22061ad34ef72f37cb5d0426ccb95e23ec809a81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page