Test and Measurement Forum

Double functions in PicoScopexxxx.dll

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

Double functions in PicoScopexxxx.dll

Postby hansi9990 » Sun Jan 28, 2018 11:53 am

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?
hansi9990
Newbie
 
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Re: Double functions in PicoScopexxxx.dll

Postby Martyn » Mon Jan 29, 2018 7:32 am

Just use the functions detailed in the Programmer's Guide and the API header file.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2906
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Double functions in PicoScopexxxx.dll

Postby hansi9990 » Tue Jan 30, 2018 5:42 am

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.
hansi9990
Newbie
 
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Re: Double functions in PicoScopexxxx.dll

Postby Martyn » Tue Jan 30, 2018 6:41 am

Which device do you have, and which example from our GitHub Pages are you using ?
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2906
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Double functions in PicoScopexxxx.dll

Postby hansi9990 » Sat Feb 03, 2018 11:52 am

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.
hansi9990
Newbie
 
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Re: Double functions in PicoScopexxxx.dll

Postby Martyn » Wed Feb 14, 2018 10:42 am

Do the examples work as expected ?

If not remove the -2 from the function names.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2906
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Double functions in PicoScopexxxx.dll

Postby hansi9990 » Wed Feb 14, 2018 6:12 pm

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?
hansi9990
Newbie
 
Posts: 0
Joined: Tue Mar 14, 2017 7:51 pm

Re: Double functions in PicoScopexxxx.dll

Postby Martyn » Wed Feb 14, 2018 7:04 pm

There aren't two functions in the dll, it is Labview that is creating this effect.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2906
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests