def info(): print("------- einzelne Werte -------------------------") print("16 Bit Value: " + str(rl.cbAIn(0,0,1))) print("Voltage Value: " + str(rl.cbVIn(0,0,1))) print("------- Messreihe -------------------------") #print("Messreihe: " + str(rl.cbAInScan(0,0,0,300,100,1))) #print("Messreihe: " + str(rl.cbVInScan(0,0,0,300,100,1))) print("------- Ausgabe -------------------------") print("Voltage Value: " + str(rl.cbVOut(0,0,101,2.5))) #aIn = np.array(rl.cbAInScan(0,0,0,300,100,1)); wIn = np.array(rl.cbVInScan(0,0,0,4000,8000,1)); np.savetxt("2000.csv", wIn)
def write(): while True: value = float(input("Volt?")) rl.cbVOut(0,0,101, value); print("Set to value " + str(value)) print("Voltage Value: " + str(rl.cbVIn(0,0,1)))
# -*- coding: utf-8 -*- """ Created on Mon Jan 7 14:05:21 2019 @author: ds-03 """ import redlab as rl #print("-------einzelneWerte-------------------------") #print("16BitValue:" + str(rl.cbAIn(0,0,1))) print("VoltageValue:" + str(rl.cbVIn(0, 0, 1))) #print("-------Messreihe-------------------------") #print("Messreihe:" + str(rl.cbAInScan(0,0,0,300,8000,1))) #print("Messreihe:" + str(rl.cbVInScan(0,0,0,300,8000,1))) #print("Samplerate:" + str(rl.cbInScanRate(0,0,0,8000))) #print("-------Ausgabe-------------------------") print("VoltageValue:" + str(rl.cbVOut(0, 0, 101, 5.0)))