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.

CR 3000 control via website


bsssc Mar 15, 2011 02:08 PM

Hi,

i like to control some SDM-CD8S Ports of the CR-3000 via a website solution, to switch on an off some devices. But i don't have any idea how to solve this problem.

Is there a solution to give some parameters back via ftp or serial console ?

Or are there other solutions ?

thank you for some reply....


jtrauntvein Mar 16, 2011 02:33 AM

The CR3000 has a built-in HTTP server that can serve both static web pages as well as pages generated within WebPageBegin() and WebPageEnd() instructions in the CRBasic program. In addition to this, the web server has some "canned" commands that can be used to obtain data and to set variables. Future operating systems are going to expand this innate capability greatly. In the meantime, you can find descriptions of the logger web services in the CRBasic help that comes with LoggerNet.


bsssc Mar 18, 2011 01:46 PM

Hi,

thank you for this hint. I've solved the problem with:
command=SetValue&table=public&field=swtich&value=0

it works fine, but when i restart the cr3000 the logger forgets the last status of the switch. For Example bevor the restart the switches 1,2 are on and switch 3,4 are off.
after the restart switch 1,2,3,4 are all off.
Is it possible to save the switch status before reboot ?


jtrauntvein Mar 18, 2011 05:09 PM

If you place a PreserveVariables instructions at the beginning of your program, the datalogger will preserve ALL public variables through the power up process.


bsssc Mar 20, 2011 12:24 PM

Thank you, that i was looking for.

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