Test and Measurement Forum

Pico4000 wrapper - missing function

Post your .Net discussions here

Pico4000 wrapper - missing function

Postby meereck » Mon Jul 28, 2014 10:01 am

Hello,
is there any reason why ps4000SetDataBuffer() is not "DLLImported"in the C# wrapper?
The docs says that ps4000SetDataBuffer shall be used for non-aggregated data, whilst ps4000SetDataBuffers() for aggregated data, but ps4000SetDataBuffer is missing.

Regards, Meereck
meereck
Newbie
 
Posts: 0
Joined: Mon Jul 28, 2014 9:57 am

Re: Pico4000 wrapper - missing function

Postby Hitesh » Thu Jul 31, 2014 10:04 am

Hi Meereck,

Data collected without using aggregation will be written to the maximum buffer for the channel by the driver when the ps4000SetDataBuffers function has been used to set the buffers.

If you need the definition for the ps4000SetDataBuffer function, you can add the following to the PS4000Imports.cs file:

Code: Select all
[DllImport(_DRIVER_FILENAME, EntryPoint = "ps4000SetDataBuffer")]
        public static extern short SetDataBuffer(
                                                short handle,
                                                Channel channel,
                                                short[] buffer,
                                                int bufferLth);


This will appear in the next release of the SDK.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2004
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Pico4000 wrapper - missing function

Postby meereck » Thu Jul 31, 2014 1:59 pm

That's what I did, just wanted to make sure there this function is not missing for a reason.

Cheers
meereck
Newbie
 
Posts: 0
Joined: Mon Jul 28, 2014 9:57 am


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests