/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to xml/test_pywrap/test_prop2.py

  • Committer: Vasilii Chernov
  • Date: 2016-02-05 11:33:48 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160205113348-l4gmpvm9df3n22sx
Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import pcipywrap
 
2
import os
 
3
    
 
4
def read_from_register(): 
 
5
    reg1_val =  pcipywrap.read_register('reg1');     
 
6
    test_prop1_val = pcipywrap.read_register('test_prop3');
 
7
    return test_prop1_val - reg1_val;