I'm trying to write a program to do some basic digital signal processing, and I want the program to mimic the data capture that I get when using Picoscope 6.
At the moment I am currently using Block Mode to capture the signal (all the signal is sent within 50ms).
With the settings I am using in Picoscope 6 I am receiving the correct data whereas in my own program, although I am attempting to mimic exactly the same settings from Picoscope 6; I am receiving a completely different signal.
I am just wondering if Picoscope 6 performs any actions on the data after receiving the data from the oscilloscope?
Below are my settings for PicoScope 6, and how I am configuring the unit in my own program (C++ 2206A).
Channel A: ±200 mV, AC
Channel B: ±2 V, AC
Trigger: Single, Channel B, Rising Edge, 60 mV Threshold, 5% Pre-trigger
Left Axis: 200 mV to -200 mV
Right Axis: 2 V to -2 V
Bottom Axis: -2.5 ms to 47.5 ms
Sample Interval: 3072 microseconds
No. of Samples: 16276
ps2000aSetChannel( Handle, PS2000A_CHANNEL_A, TRUE, PS2000A_AC, PS2000A_200MV, 0 )
ps2000aSetChannel( Handle, PS2000A_CHANNEL_B, TRUE, PS2000A_AC, PS2000A_2V, 0 )
ps2000aGetTimebase2( Handle, 194, 16276, NULL, 0, MaxSamples, 0 )
ps2000aSetSimpleTrigger( Handle, 1, PS2000A_CHANNEL_B, 975 (ADC Count equivalent to 60 mV?), PS2000A_RISING, 0, 0 )
ps2000aRunBlock( Handle, ( MaxSamples / 100 * 5 ), ( MaxSamples / 100 * 95 ), 194, 0, TimeIndisposed, 0, NULL, NULL )
I am using PS2000A_RATIO_MODE_NONE with Down Sample Ratio = 1