Hi Bob,
I have been playing around with your demo and the program I most recently uploaded and am still having difficulties getting the x scale right. I think what is complicating it is the Channel Writer is sending data packets of 128 samples (assuming sampling freq is 2048). This was recommended in another thread so that I wouldn't run into buffering issues. I am stuck and not sure what to do next.
If I am collecting a trial at 2048 Hz and for 5s and want my chart to have an Xaxis reflecting the entire duration of a trial, this is what I would expect for waveform chart properties:
- XScale.Maximum = 5
- XScale.Multiplier = 0.000488281; how does this get changed if the Channel Reader is spitting out 128 samples every iteration? I know the display loop runs 80X.
If I wanted my X axis to reflect the total number of samples, I would assume:
- XScale.Maximum = 10,240
- XScale.Multiplier = 1; again, how does this get influenced by the Channel Reader spitting out 128 samples every iteration?
Alternatively, I wouldn't need to display every sample of data but am not sure what would be the first step in decimating the data to display.
Thanks in advance,
Anton