文件名称:轴承振动不平衡故障数据.zip
文件大小:38.61MB
文件格式:ZIP
更新时间:2023-01-07 07:51:00
机器振动数据
转速900,轴承型号:n205m, 压力:0,采样频率2000hz 读取bit文件函数 def readBitFile(pathname): f = open(pathname, "rb") data = f.read(4) daq_id = struct.unpack('i', data)[0] data = f.read(4) channel_num = struct.unpack('i', data)[0] data = f.read(8) sample_tm = int(struct.unpack('Q', data)[0]/10000000 - 8*3600) data = f.read(4) _ = struct.unpack('i', data)[0] data = f.read(4) _ = struct.unpack('i', data)[0] data = f.read(4) sample_rate = struct.unpack('i', data)[0] data = f.read(8) _ = int(struct.unpack('Q', data)[0]/10000000 - 8*3600) data = f.read(4) sample_count = struct.unpack('i', data)[0] data = f.read(4*sample_count) samples = struct.unpack('%df'%sample_count, data) f.close() return({'daq_id':daq_id, 'channel_num':channel_num, 'sample_tm':sample_tm, 'sample_rate':sample_rate, 'sample_count':sample_count, 'samples':samples})