|
|
| Author |
Message |
physicsfaith Advanced User

Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS
|
Posted: Thu Mar 13, 2008 3:39 pm Post subject: Multiple 3205's |
|
|
| 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

Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA
|
Posted: Thu Mar 13, 2008 4:09 pm Post subject: |
|
|
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

Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS
|
Posted: Thu Mar 13, 2008 5:54 pm Post subject: |
|
|
| 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

Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA
|
Posted: Thu Mar 13, 2008 6:07 pm Post subject: |
|
|
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

Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS
|
Posted: Thu Mar 13, 2008 6:43 pm Post subject: |
|
|
| 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

Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA
|
Posted: Thu Mar 13, 2008 8:40 pm Post subject: |
|
|
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

Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS
|
Posted: Fri Mar 14, 2008 7:00 pm Post subject: |
|
|
| 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

Joined: 12 Jul 2007
Posts: 10
Location: Manhattan, KS
|
Posted: Fri Mar 14, 2008 7:03 pm Post subject: |
|
|
| Oops...I just saw that you said I would have to define the structure... |
|
| Back to top |
|
 |
|