Giter Site home page Giter Site logo

panda_trials's Introduction

PandA trials

Required setup

Panda IOC

Python environment

Needs

  • ophyd-epics-devices
  • From https://github.com/bluesky/ophyd-epics-devices (panda-ideas-testing branch)
  • ophyd
  • p4p
  • ipython
  • Shouldn't be tied to a specific repl but things didn't work well from others.
  • bluesky
  • Not really needed but it sets up some ipython stuff that may or may not be useful.

Starting demo

$ ipython -i panda_init.py
>>> import tables
>>> tables.display("helloWorld")

Assumes the panda IOC is running with a PV of TS-PANDA.

tables.py

Currently the main module of functions used for testing the panda. Individual rows of a sequencer table can be built using the frame method that creates a Frame object using default values for all non-specified options.

NB dataclasses/pydantic models are not as usable as namedtuples as being iterable means tuples can be inverted to converted from row-wise to column-wise form more easily.

A list (or any other iterable) of frames can be passed to the build_table function to create a SeqTable that can be passed to the seq1.table panda block.

display function

Demo function for displaying scrolling text on the spinning light demo. This relies on the double buffered sequence table in new versions of the panda firmware to continuously update the table to display scrolling text.

panda_trials's People

Contributors

tpoliaw avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.