...
time,vals = getasyncsinglevalue.getAsyncSingleValue(abasedir, measurement, powermodule, achannelcode, astarttime, aendtime, avaluetype)
plt.plot(time,vals)
...
Laden von transienten Daten
...
astartoffset = 0
amaxsize = 0
#Laden der transienten Daten
data = numpy.array(gettransient.getTransient(afile,achannelindex,astartoffset,amaxsize))
#Laden der Abtastrate aus der *.amc Datei um Informationen über die Abtastrate zu erhalten
amc_path = ‘C:/test_file/M_20201202_120611_B5EDFC5F-31BD-4851-BC07-922E0C35B418/M_20201202_120611_B5EDFC5F-31BD-4851-BC07-922E0C35B418.amc'
f = open(amc_path )
info_meas= json.load(f)
samplerate = info_meas['inputs']['analog']['samplerate']
f.close()
data = numpy.array(gettransient.getTransient(afile,achannelindex,astartoffset,amaxsize))
time = numpy.arrang(0,len(data),1)/samplerate
plt.plot(time,data)