Test and Measurement Forum

pl1000SetInterval : sdk example != api description

Post your C and C++ discussions here

pl1000SetInterval : sdk example != api description

Postby fred » Tue Dec 05, 2017 3:05 pm

I have a question about the pl1000 SDK :

In the examples they are using :
status = pl1000SetInterval(g_handle, &usForBlock, nSamplesPerChannel, channels, nChannels);
status = pl1000Run(g_handle, nSamples, BM_STREAM);

where nSamples = nSamplesperChannel * nChannels

However in the API description is written for both pl1000SetInterval and pl1000Run :
the total number of samples to be collected across all channels, so both should use nSamples.

What is correct ?
Posts: 0
Joined: Mon Nov 20, 2017 2:45 pm

Re: pl1000SetInterval : sdk example != api description

Postby Hitesh » Tue Dec 05, 2017 5:25 pm

Hi fred,

Unfortunately, there are some errors in the Programmer's Guide and the examples which will be corrected.

Please use the number of samples PER channel in the calls to pl1000SetInterval() and pl1000Run().


Technical Support Engineer
Site Admin
Site Admin
Posts: 2619
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Return to C and C++

Who is online

Users browsing this forum: No registered users and 2 guests