BCS 4.0 .NET API and BCS Temperature Logger
Posted: Wed Jul 15, 2015 6:20 pm
Too long; didn't read? Just download the BCSTempLogger attachment
Unzip and run the executable. If your BCS has the older v3 firmware, use the v3 temp logger below.
While writing the temperature logger found near the end of this thread viewtopic.php?f=13&t=257 I found the need to make my code a little more modular.
To make my life easier, I wrote a quick .net api for dealing with the interactions with the BCS. Well, the theoretical BCS anyways, as I don't actually have a BCS to test with.
Essentially what this library will help you do is create a connection to your BCS and then provide methods to get or set specific pieces of data from it.
For example you can do:
BCSWebConnection connection = new BCSWebConnection(address, port);
BCSWrapper wrapper = new BCSWrapper(connection);
and then you can do
wrapper.GetCurrentTemperatures() which will give you an array of temperatures from the BCS or you can do wrapper.GetTemperatureProbe(probeIndex) which will give you all of the details from a probe (setpoint, etc)
Anyways, here is a zip with the API (BCSNet.Core.dll) as well as an example front end. I would really appreciate anyone's time testing it out. You can reference the BCSNet.Core.dll in your .net project and leverage the work i've done.
I've also added version 1.1.0 to the attachments which includes some customizations requested by a friend - it also saves output and DIN status to the log. You can use the existing version if this isn't useful for you
Unzip and run the executable. If your BCS has the older v3 firmware, use the v3 temp logger below.
While writing the temperature logger found near the end of this thread viewtopic.php?f=13&t=257 I found the need to make my code a little more modular.
To make my life easier, I wrote a quick .net api for dealing with the interactions with the BCS. Well, the theoretical BCS anyways, as I don't actually have a BCS to test with.
Essentially what this library will help you do is create a connection to your BCS and then provide methods to get or set specific pieces of data from it.
For example you can do:
BCSWebConnection connection = new BCSWebConnection(address, port);
BCSWrapper wrapper = new BCSWrapper(connection);
and then you can do
wrapper.GetCurrentTemperatures() which will give you an array of temperatures from the BCS or you can do wrapper.GetTemperatureProbe(probeIndex) which will give you all of the details from a probe (setpoint, etc)
Anyways, here is a zip with the API (BCSNet.Core.dll) as well as an example front end. I would really appreciate anyone's time testing it out. You can reference the BCSNet.Core.dll in your .net project and leverage the work i've done.
I've also added version 1.1.0 to the attachments which includes some customizations requested by a friend - it also saves output and DIN status to the log. You can use the existing version if this isn't useful for you