Giter Site home page Giter Site logo

nheengatu-autogenscripts's Introduction

Nheengatu configurations auto-generation script

This repository contains miscellaneous script for various purposes. More information can be found here.

gen_cfg.py

This script generates the whole configuration folder necessary to run the IOC.

Help

$ ./gen_cfg.py -h

cfg.csv template generation example

$ ./gen_cfg.py -s ./gen_cfg_example/ -u --waveformkey waveform_ --binum 24 --extract
$ ./gen_cfg.py -s ./gen_cfg_mbb_example/ --mbbikey MBBI --mbbokey MBBO --crio CRIO5 --loc A -u --extract
$ ./gen_cfg.py -s ./gen_cfg_example_9045/ --mbbikey MBBI --mbbokey MBBO --crio CRIO5 --loc A -u --extract
$ ./gen_cfg.py -s ./example3/  --bikey BI_ --bokey BO --binum 4 --loc A --crio CRIO06 --refcsv --extract

cfg.ini and EPICS substitutions generation examples

$ ./gen_cfg.py -s ./gen_cfg_example/ -u --waveformkey waveform_ --binum 24
$ ./gen_cfg.py -s ./gen_cfg_mbb_example/ --mbbikey MBBI --mbbokey MBBO --crio CRIO5 --loc A -u
$ ./gen_cfg.py -s ./gen_cfg_example_9045/ --mbbikey MBBI --mbbokey MBBO --crio CRIO5 --loc A -u
$ ./gen_cfg.py --bikey BI_  --src example3/ --bokey BO --binum 4 --loc A --crio CRIO06

Notes

$ gen_cfg_example/
$ ├── NiFpga_fpga_all_example.lvbitx
$ ├── NiFpga_fpga_all_example.h
$ ├── cfg.csv
$ └── RT.list
  • NiFpga_fpga_all_example.h: Header file generated with FPGA C API
  • RT.list: If SM is enabled, this file must exist, and should contain the order of the variables in the labview RT VI (content automatically generated)
  • NiFpga_fpga_all_example.lvbitx: bit stream. It will only be copied by the script to the destination folder
  • cfg.csv : example of an already filled cfg.csv file. The script generates a template that will be filled by the user

RT variable naming in RT.list file

Must abide by the following syntax RT_VARTYPE_VARNAMEX. VARNAME must be one of the following

  • AI, AO, BI, BO, WF

X can be a unique number assigned by the user. The VARTYPE has to be one of the following

  • BOL, DBL, SGL, I64, I32, I16, I08, U64, U32, U16, U08

In case of waveforms (WF), the variable name must be followed by the array number of elements

crio-ioc.cmd

This is the standard cmd file. Can be used as is.

labview2018vm.sh

This script launches the VM that has the Labview 2018 32-bits running on a windows 10 64-bit machine (tesla)

Running example

$ ./labview2018vm

nheengatu-autogenscripts's People

Contributors

dawoodalnajjar avatar dawoodnajjar avatar marcelo-moraes avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nheengatu-autogenscripts's Issues

EPICS_CA_MAX_ARRAY_BYTES not added to st.cmd

Hi Dawood,
There is no st.cmd setting for EPICS_CA_MAX_ARRAY_BYTES when using non default smsize

An error message could also ask for multiples of 4096 bytes before the ioc startup...

Best regards,
Marcelo Moraes

Waveform EGU and PREC

Hi Dawood,
I couldn't find EGU and PREC fields in the cfg.csv

It is desirable for both prompt and GUI visualization

Best regards,
Marcelo Moraes

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.