-
Notifications
You must be signed in to change notification settings - Fork 1
Home
RBSystems edited this page May 14, 2016
·
1 revision
Very simple converter that can create a map of signals used in smw/umc/cmc configurational files of http://www.crestron.com equipment in a form of graph (http://en.wikipedia.org/wiki/DOT_language file format). It requires software pack from http://www.graphviz.org to create a pictures from dot-files.
If you get SMW file from SIMPL Windows or UMC/CMC module. (i.e. looking like )
Than basic usage with result looking like will be:
$ python smw2dot analog_bool.umc > analog_bool.dot $ dot -Tpng -o analog_bool.png analog_bool.dot
Different way with result is:
$ python smw2dot.py -m -o analog_bool.dot analog_bool.umc $ dot -Tpng -o analog_bool.png analog_bool.dot
There is some primitive help function =)
$ python smw2dot.py -h Usage: smw2dot.py [options] inputfile inputfile of smw/umc/cmc Crestron's filetypes Options: -h, --help show this help message and exit -o FILE, --output=FILE write result to FILE -m, --merged make "merged signals" version
- http://bitbucket.org/d41/smw2dot/src/tip/logicsym.py hold names on IDs for blocks in "Logic Symbols" of simpl library.
- http://bitbucket.org/d41/smw2dot/src/tip/smw2dot.py main parts are: tokenize, parse and make_dot. Text from file go to tokenize, that generates tokens (dictionary type), parse get header/signals/symbols from stream and creating dot with this info.
Have !