Test and Measurement Forum

Multiple 3205's

Post your C and C++ discussions here

Multiple 3205's

Postby physicsfaith » Thu Mar 13, 2008 3:39 pm

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.
physicsfaith
Active User
Active User
 
Posts: 10
Joined: Thu Jul 12, 2007 3:26 pm
Location: Manhattan, KS

Postby gruntman » Thu Mar 13, 2008 4:09 pm

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
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Postby physicsfaith » Thu Mar 13, 2008 5:54 pm

I tried that first and I still got an error. Perhaps I have something else wrong. Thanks for the advice.
physicsfaith
Active User
Active User
 
Posts: 10
Joined: Thu Jul 12, 2007 3:26 pm
Location: Manhattan, KS

Postby gruntman » Thu Mar 13, 2008 6:07 pm

physicsfaith,

Whats the error that you are getting?

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Postby physicsfaith » Thu Mar 13, 2008 6:43 pm

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.
physicsfaith
Active User
Active User
 
Posts: 10
Joined: Thu Jul 12, 2007 3:26 pm
Location: Manhattan, KS

Postby gruntman » Thu Mar 13, 2008 8:40 pm

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
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Postby physicsfaith » Fri Mar 14, 2008 7:00 pm

On the version of ps3000.h .dll and .lib I am using unitOpened2.handle gives the error that the var unitOpened2 is not defined.
physicsfaith
Active User
Active User
 
Posts: 10
Joined: Thu Jul 12, 2007 3:26 pm
Location: Manhattan, KS

Postby physicsfaith » Fri Mar 14, 2008 7:03 pm

Oops...I just saw that you said I would have to define the structure...
physicsfaith
Active User
Active User
 
Posts: 10
Joined: Thu Jul 12, 2007 3:26 pm
Location: Manhattan, KS


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests