Test and Measurement Forum

Reading same values on both channels of PicoScope 2204

Post your Linux discussions here

Reading same values on both channels of PicoScope 2204

Postby piparum » Sun Jan 03, 2010 1:51 pm

Hello
Wrote a small test program to read values on both channels of a PicoScope 2204. To my surprise, I read identical values on both channels, when running the program in Linux. However, when running SAME program under Windows XP, I got different measurements from the two channels.

On Linux, values of both channels are set to the values of channel A.

Setup:
Same computer (changed HD to run the different OSes), same PicoScope: 2204, same input (channel A 12V sine, channel B shorted).
Linux: Fedora 10, libps2000-2.0.7.7-1.i386.rpm, libps2000.so.2.0.7

Windows: Windows XP, PicoScope6_r6_3_43 Driver, ps2000sdk_r6_3_43_0 SDK, MinGW compiler

Any ideas why I get this strange result?

Attached is the source of the test program.
Attachments
picotest.cpp
(1.93 KiB) Downloaded 237 times
piparum
Newbie
 
Posts: 0
Joined: Sun Jan 03, 2010 12:45 pm

Re: Reading same values on both channels of PicoScope 2204

Postby KennyM » Thu Feb 11, 2010 4:29 pm

The only thing I can see strange in your code (after a quick look) is that you are using PS2000_RISING for your trigger on CHANNEL B, but you say you have channel B shorted to ground.
-Kenny M.
User avatar
KennyM
Active User
Active User
 
Posts: 19
Joined: Mon Sep 15, 2008 5:51 pm

Re: Reading same values on both channels of PicoScope 2204

Postby Teflik » Wed Dec 01, 2010 2:58 am

Hello, I'm getting the same problem.

I have a PicoScope 2204. I've tried this on Fedora 12, and Ubuntu 10.04.1. Both systems are x86_64. The library is libps2000.so.2.0.7.

Both of these functions:
- ps2000_get_times_and_values() and
- ps2000_get_values()

only return data for channel_A, but copied to both channel_A, and channel_B. (ie, I can't get data for channel_B when getting block data.)

Is there any chance of a bugfix?

-Mark
(I purchased a PicoScope 2204 to use with Linux. I do not use Windows.)
Teflik
Newbie
 
Posts: 0
Joined: Sat Nov 27, 2010 7:11 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests