Test and Measurement Forum

PT104 - unstable

Post any questions you may have about our current range of USB data loggers

PT104 - unstable

Postby Knud-Erik Fredfeldt » Wed Dec 09, 2009 9:35 pm

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
Knud-Erik Fredfeldt
 

Re: PT104 - unstable

Postby ziko » Fri Dec 11, 2009 1:09 pm

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: PT104 - unstable

Postby Knud-Erik Fredfeldt » Tue Dec 22, 2009 3:40 pm

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

Postby Knud-Erik Fredfeldt » Fri Dec 25, 2009 9:41 am

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
Knud-Erik Fredfeldt
 


Return to USB PC Data Loggers

Who is online

Users browsing this forum: No registered users and 0 guests