{"id":6831,"date":"2018-09-19T10:45:14","date_gmt":"2018-09-19T09:45:14","guid":{"rendered":"http:\/\/eubrewnet.aemet.es\/cost1207\/?p=6831"},"modified":"2019-09-27T12:28:25","modified_gmt":"2019-09-27T11:28:25","slug":"python-interpreter-for-the-brewers-control-software","status":"publish","type":"post","link":"https:\/\/eubrewnet.aemet.es\/cost1207\/2018\/09\/19\/python-interpreter-for-the-brewers-control-software\/","title":{"rendered":"Python interpreter, for the brewer\u2019s control software."},"content":{"rendered":"<p><span style=\"font-weight: 400;\">This interpreter proposed by \u00a0<\/span><a href=\"https:\/\/bitbucket.org\/boriel\/zxbasic\"><span style=\"font-weight: 400;\">Jos\u00e9 Rodr\u00edguez<\/span><\/a><span style=\"font-weight: 400;\"> as part of the activities of the \u00a0<\/span><a href=\"http:\/\/eubrewnet.aemet.es\/\"><span style=\"font-weight: 400;\">ACTION COST ES1207 EUBREWNET<\/span><\/a><span style=\"font-weight: 400;\">, has as main objective to develop a python interpreter for GWBASIC, \u00a0to allow run the brewer operative software in different operative systems, without the actual limitation of using it only in 32 bits windows versions. With an open access to the sourcecode of the project, it is opened the door to a wide variety of modifications and customizations, that allows the development of new experimental routines, and intercommunicate the brewer software with other applications. \u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Daniel Santana and N\u00e9stor Morales have developed this project with the collaboration of the RBCC-E members, Alberto Redondas, Sergio Le\u00f3n, Virgilio Carre\u00f1o, the Dr. Manuel Rodr\u00edguez Valido as the coordinator of the Industrial Engineering Smart sensor department of the La Laguna University (ULL), and with the collaboration of the Sieltec company. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The project took as a starting point an already existing GWBASIC interpreter, made by Rob Hagemans (<\/span><a href=\"https:\/\/github.com\/robhagemans\/pcbasic\/\"><span style=\"font-weight: 400;\">PCBASIC<\/span><\/a><span style=\"font-weight: 400;\">), in which in a collaborative way the source code was modified to allow a proper communication with the Brewer spectrophotometers, using modern computers with 64bits processors.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The code of the resulting project, called <\/span><a href=\"https:\/\/github.com\/Danitegue\/PCBRW\"><span style=\"font-weight: 400;\">PCBRW<\/span><\/a><span style=\"font-weight: 400;\">, is open source which allows a wide variety of research possibilities such as the possibility of intercepting the communications between the instrument and the interpreter, run python routines from the BASIC code, and interconnect the brewer software with other applications. <\/span><\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"font-weight: 400;\">Quick instructions:<\/span><\/h1>\n<p><span style=\"font-weight: 400;\">&#8211;<\/span><span style=\"font-weight: 400;\">Install python 2.7. (Or Anaconda package with python 2.7)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">-Install the python needed extra libraries: pip install pysdl2 numpy pygame pyaudio pyserial<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">-Install git<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">From the git shell, clone recursively the repository into C:\\ (This will create the repository folder C:\\PCBRW), using the command:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git clone &#8211;recursive <\/span><a href=\"https:\/\/github.com\/Danitegue\/PCBRW\"><span style=\"font-weight: 400;\">https:\/\/github.com\/Danitegue\/PCBRW<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">If the repository was already cloned in the past, one could also update it with the command \u201cgit pull\u201d, from the <\/span><span style=\"font-weight: 400;\">C:\\PCBRW directory.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once the repo has been cloned, one could see some pre-configured pcbasic launchers in the root folder, for example for the instrument Brewer 185, and brewer software v4.10, the launcher would be \u00a0\u201cC:\\PCBRW\\Launcher185_410_pcbasic_brewer.bat\u201d. One should make a copy of the proper launcher, and adapt it, with the paths of the brewer software, pcbasic and python.exe accordingly to the user installation folders, and the used COM ports. Then is only needed to run the launcher. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">For more detailed instructions, please see the info in the PCBRW repository: <\/span><a href=\"https:\/\/github.com\/Danitegue\/PCBRW\"><span style=\"font-weight: 400;\">https:\/\/github.com\/Danitegue\/PCBRW<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This interpreter proposed by \u00a0Jos\u00e9 Rodr\u00edguez as part of the activities of the \u00a0ACTION COST ES1207 EUBREWNET, has as main objective to develop a python interpreter for GWBASIC, \u00a0to allow run the brewer operative software in different operative systems, without the actual limitation of using it only in 32 bits windows versions. With an open&hellip;<\/p>\n","protected":false},"author":2,"featured_media":6833,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[6,3,7,8],"tags":[],"class_list":["post-6831","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-featured","category-out","category-wg1","category-wg2"],"_links":{"self":[{"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/posts\/6831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/comments?post=6831"}],"version-history":[{"count":1,"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/posts\/6831\/revisions"}],"predecessor-version":[{"id":6832,"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/posts\/6831\/revisions\/6832"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/media\/6833"}],"wp:attachment":[{"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/media?parent=6831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/categories?post=6831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eubrewnet.aemet.es\/cost1207\/wp-json\/wp\/v2\/tags?post=6831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}