-
Notifications
You must be signed in to change notification settings - Fork 0
/
NIDAQreader.h
executable file
·58 lines (52 loc) · 1.77 KB
/
NIDAQreader.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// NIDAQreader.h
// CPTTestApp
//
// Created by Kalanyu Zintus-art on 12/8/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import "KoikeFilter.h"
#import <Foundation/Foundation.h>
#import "NIDAQmxBase.h"
@protocol NIDAQreaderProtocol <NSObject>
- (void)incomingStream:(NSMutableArray *)data;
@end
@interface NIDAQreader : NSObject
{
NSMutableArray *incomingData;
NSMutableArray *normalizeBuffer;
NSMutableArray *zscoreBuffer;
NSMutableArray *zscoreParameters;
NSMutableArray *normalizeParameters;
id<NIDAQreaderProtocol> delegate;
float64 sampleRate, currentIndex;
int32 pointsToRead, totalRead, noOfChannels, gainMultiplier;
TaskHandle taskHandle;
BOOL running;
NSString *channels;
CKoikeFilter *koikeFilters;
NSFileManager *fileManager;
NSFileHandle *fileHandle;
BOOL rectify;
}
@property (nonatomic, retain) id<NIDAQreaderProtocol> delegate;
@property (nonatomic, retain) NSMutableArray *incomingData;
@property float64 sampleRate;
@property int32 pointsToRead;
@property int32 totalRead;
@property int32 noOfChannels;
@property int32 gainMultiplier;
@property BOOL running, rectify;
@property (retain) NSString *channels;
@property (nonatomic, retain) NSMutableArray *normalizeBuffer;
@property (nonatomic, retain) NSMutableArray *zscoreBuffer;
@property (nonatomic, retain) NSMutableArray *zscoreParameters;
@property (nonatomic, retain) NSMutableArray *normalizeParameters;
@property (nonatomic, retain) NSFileHandle *fileHandle;
- (id)initWithNumberOfChannels:(int)numbers andSamplingRate:(int)samplingRate;
- (void)activateKoikefilterWithBuffersize:(int)bsize;
- (BOOL)activateNormalizationWithBufferSize:(int)bsize;
- (BOOL)activateZscoreWithBufferSize:(int)bsize;
- (void)startCollection;
- (void)stop;
@end