by srul » Thu Aug 19, 2010 12:32 pm
Hi,
Thanks for your help, I succeded runing your example by changing the function "_getch()" to "getchar()" and "_kbhit()"
to "keyHit()" .
I have some question regarding to your sample:
1.GetTimeBase function: is it function to set the timebase or just discover which timebase available in the scop.
I'm entering squre wave drom the pulse generator and when
I set the PG freq to 1-10Hz i see the data is very well, but when I i set the PG to 1Khz the data is defective.
I think its because I don't change the timebase correctly.
here are the defines that i'm using:
#define TimeBase_100nSec (100e-9*2e7)+1
#define TimeBase_200nSec (200e-9*2e7)+1
#define TimeBase_500nSec (500e-9*2e7)+1
#define TimeBase_1uSec (1e-6*2e7)+1
#define TimeBase_2uSec (2e-6*2e7)+1
#define TimeBase_5uSec (5e-6*2e7)+1
#define TimeBase_10uSec (10e-6*2e7)+1
#define TimeBase_20uSec (20e-6*2e7)+1
#define TimeBase_50uSec (50e-6*2e7)+1
#define TimeBase_100uSec (100e-6*2e7)+1
#define TimeBase_200uSec (200e-6*2e7)+1
#define TimeBase_500uSec (500e-6*2e7)+1
#define TimeBase_1mSec (1e-3*2e7)+1
#define TimeBase_2mSec (2e-3*2e7)+1
#define TimeBase_5mSec (5e-3*2e7)+1
#define TimeBase_10mSec (10e-3*2e7)+1
#define TimeBase_20mSec (20e-3*2e7)+1
#define TimeBase_50mSec (50e-3*2e7)+1
#define TimeBase_100mSec (100e-3*2e7)+1
#define TimeBase_200mSec (200e-3*2e7)+1
#define TimeBase_500mSec (500e-3*2e7)+1
2. my second question is when i'm using thw 'w' key meaning
get triggered streaming , I receive in the data.txt 4 columns,
I understand columns 1 and 2, why do i need columns 3 and 4?
1 2 3 4
10652, 3251, 10020, 3058,
11176, 3411, 10584, 3230,
11652, 3556, 11108, 3390,
12072, 3684, 11564, 3529,
12404, 3785, 11968, 3652,
12704, 3877, 12316, 3759,
12912, 3940, 12616, 3850,
13072, 3989, 12844, 3920,
13160, 4016, 12932, 3947,
13176, 4021, 12964, 3956,
13072, 3989, 12824, 3914,
12912, 3940, 12596, 3844,
12668, 3866, 12300, 3754,
12388, 3780, 11948, 3646,
12020, 3668, 11528, 3518,
11600, 3540, 11020, 3363,
11092, 3385, 10496, 3203,
10564, 3224, 9932, 3031,
10004, 3053, 9320, 2844,
thanks for your help
best regards
israel.