Test and Measurement Forum

PL1000 overflow problems

Post your C and C++ discussions here

PL1000 overflow problems

Postby scosu » Tue Aug 24, 2010 1:00 pm

Hi,

we bought some days ago a picolog 1216 and created a program to stream the values from 6 channels to a csv file.
The problem is that the channels in the value array we get from the getValues function, normal [Channel1, Channel2, Channel3,...], swaps randomly if there are overflows. So the values suddenly are in this order for example: [Channel1, Channel4, Channel3,...].

Can someone explain why this happens and how we can handle this?

Thanks for help

Markus
scosu
Newbie
 
Posts: 0
Joined: Tue Aug 24, 2010 12:48 pm

Re: PL1000 overflow problems

Postby Robin » Thu Aug 26, 2010 1:03 pm

Hi Markus

The only possible cause of channels swapping I can think of is other processes running not allowing the driver's thread to run.

Are you running any high priority or demanding processes at the same time?

Does your code do something different when an overflow occurs?

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: PL1000 overflow problems

Postby scosu » Fri Aug 27, 2010 11:09 am

no, there are no other high priority processes. The overflows are not handled different.

We solved the problem by increasing the sampleinterval from 10µs to 50µs per active channel.
scosu
Newbie
 
Posts: 0
Joined: Tue Aug 24, 2010 12:48 pm


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests