• 大小: 26.42MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-06
  • 语言: 其他
  • 标签: 振动噪音  测试仪  

资源简介

振动噪音分析测试系统的思路提供,是在automax时候做的。

资源截图

代码片段和文件信息

/****************************************************
Chevisif Filter 
僠僃價僔僃僼摿惈

椺乯
儕僢僾儖:
      0.100 [dB]
掅堟捠夁僞僀僾
師悢:   6 師
昗杮壔廃攇悢:
    4.00000 [kHz]
幷抐廃攇悢:
    0.10000 [kHz]



巊梡曽朄
侾乯void coef_iir(short bc short order float fc float fs float lh float rpl)
偼丄侾搙屇傃弌偡丅學悢偺寁嶼傪峴側偆丅

屇傃弌偟椺乯
  coef_iir((short)2 (short)6 (float)(10.0) (float)4.0 (float)1.0 (float)0.1) ; // 2006.06.29
 
俀乯float Chevisif(short order float aa[][10] float bb[][10]float xn)
偼忢帪屇傃弌偡丅栠傝抣偑Filter張棟屻偺Data丅

屇傃弌偟椺乯


****************************************************/
//float u1[3]u2[3]u3[3];

/*
a1(1) =  1.80421344
a2(1) = -0.81819001
b0(1) =  0.00347409
b1(1) =  0.00694817
b2(1) =  0.00347409

a1(2) =  1.88939898
a2(2) = -0.92078790
b0(2) =  0.00780219
b1(2) =  0.01560438
b2(2) =  0.00780219
*/
//float Chevisif(float xn)

// 埲壓偼嶲峫
//float CalcFromTable(float xz float dTbl[][2]short sTblNumshort sOpt)
// dKikaku[0][0] = CalcFromTable((float)m_pShareData->ptn_tbl.step[indx].kikaku[1].low  &mean_inv[0]data_num sCalOpt ); // XY 斀揮偡傞

float an[3][10] ;
float bn[3][10] ;
float uu[3][10] ;

