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).
Picoscope 6:
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
I changed the timebase to see if it helped and I'm still not getting the correct data, are there any other discrepancies in my code compared to the Picoscope 6 settings, or is there any other information I can provide that would help with solving this problem?
How do I check the number of active channels in PicoScope?
In my own program I have only called SetChannel for A and B, would I need to call it for the others and then disable them? (I assumed they would all be disabled as default).