|
|
| Author |
Message |
Guest
|
Posted: Thu Oct 09, 2003 1:53 pm Post subject: RH-02 & COM |
|
|
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 |
|
| Back to top |
|
 |
markspencer Site Admin

Joined: 07 May 2003
Posts: 610
|
Posted: Fri Oct 10, 2003 7:17 am Post subject: |
|
|
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, |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Oct 10, 2003 8:20 am Post subject: |
|
|
Hi, Mark
Thanx.
I added a Sleep(500) after opening the RH-02 and now it seems to be working.
Ole I. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|