Skip to main content

SHIELD permeation rig data aquisition system

Project description

SHIELD permeation rig Data Acquisition System

This is a tool to be used with the SHIELD hydrogen permeation rig, providing a way to both record data from the rig and have a live UI displaying plots of the pressure values in the gauges connected to the rig and the temperature of the connected thermocouple.

Image

Installation

The shield DAS package can be downloaded with pip

pip install SHIELD-DAS

However, in order to interact with the Labjack, additional drivers are required from the manufacturers site.

Example data recording script

This is an example of a script that can be used to activate the DAS.

from shield_das import (
    DataRecorder,
    WGM701_Gauge,
    CVM211_Gauge,
    Baratron626D_Gauge
)

# Define gauges
gauge_1 = WGM701_Gauge(
    gauge_location="downstream",
    ain_channel=10,
)
gauge_2 = CVM211_Gauge(
    gauge_location="upstream",
    ain_channel=8,
)
gauge_3 = Baratron626D_Gauge(
    name="Baratron626D_1KT",
    gauge_location="upstream",
    full_scale_torr=1000,
    ain_channel=6,
)
gauge_4 = Baratron626D_Gauge(
    name="Baratron626D_1T",
    gauge_location="downstream",
    full_scale_torr=1,
    ain_channel=4,
)

# Create recorder
my_recorder = DataRecorder(
    gauges=[gauge_1, gauge_2, gauge_3, gauge_4],
    thermocouples=[thermocouple_1],
    run_type="test_mode",
    recording_interval=0.5,
    backup_interval=5,
    furnace_setpoint=500,
)

# Start recording
my_recorder.run()

Example data visulisation script

from shield_das import DataPlotter

data_500C_run1 = "results/08.12/run_2_11h45/"
data_500C_run2 = "results/08.18/run_2_09h47/"
data_500C_run3 = "results/08.19/run_2_09h21/"
data_500C_run4 = "results/08.25/run_1_09h07/"

my_plotter = DataPlotter(
    dataset_paths=[data_500C_run1, data_500C_run2, data_500C_run3, data_500C_run4],
    dataset_names=["500C_run1", "500C_run2", "500C_run3", "500C_run4"],
)
my_plotter.start()

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

shield_das-0.3.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

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

shield_das-0.3-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file shield_das-0.3.tar.gz.

File metadata

  • Download URL: shield_das-0.3.tar.gz
  • Upload date:
  • Size: 68.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shield_das-0.3.tar.gz
Algorithm Hash digest
SHA256 9f49545c5d9c159ea47732edd8f574484b403dfede1a0d452da6a2661bc2a4c2
MD5 667f5b70dc9ed85e57c1c970a310f397
BLAKE2b-256 72cbfaa9e8de910badd3e2af4bb054244ff7a688c9d3afd438a672a8ef58950e

See more details on using hashes here.

Provenance

The following attestation bundles were made for shield_das-0.3.tar.gz:

Publisher: python-publish.yml on PTTEPxMIT/SHIELD_DAS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shield_das-0.3-py3-none-any.whl.

File metadata

  • Download URL: shield_das-0.3-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shield_das-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 217ab08b55670d373419ee35651b6e575c045c951d3bb121946cd5fa0b341d72
MD5 5d6bd5e2021c92b8f34e82518ab29d4e
BLAKE2b-256 51b71b97d4101964963baf4247aa48766c3fc37d46b9ed6078372b756280c6af

See more details on using hashes here.

Provenance

The following attestation bundles were made for shield_das-0.3-py3-none-any.whl:

Publisher: python-publish.yml on PTTEPxMIT/SHIELD_DAS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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