float Chevisif(short order float aa[][10] float bb[][10]float xn)
{
// float yy1   yy2   yy3;
float xx[4];
short i ;

order = (order/2)*2 ;  // 嬼悢偲偡傞丅
xx[0] = xn ;
for(i=0;i<(order/2);i++) {
uu[2][i] = uu[1][i] ;
uu[1][i] = uu[0][i] ;

uu[0][i] = aa[0][i]*xx[i]    + aa[1][i]*uu[1][i] + aa[2][i]*uu[2][i] ;
    xx[i +1] = bb[0][i]*uu[0][i] + bb[1][i]*uu[1][i] + bb[2][i]*uu[2][i] ;
}
return xx[(order/2)];

#if 0 // 6師Filter丂乮Comment傪奜偟偰偼偄偗側偄両両乯
float a11 =  1.86784422;
float a21 = -0.87394802;
float b01 =  0.00152010;
float b11 =  0.00304021;
float b21 =  0.00152010;

float a12 =  1.89000239;
float a22 = -0.90637736;
float b02 =  0.00407806;
float b12 =  0.00815613;
float b22 =  0.00407806;

float a13 =  1.93747832;
float a23 = -0.96477605;
float b03 =  0.00679829;
float b13 =  0.01359659;
float b23 =  0.00679829;

u1[2] = u1[1] ;
u1[1] = u1[0] ;

u1[0] = a11*u1[1] + a21*u1[2] + xn ;
   yy1 = b01*u1[0] + b11*u1[1] + b21*u1[2] ;

u2[2] = u2[1] ;
u2[1] = u2[0] ;

u2[0] = a12*u2[1] + a22*u2[2] + yy1 ;
   yy2 = b02*u2[0] + b12*u2[1] + b22*u2[2] ;

u3[2] = u3[1] ;
u3[1] = u3[0] ;

u3[0] = a13*u3[1] + a23*u3[2] + yy2 ;
   yy3 = b03*u3[0] + b13*u3[1] + b23*u3[2] ;
   
return yy3 ;
#endif

#if 0 // 4師Filter丂乮Comment傪奜偟偰偼偄偗側偄両両乯
/*
a1(1) =  1.09237850
a2(1) = -0.35382086
b0(1) =  0.06498543
b1(1) =  0.12997085
b2(1) =  0.06498543

a1(2) =  1.06673923
a2(2) = -0.69754040
b0(2) =  0.15679510
b1(2) =  0.31359021
b2(2) =  0.15679510

*/
float a11 =  1.80421344;
float a21 = -0.81819001;
float b01 =  0.00347409;
float b11 =  0.00694817;
float b21 =  0.00347409;

float a12 =  1.88939898;
float a22 = -0.92078790;
float b02 =  0.00780219;
float b12 =  0.01560438;
flo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-01-25 11:16  R-0021\automax_adDrawGraph\
     目录           0  2015-07-22 13:48  R-0021\automax_adDrawGraph\alib\
     文件        9680  2007-03-01 14:14  R-0021\automax_adDrawGraph\alib\R0021deftype.BAK
     文件       10038  2007-03-09 17:44  R-0021\automax_adDrawGraph\alib\R0021deftype.h
     文件        2958  2007-02-28 15:29  R-0021\automax_adDrawGraph\alib\R0021defval.BAK
     文件        2958  2007-02-28 15:34  R-0021\automax_adDrawGraph\alib\R0021defval.h
     文件          96  2007-06-07 19:05  R-0021\automax_adDrawGraph\alib\vssver.scc
     文件       30976  2007-06-07 18:44  R-0021\automax_adDrawGraph\automax_adDrawGraph.aps
     文件        2262  2006-11-30 09:57  R-0021\automax_adDrawGraph\automax_adDrawGraph.cpp
     文件        5439  2007-02-23 14:31  R-0021\automax_adDrawGraph\automax_adDrawGraph.dsp
     文件         569  2006-11-30 09:57  R-0021\automax_adDrawGraph\automax_adDrawGraph.dsw
     文件        1479  2006-11-30 09:57  R-0021\automax_adDrawGraph\automax_adDrawGraph.h
     文件      484352  2016-01-25 11:16  R-0021\automax_adDrawGraph\automax_adDrawGraph.ncb
     文件       77312  2016-01-25 11:16  R-0021\automax_adDrawGraph\automax_adDrawGraph.opt
     文件        3497  2007-04-05 17:49  R-0021\automax_adDrawGraph\automax_adDrawGraph.plg
     文件       16691  2007-03-02 13:27  R-0021\automax_adDrawGraph\automax_adDrawGraph.rc
     文件      114465  2007-03-01 16:11  R-0021\automax_adDrawGraph\automax_adDrawGraphDlg.BAK
     文件      115482  2007-04-05 17:28  R-0021\automax_adDrawGraph\automax_adDrawGraphDlg.cpp
     文件        4877  2007-03-01 18:06  R-0021\automax_adDrawGraph\automax_adDrawGraphDlg.h
     文件          64  2007-01-29 13:34  R-0021\automax_adDrawGraph\automax_Checkfft.cpp
     文件         855  2007-02-26 11:20  R-0021\automax_adDrawGraph\ccc.CSV
     文件      244736  2007-03-02 15:15  R-0021\automax_adDrawGraph\CHK.xls
     文件      348160  2007-03-02 15:24  R-0021\automax_adDrawGraph\CHKForMake.xls
     目录           0  2015-07-22 13:48  R-0021\automax_adDrawGraph\common\
     文件       31515  2006-02-04 17:46  R-0021\automax_adDrawGraph\common\AXCommon.cpp
     文件       10012  2006-02-04 17:46  R-0021\automax_adDrawGraph\common\AXCommon.h
     文件        5297  2006-02-04 17:46  R-0021\automax_adDrawGraph\common\colorbtn.cpp
     文件        2490  2006-02-04 17:46  R-0021\automax_adDrawGraph\common\colorbtn.h
     文件        4374  2006-02-04 17:46  R-0021\automax_adDrawGraph\common\CsvIO.h
     文件        1497  2007-02-23 11:49  R-0021\automax_adDrawGraph\common\CSVWriter.cpp
     文件         810  2006-04-13 14:51  R-0021\automax_adDrawGraph\common\CSVWriter.h
............此处省略111个文件信息

评论

共有 条评论