I'm using (trying to use ) the PT104 data logger to get temperatures from 3 PT100 probes. My program is in VB.NET and I'm using the provided dll.
When I use the pt104_open_unit function, I always get something returned, even when testing another com port. The driver information says that 'TRUE' is return when the driver successfully opens the PT-104. I'm using the following declaration :
Do you have the same problem if you use our Excel example (PT10432.xls)?
It could be something to do with data types. The driver function returns a short (16 bits). It looks like you are specifying a 32-bit integer as the return type. Have you tried using a short?
Thanks for the advice, it works when using Short (or Ushort).
But I still got 'TRUE' returned when I'm using pt104_set_channel, even when no probe is connected. It seems to me that it just indicates that PT104 is working correctly on this channel, not that a reading can be taken.
Is there a way to check if a probe is connected instead of 1) setting the channel, 2) taking a reading and 3) evaluating the value returned ?