Search found 10 matches

by JavaChips
Fri Aug 05, 2022 12:50 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Re: Wrong ADC values in every other position of the buffer array

Thank you! Your clue was, in fact, exactly where I went wrong. This is actually my first time using JNA, so I had overlooked the part in the documentation that specified how many bits the offset for the memory pointer is when reading an array (as I incremented the index by 1, the offset would be inc...
by JavaChips
Wed Aug 03, 2022 6:51 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Re: Wrong ADC values in every other position of the buffer array

Thanks for organizing the data and noticing this pattern! I also had a feeling this may have to do with Min/Max buffers, which is why I used ps2000aSetDataBuffers() at the time of posting this topic in hopes that either the Max or the Min buffer would give me the correct values. But I found that the...
by JavaChips
Tue Aug 02, 2022 7:08 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Re: Wrong ADC values in every other position of the buffer array

Hi Benno, It's not 16488 every sample -- the values I showed in the picture were only of the first few. There were definitely noise spikes here and there. I inputted a 300Hz 1Vpp sine and square waves. Here are the results. As you can see, every other value seems continuous...the other ones are inco...
by JavaChips
Fri Jul 29, 2022 8:43 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Re: Wrong ADC values in every other position of the buffer array

I've switched back to the simplified version of the code. The chosen range for now is 2V, so using a wave generator, I fed a 1V DC signal into Channel A. Here are the ADC values I am getting. The correct ADC value is 16488. As you can see, every other value is incorrect. https://imgur.com...
by JavaChips
Fri Jul 29, 2022 2:08 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Re: Wrong ADC values in every other position of the buffer array

Thanks for the suggestion Martyn, but that was the original setup I had and I was getting the same results.

Only Channel A was set up and I used ps2000aSetDataBuffer instead.

-JavaChips
by JavaChips
Thu Jul 28, 2022 3:27 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Re: Wrong ADC values in every other position of the buffer array

Unfortunately that does not help. Still getting the same results.

-JavaChips
by JavaChips
Wed Jul 27, 2022 2:29 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Re: Wrong ADC values in every other position of the buffer array

Thanks for the replies. Regarding configuration of channels, I have configured both channels and enabled them, and yet, both buffers have wrong values in every other position. I have also noted that the values returned are 16 bits, so I believe my conversion formula is correct (cannot use the method...
by JavaChips
Tue Jul 26, 2022 4:15 pm
Forum: Projects
Topic: Wrong ADC values in every other position of the buffer array
Replies: 17
Views: 7432

Wrong ADC values in every other position of the buffer array

Hi all, I'm currently writing a Java program to run a 2206B PicoScope in block mode. Something very bizarre is happening: every other value in the buffer array is incorrect. To work around this, I skip these wrong values by incrementing the index by 2 when I read from the buffer array. But I would s...
by JavaChips
Thu Jul 14, 2022 3:09 pm
Forum: General Software Discussions
Topic: Voltage ranges in 2000a guide is missing a range
Replies: 0
Views: 9541

Voltage ranges in 2000a guide is missing a range

Hi all, I am writing a Java program to run my PicoScope 2206B in block mode. I struggled for a couple hours on figuring out why my ADC counts are always capping at half the voltage range I set the channel to (I wanted +/- 2 V, but the ADC counts capped at +/- 1V). I finally realized that the int I p...
by JavaChips
Fri Jun 10, 2022 7:58 pm
Forum: Java
Topic: How to display data after collecting using block mode
Replies: 0
Views: 6464

How to display data after collecting using block mode

Hi,

I'm currently writing a Java program to run the 2206B in block mode, following the Programmer's Guide and Java examples on GitHub closely. However, I'm having trouble figuring out how to display the data. Can anyone give me some ideas? :D

Thanks,
JavaChips