ГОСТ Р ИСО/МЭК 10373-6—2015
Приложение F
(справочное)
Программа для вычисления спектра
Следующая программа, написанная на языке С. дает пример вычисления величины спектра у PICC.
^*%»***»***»***»***»***»***»***»*«fr%*«*fr**%%fr**»***»**»%+**»***»/
/*** This program calculates the Fourier coefficients ***/
/**• оI load tnodulated voltage oi a PICO according **V
/*** the ISC/LEO 10373-6 Test methods ***/
/**• The coefficients are calculated at the frequencies:
**»/
/*** Carrier: Fcm (-13.5600 for 13.56 MHz) ***/
/»** upper sideband: Fcm * fs ***/
/*** Lower sideband: Fcm - rs **»/
/*** rs is the subcarrier frequency and its value is:
**»/
/*** Fcm/16 fox bit rates up to
Lcf
16, F
ck
./8 for a bit rate ***/
/»** of fC/8, FC»/< for a bit rate Of fC/< Cl FCB./2 fOI a ***/
/»** bit rate of fc/2 ***/
/*** Input: ***/
/**• File In CSV Format containing a table of two **•/
/*** columns (time end test PCE output voltage vd, clause 7)»»*/
***/
l
/*** data format of input-lile:***/
* %*
Щ*f
j
/*** - one data-polntper line:**•/
/***<tlmefseconds),sense-coll-voltage(volts|)**v
/*** - contents in ASCII, no headers***/
/*** - data-polnts shall be equidistant in time***/
/♦** - modulation waveform centered**»/
/**• (max. tolerance: half -T subcarrier cycle)
**»/
***/
••• example tor spreadsheet file (start in next line):***/
f*""
(time)(voltage)
/*** 3.00000e-06,1.00***/
/**• 3.00200e-06,1.01***/
/*** , , , . # ***/
/*%**%%*******•**%*%*-*%**♦»%***%**%%**%%**%%**%%**%%**%%**%%**%%•/
/*** RUN:***/
/*** "exeUlename" Hilenimel(.osv) SubcarrierCode |***/
/♦ ••«г*********#*************************************************/
^*%fc**%%**%%* %%**%%* %%**%%**%%* *****
W*
/**• ISC/IEC 10373-6 EFT CALCULATION ***/
/*•* version history: ***/
/»** .JUL 2000, version 1.1: original published versLon***/
/*** APR 2008, version 2.0: add the Bartlett window ***/
/♦** NOV 2008, version 2.1: published version with revision *»*/
/*•♦ SEP 2010,
*
version
*
3.0: support
**
higher
•
subcarxier
’
freq.
*
***/
**«•**%***** *#%*•* *****/
♦include <stdio.Ji>
♦include <s».ring.n>
♦include <stdllb.h>
♦include <math.h’>
♦define MAX_SAMPLES 50000
♦define MAX~POINTS 500
♦define MAX_MOYENNE 200
double pi;/* pl-3.14
---
*/
93