Double functions in PicoScopexxxx.dll

Post general discussions on using our drivers to write your own software here
Post Reply
hansi9990
Newbie
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Double functions in PicoScopexxxx.dll

Post by hansi9990 »

Hi

Why there are all Functions in Picoscopexxxx.dll double?
As Example in Picoscope2000a.dll there is the Function "ps2000aOpenUnit" and "ps2000aOpenUnit-2", what is that for?

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Double functions in PicoScopexxxx.dll

Post by Martyn »

Just use the functions detailed in the Programmer's Guide and the API header file.
Martyn
Technical Support Manager

hansi9990
Newbie
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Re: Double functions in PicoScopexxxx.dll

Post by hansi9990 »

That means, for example, that for ps2000a.dll should only use the functions ending without "_2"?
Then it would be very confusing things that in the examples used only those with "_2" ending functions.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Double functions in PicoScopexxxx.dll

Post by Martyn »

Which device do you have, and which example from our GitHub Pages are you using ?
Martyn
Technical Support Manager

hansi9990
Newbie
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Re: Double functions in PicoScopexxxx.dll

Post by hansi9990 »

Hi

Sorry for delay ;)

I use the LabView examples https://github.com/picotech/picosdk-ni-labview-examples.
In almost all examples for Picoscope 2000A series (I own a Picoscope 2006B) the property nodes use the -2 Functions. That what confused me a bit.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Double functions in PicoScopexxxx.dll

Post by Martyn »

Do the examples work as expected ?

If not remove the -2 from the function names.
Martyn
Technical Support Manager

hansi9990
Newbie
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Re: Double functions in PicoScopexxxx.dll

Post by hansi9990 »

Yes, the Examples works with the -2 Functions, and the Funktions without the -2 works also.
But I do not understand for what two identical functions are good?

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Double functions in PicoScopexxxx.dll

Post by Martyn »

There aren't two functions in the dll, it is Labview that is creating this effect.
Martyn
Technical Support Manager

Post Reply