Skip to main content

SHIELD permeation rig data aquisition system

Project description

SHIELD permeation rig Data Aquisistion 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.2.tar.gz (49.6 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.2-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shield_das-0.2.tar.gz
Algorithm Hash digest
SHA256 7f027bcd3a4decb90b22b4a7e1666d11e03779e063afafa2812ad8874e3e054e
MD5 1821ef54bc7708fae5ba8c4d6b50fe99
BLAKE2b-256 b58f171fe177253166e6f77c15a3b002cd68de35cf8f92b3c3cbc8910af76de4

See more details on using hashes here.

Provenance

The following attestation bundles were made for shield_das-0.2.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.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for shield_das-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 042449a67666636ab4f6c266b465e1dd9570d4bf04571c61332b61c6c9e53be3
MD5 03c13cedbd3124b9bc8b88543524c2c2
BLAKE2b-256 ff1448c5727a928ddb2294a68e29867db4cc5f6db7badaa905fc20c743bcd5cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for shield_das-0.2-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