Multiple 3205's

 
Post new topic   Reply to topic    Pico Technology Forum Index -> C and C++
Author Message
physicsfaith
Advanced User
Advanced User


Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS

PostPosted: Thu Mar 13, 2008 3:39 pm    Post subject: Multiple 3205's Reply with quote

To hook up multiple 3000 series oscopes, the manual says to use multiple handles, as was noted in topic below this one. The problem is the new canned driver design uses a new syntax, unitOpened.handle, instead of handle by itself. There is then a number it is assigned. The problem is running unitOpened.handle = ps3000_open_unit() more than once results in an error.
Back to top
gruntman
Guru
Guru


Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA

PostPosted: Thu Mar 13, 2008 4:09 pm    Post subject: Reply with quote

physicsfaith,

In order to open multiple units you will need to have mulitple handles. That being said instead of calling unitOpened.handle = ps3000_open_unit() twice you need to call it with different handles like:
unitOpened.handle = ps3000_open_unit();
unitOpened.handle2 = ps3000_open_unit();

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
Back to top
physicsfaith
Advanced User
Advanced User


Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS

PostPosted: Thu Mar 13, 2008 5:54 pm    Post subject: Reply with quote

I tried that first and I still got an error. Perhaps I have something else wrong. Thanks for the advice.
Back to top
gruntman
Guru
Guru


Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA

PostPosted: Thu Mar 13, 2008 6:07 pm    Post subject: Reply with quote

physicsfaith,

Whats the error that you are getting?

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
Back to top
physicsfaith
Advanced User
Advanced User


Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS

PostPosted: Thu Mar 13, 2008 6:43 pm    Post subject: Reply with quote

I just rechecked everything. If you try to use unitOpened.handle2 = ps3000_open_unit it returns "structure has no member named 'handle2'. I haven't downloaded the source files since last fall. Perhaps that is the problem.
Back to top
gruntman
Guru
Guru


Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA

PostPosted: Thu Mar 13, 2008 8:40 pm    Post subject: Reply with quote

physicsfaith,

My apologizes but it seems as i had a typo in the previous post. The way you need to call it is:
unitOpened.handle = ps3000_open_unit();
unitOpened2.handle = ps3000_open_unit();

You will also have to duplicate the unitOpened structure and name the structure as unitOpened2. You can also get around this by not using the unitOpened structure and simply name your handles handle and handle2 or something similar.

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
Back to top
physicsfaith
Advanced User
Advanced User


Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS

PostPosted: Fri Mar 14, 2008 7:00 pm    Post subject: Reply with quote

On the version of ps3000.h .dll and .lib I am using unitOpened2.handle gives the error that the var unitOpened2 is not defined.
Back to top
physicsfaith
Advanced User
Advanced User


Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS

PostPosted: Fri Mar 14, 2008 7:03 pm    Post subject: Reply with quote

Oops...I just saw that you said I would have to define the structure...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> C and C++
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group