How to select Channel B (2203 + Delphi 7)

Post general discussions on using our drivers to write your own software here
Post Reply
opteron47

How to select Channel B (2203 + Delphi 7)

Post by opteron47 »

Hi

Channel A works fine but when I select Channel B nothing comes through. What's the procedure for changing channels during run-time in fast-streaming mode?

Thanks

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: How to select Channel B (2203 + Delphi 7)

Post by Chris »

You need to set up / select the channel you need before calling ps2000_run_straming_ns.

You can't change channels while the device is streaming.

See the Fast streaming mode section of the ps2000 programmers guide (ps2000pg.en.pdf) that can be downloaded with the sdk from the software section of the www.picotech.com website

jkahrs
Newbie
Posts: 0
Joined: Fri Dec 31, 2010 2:04 pm

Re: How to select Channel B (2203 + Delphi 7)

Post by jkahrs »

I have the same problem with PS2205 running on Linux. As suggested by you, I set up the properties of the channel before using ps2000_run_straming_ns, but I never succeeded in getting anything other than 0 bytes on channel B. As suggested by you, I never tried to change the channel during acquisition and I read the programmer's guide very carefully. So I wonder how I can make channel B return something other than 0 bytes.

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: How to select Channel B (2203 + Delphi 7)

Post by Chris »

Make sure you have chanel B enabled.

For Windows users, the console example in the sdk has a fast streaming section.

You will need to modify the get_info section of the code to set unitOpened.channelSettings [PS2000_CHANNEL_B].enabled = 1;

Post Reply