Find file
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (39 sloc) 1.33 KB
/* -----------------------------------------------------------------------------
BrainBay Version 1.7, GPL 2003-2010, contact:
MODULE: OB_COUNTER.H: contains the COUNTER-Object
Author: Chris Veigl
This Object outputs a counter value at it's port and displays the value in a
seperate Window. It can count transistions of the input to or from INVALID_VALUE
or use the input direclty (without counting)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; See the
GNU General Public License for more details.
#include "brainBay.h"
class COUNTEROBJ : public BASE_CL
DWORD dwRead,dwWritten;
LONGLONG period,prev_time;
float input,oldinput;
HFONT font;
float countervalue;
float resetvalue;
int showcounter;
int fontsize;
int mode, integer;
int top,left,bottom,right;
char wndcaption[50];
COLORREF fontcolor,bkcolor;
COUNTEROBJ(int num);
void make_dialog(void);
void session_reset(void);
void load(HANDLE hFile);
void save(HANDLE hFile);
void incoming_data(int port, float value);
void update_inports(void);
void work(void);