Project

General

Profile

Actions

SPARE Calibrations

Python scrip to build archives

import sys
import os
import shutil
import path
from glob import glob
from lfrcompliance.test_engine.testcontext import *
from lfrcompliance.test_engine.result_loader import *
OUTPUT_FOLDER="/run/media/jeandet/key64/OwnCloud/TESTS_LFR_SPARE_CALIBRATIONS/scripts/tests/inputs/" 

files=glob.glob(OUTPUT_FOLDER+"/TF*.output")

os.chdir("/home/jeandet/Documents/temp")
for file in files:
    res=ResultLoader(file)
    if len(res.PacketsRecords):
        print(res.PacketsRecords)
        archive=os.path.basename(file).split('_')[0]
        print(os.path.basename(file).split('_')[0])
        os.mkdir(archive)
        shutil.copy(res.PacketsRecords[0],archive+"/")
        shutil.copy(file,archive+"/")
        print(os.system("tar cv  {} | 7z a -si -m0=LZMA2 -mx=9 -mmt=on -aoa -mfb=64 {}.tar.7z".format(archive,archive)))
        shutil.rmtree(archive)

Transfer Function

1) Transfer Functions @F0

For the whole test we will use the following parameters:
  • LFR mode= Normal Mode
  • ASM period = 4s
  • Snapshots period = 22s
  • Input signal amplitude 1.4Vp

a) Low Frequencies and FFT frequencies

7 frequencies: from 12Hz to 84Hz with ∆f = 12Hz
128 frequencies: from 96Hz to 12288Hz with ∆f = 96Hz

View measurements...

b) Frequencies > F0/2

24 frequencies: from 13056Hz to 30720Hz with ∆f = 768Hz

View measurements...

2) Transfer Functions @F1

a) Low Frequencies

  • LFR mode= SBM1
  • ASM period = 32s
  • Snapshots period = 32s
  • Input signal amplitude 3Vp
  • Step duration = 420s

10 frequencies: from 0.01Hz to 0.1Hz with ∆f = 0.01Hz

View measurements...



Updated by Alexis Jeandet almost 8 years ago · 10 revisions

Also available in: PDF HTML TXT