RH-02 & COM

Post general discussions on using our drivers to write your own software here
Post Reply
Guest

RH-02 & COM

Post by Guest » Thu Oct 09, 2003 1:53 pm

Hi, I need a couple of tips:

I'm able to read the values from the sample Delphi program, but I'm having difficulties with my COM App.

rh02_open_unit returns TRUE, but rh02_get_value returns FALSE

How can I debug the rh02_get_value function?

Regards,
Ole Ivar Gundersen

User avatar
markspencer
Site Admin
Site Admin
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Post by markspencer » Fri Oct 10, 2003 7:17 am

Hi,

It is not possible to debug the function get_value, since the .dll is in compiled format.

When you first call the RH-02 you will get false returned for a couple of seconds until the first correct temperature reading is produced.

You could try using get cycle to find out if a new set of readings have been taken.

Try the RH-02 on with Picolog to check that the unit is connecting and giving values in this application.

Best regards,
Regards,

Mark Spencer

Guest

Post by Guest » Fri Oct 10, 2003 8:20 am

Hi, Mark

Thanx.

I added a Sleep(500) after opening the RH-02 and now it seems to be working.

Ole I.

Post Reply