Skip to main content

A package for controlling Jena PiezoSystem NV40 3CLE amplifier vi NIDAQMX.

Project description

Control of PiezoSystemJena NV40/3CLE via NI DAQmx

Control of the Jena's piezo accuators via their multi-channel amplifier. https://www.piezosystem.com/products/amplifiers/multi-channel/40ma-multi-channel-amplifiers/

Uses NIDAQ device to read and write analog voltages between 0 and 10 to three input and output voltage channels connected to a Jena NV40/3CLE amplifier. Each input/output channel controls one of three axis (x, y, or z).

When using this software, one must at least provide three analog channels on the NIDAQ that are connected to the NV40/3CLE amplifier that control (write) the location of the piezo stage.

This program does not need to read voltages from the amplifier. If no read channels are provided, this program will report the last written values when reporting the current location.

This controller does NOT lock out usage of analog input and output channels on the NI-DAQ card. It writes or reads to the analog channels and then releases the resource. This would allow external programs to access those channels, so long as the access is not simultaneous.

Installation

Requirements

This python package depends upon National Instruments driver and NI DAQ card that contains three analog input and output channels.

You must first install the NI DAQmx driver. http://www.ni.com/downloads/.

PIP should install the rest of the dependencies.

Local Installation

pip install nipiezojenapy

Usage

GUI Application

From the shell prompt, launch

> qt3piezo

For help on hardware configuration use the help option (qt3piezo -h)

Programmatically

import nipiezojenapy
pcon = nipiezojenapy.PiezoControl(device_name = 'Dev1',
                                  write_channels = ['ao0','ao1','ao2'],
                                  read_channels = ['ai0','ai1','ai2'])

Read Position

print(pcon.get_current_position())
[39.953595487425225, 40.047631567251806, 39.9510191567554]

Go To Position

pcon.go_to_position(x = 20, y = 20, z = 20)
pcon.get_current_position()
[19.935887437291537, 19.94876864898489, 19.872769502734947]

Note that each axis can be set independently. That is, one may move along a single axis without specifying the other axis values.

pcon.go_to_position(z = 40)
pcon.get_current_position()
[19.913989377848296, 19.988700406441584, 39.91623869419529]

LICENSE

LICENCE

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

nipiezojenapy-1.0.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

nipiezojenapy-1.0.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file nipiezojenapy-1.0.3.tar.gz.

File metadata

  • Download URL: nipiezojenapy-1.0.3.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for nipiezojenapy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2d8146ef5c77103990a00ad1d97381681b46cb64d001ca213d709bffeccb2393
MD5 124da845b90e216dfd91ded8ad1639ae
BLAKE2b-256 09df4f1bb511f868316416a9092f1d94a11a95bbc2b449bf675f9516434cbb7e

See more details on using hashes here.

Provenance

File details

Details for the file nipiezojenapy-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nipiezojenapy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 017d2eea637d6dfd09b48245db4a06f0dd035c45486c7df5742786b9ff13ae0d
MD5 e8760c982d5f9698dab71de529a5211a
BLAKE2b-256 8222358c6437165701364fd5600592c026aa8ff25dabebe5238af050d75b72ac

See more details on using hashes here.

Provenance

Supported by

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