PT104 - unstable

Post any questions you may have about our current range of USB data loggers
Post Reply
Knud-Erik Fredfeldt

PT104 - unstable

Post by Knud-Erik Fredfeldt »

For several years my PT104 has worked OK on a Windows XP with a Delphi program.
Now I have changed platform, using an ASUS EEE portable PC running Windows XP but with only USB connections.
Some years ago I bought at PICO an USB-to-PT104 converter. In the program the PORT-number is changed from 1 to 3.
Now the program is unstable and crashes now and then. The converter stops flashing.
Best regards

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: PT104 - unstable

Post by ziko »

Hi,

Have you used a different version of the software? What version are you currently running? Have you got any power saving modes on?

Kind regads
Ziko

Technical Specialist

Knud-Erik Fredfeldt

Re: PT104 - unstable

Post by Knud-Erik Fredfeldt »

Thank you for your answers.
I have downloaded your latest software .. no change.
All power saving modes off.
Could it be a timing problem? The new PC is asking for a measurement faster than the old PC.
I have tried with the USB-port on the old PC, works fine.
I have tried with an other other PC ASUS 1008HA, running Windows 7, same problem.
Kind Regards
Knud-Erik

Knud-Erik Fredfeldt

Re: PT104 - unstable

Post by Knud-Erik Fredfeldt »

It looks like it is a timing problem.
Inserting pauses and removing the wrong data have solved the problem.

Function HentTemp(kanal:integer):real;

var

t1, t2 : integer;

begin

repeat

repeat

ok := pt104_get_value (t1,port, kanal, FALSE);

if not ok then sleep(10);

until ok;

sleep(10);

repeat

ok := pt104_get_value (t2,port, kanal, FALSE);

if not ok then sleep(10);

until ok;

until (t1 = t2);

HentTemp := t1/1000;

end; // HentTemp



Regards
Knud-Erik

Post Reply