Pico4000 wrapper - missing function

Post your .Net discussions here
Post Reply
meereck
Newbie
Posts: 0
Joined: Mon Jul 28, 2014 9:57 am

Pico4000 wrapper - missing function

Post by meereck »

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

Hitesh

Re: Pico4000 wrapper - missing function

Post by Hitesh »

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,

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

Re: Pico4000 wrapper - missing function

Post by meereck »

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

Cheers

Post Reply