PL1000 overflow problems

Post your C and C++ discussions here
Post Reply
scosu
Newbie
Posts: 0
Joined: Tue Aug 24, 2010 12:48 pm

PL1000 overflow problems

Post by scosu »

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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: PL1000 overflow problems

Post by Robin »

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

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

Re: PL1000 overflow problems

Post by scosu »

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.

Post Reply