forked from goatsofnaxos/VBAcmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VBAconfig_OLD.py.template
36 lines (30 loc) · 2.07 KB
/
VBAconfig_OLD.py.template
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
31
32
33
34
35
36
'''
(c) 2017 The Trustees of Columbia University in the City of New York. All Rights Reserved.
Started December 2, 2016
@author: Carl Schoonover
DAQ and scaling parameters for VBAcmd2
'''
class VBAconfig():
def __init__(self):
self.channels = {'aiChannelIDs': 'dev5/ai0:3', # Laser / Force / Servo position / Optional analog input
'ainumchanels': 4,
'aoChannelIDs': 'dev5/ao0', # Servo command
'diChannelIDs': 'dev5/port0/line0', # Toggle closed / open loop mode
'doChannelIDs': 'dev5/port1/line0', # Indicate ready state to stimulus control
}
self.encoding = {'rangeServo': [0, 50], # measured range 0 to 50 mm FIRGELLI
'rangeServoVout': [0, 3.3], # output signal 0 to 3.3 V L12-50-50-12-I
'unitServo': 'mm',
'rangeServoSet': [0, 50], # travel range 0 to 50 mm FIRGELLI
'rangeServoSetVcmd': [0, 5], # command signal 0 to 5 V L12-50-50-12-I
'unitServoSet': 'mm',
'rangeForce': [-100, 100], # force range -100 to 100 g FUTEK
'rangeForceVout': [-5, 5], # output signal -5 to +5 V FSH02664 load cell with FUTEK QSH00602 signal conditioner in +/-5 VDC mode
'unitForce': 'g',
'rangeLaser': [0, 50], # position range 0 to 50 mm MICRO-EPSILON
'rangeLaserVout': [1, 5], # output signal 1V to 5V ILD1302-50
'unitLaser': 'mm',
'rangeAI': [-10, 10], # analog in range -10 to +10 V OPTIONAL
'rangeAIVout': [-10, 10], # output signal -10V to 5V Analog input
'unitAI': 'V',
}