Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Using Delphi with Pakbus


mewindy2 Oct 28, 2015 03:58 AM

Hi
I previously had a Delphi compiled program workin with the
pakbus.dll using the pakbus.pas header
and a weatherhawk station
I am now using the latest Dephi compiler
which has some changes needed, e.g pchar is now different
i.e needs to become either pansichar or pwidechar
the question is: does using the pakbus.dll ..will that work with the
latest data logger
or do I need to use the simplepb.dll
and if so do you have a pascal header for that or even better some sample Delphi code ?
Thanks!
Brian Hamilton
weather-display.com


mewindy2 Oct 28, 2015 07:54 PM

Hi
made some progress
I determined that for the latest Delphi compiler I had to replace
pchar with pansichar
Now, the question is, the tables names used with the weatherhawk probably are different for other station /data logger types?
also though it seems the code I have to work with the weatherhawk data logger (RF410) does not open the latest data loggers...
update: seems it does if the address is changed to 1 instead of 4

Update : I have managed to get the original sample.exe program compiled and working with my weather hawk data logger
But things have changed since the weatherhawk for the data loggers...commands/tables/definitions...etc

Update: added ability to set what table field name for a weather data to the example.exe and it worked, for getting windspeed data back :)
Thanks!
Brian

* Last updated by: mewindy2 on 10/29/2015 @ 11:41 AM *


mewindy2 Nov 3, 2015 10:49 PM

Hi
just another udpate:
I got the new simplepb.dll working for all the needed functions now with Delphi :)
Brian
www.weather-display.com

* Last updated by: mewindy2 on 11/3/2015 @ 3:51 PM *

Log in or register to post/reply in the forum.