Test and Measurement Forum

How to select Channel B (2203 + Delphi 7)

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

How to select Channel B (2203 + Delphi 7)

Postby opteron47 » Fri Jan 28, 2011 10:20 am

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
opteron47
 

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

Postby Chris » Fri Jan 28, 2011 3:04 pm

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
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)

Postby jkahrs » Mon Feb 14, 2011 7:48 pm

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.
jkahrs
Newbie
 
Posts: 0
Joined: Fri Dec 31, 2010 2:04 pm

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

Postby Chris » Tue Feb 15, 2011 4:53 pm

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;
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 2 guests