-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfaradayScanAnalysisTools.h
More file actions
40 lines (32 loc) · 1.02 KB
/
Copy pathfaradayScanAnalysisTools.h
File metadata and controls
40 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
Program to record polarization.
RasPi connected to USB 1208LS.
FARADAY SCAN
use Aout 0 to set laser wavelength. see page 98-100
usage
$ sudo ./faradayscan <aoutstart> <aoutstop> <deltaaout> <comments_no_spaces>
2015-12-31
added error calculations. see page 5 and 6 of "FALL15" lab book
*/
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <asm/types.h>
#include "mathTools.h" //includes stdDeviation
#define FOI 4
int plotData(char* fileName);
int plotRawData(char* fileName);
int calculateNumberDensity(char* fileName,int leftDataExclude, int rightDataExclude);
int recordNumberDensity(char* fileName);
int analyzeData(char* fileName, int runs, int revolutions, int dataPointsPerRev,int frequencyOfInterest);
int getNumberOfAouts(char* fileName);
int getRevPerRun(char* filename);
int getRuns(char* filename);
int getStepsPerRev(char* filename);