pl1000SetInterval : sdk example != api description

Post your C and C++ discussions here
Post Reply
fred
Newbie
Posts: 0
Joined: Mon Nov 20, 2017 2:45 pm

pl1000SetInterval : sdk example != api description

Post by 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 ?

Hitesh
Site Admin
Site Admin
Posts: 2829
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: pl1000SetInterval : sdk example != api description

Post by 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().

Regards,
Hitesh

Technical Support Engineer

Post Reply