-
Notifications
You must be signed in to change notification settings - Fork 53
/
__init__.py
30 lines (21 loc) · 1.04 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- coding: utf-8 -*-
from . import DAQmxConfig
from .DAQmxTypes import *
from .DAQmxConstants import *
from .DAQmxFunctions import *
from .Task import Task
from . import DAQmxConstants
from . import DAQmxFunctions
all_types = ['int8', 'uInt8', 'int16', 'uInt16', 'int32', 'uInt32', 'float32', 'float64', 'int64', 'uInt64', 'bool32',
'TaskHandle', 'CalHandle', 'DAQmxEveryNSamplesEventCallbackPtr', 'DAQmxDoneEventCallbackPtr', 'DAQmxSignalEventCallbackPtr', 'CtypesString']
__all__ = DAQmxConstants.constant_list + list(DAQmxFunctions.function_dict.keys()) + ['Task'] + all_types + DAQmxFunctions.error_list
for name in DAQmxConstants.constant_list + list(DAQmxFunctions.function_dict.keys()):
if name.startswith('DAQmx_'):
new_name = name[6:]
elif name.startswith('DAQmx'):
new_name = name[5:]
globals()[new_name] = globals()[name]
##### WARNING, version should also be modified in the setup.py
__version_info__ = (1, 4, 6)
__version__ = '.'.join(str(num) for num in __version_info__)
__author__ =u'Pierre Cladé'