{"id":7613,"date":"2015-10-25T17:16:55","date_gmt":"2015-10-25T17:16:55","guid":{"rendered":"http:\/\/ng.livecode.com\/?p=7613"},"modified":"2016-05-04T14:47:38","modified_gmt":"2016-05-04T14:47:38","slug":"prototek","status":"publish","type":"post","link":"https:\/\/legacy.livecode.com\/prototek\/","title":{"rendered":"Prototek"},"content":{"rendered":"<blockquote><p>\u201cThank you for a great product. It has saved me hundreds of thousands of dollars of engineering budget. No question about it.\u201d<\/p><\/blockquote>\n<p>That&#8217;s what Charlie Faddis, Technology Director and co-founder of <a href=\"http:\/\/www.prototek.net\/\" target=\"_blank\">Prototek<\/a> told us. He went on to say:<!--more--><\/p>\n<p>\u201cIf we had chosen C++ to undertake this work we would be looking at year or two of effort to design such a thing. And we were way over budget and behind schedule. So I said, we\u2019re not going use C++, we\u2019ll do it in LiveCode and get it done in about 8 weeks. Which we achieved \u2013 well perhaps in 12 weeks!\u201d<\/p>\n<p><strong>The Story<\/strong><br \/>\nIn the Utility and Petroleum industries speed and accuracy for detecting the exact location of a blockage within a steel pipe network is vital for maintenance and production purposes. Delays can be very costly. ProtoTek has created the market leading blockage detection solution and built it using LiveCode.<\/p>\n<p>Charlie Faddis, Technology Director and co-founder of Prototek Corporation chose LiveCode to create a low frequency radio receiver, which runs on a virtual machine on an embedded chip. This device is pushed through pipes to clean them and is used to locate the plug if it gets stuck. He wrote both the radio frequency receiver and the virtual machine for the embedded device using LiveCode.<\/p>\n<p>\u201cIn the USA when you see the lines painted over the streets by Utility companies undertaking maintenance works they have usually used our technology to detect the correct location in the underground asset. Prototek make the only radio system in the world that will transmit through solid steel. Most physicists will tell you that that\u2019s impossible because it\u2019s a Faraday cage. However many Utilities companies such as the petroleum industry requires this because their pipe lines are made of thick steel and they have to put plugs in the pipes to clean them. They\u2019ll push these foam rubber plugs through the pipe for 10, 20 or even 50 miles to clean the pipe. If the plug gets stuck then they have a very serious problem because it takes that line out of service until they can find the plug. They\u2019ve had to dig up as many as 10 miles of pipe in order to find the problem.\u201d<\/p>\n<p>\u201cSo we designed this transmitter that goes into the plug, using a very low frequency of just 16 Hz. Now the problem with building a radio receiver at that frequency in hardware is that it would have to be the size of a skyscraper and not terribly portable! So we had to build that receiver in software rather than in hardware. We built that receiver in LiveCode and it functions very well. We\u2019re having trouble keeping product on the shelf because it\u2019s functioning so well\u201d<\/p>\n<p>\u201cThe receiver runs on the embedded microprocessor. We had to change the target machine of LiveCode in order to get it to run on that microprocessor. So we constructed a virtual machine that would have the foundation we needed to execute a subset of the LiveCode language. It took about a week and a half to write the virtual machine, because we built the virtual machine itself using LiveCode. It really is the world\u2019s easiest programming language!\u201d<\/p>\n<blockquote><p>\u201cThe three most important aspects of programming are testing, testing, testing. The wonderful thing about LiveCode when using it for development on something like a microchip is that it\u2019s so easy to add a new test.&#8221;<\/p><\/blockquote>\n<p>&#8220;My development screen is split up so that around about 80% of the screen is devoted to testing functions, with the remaining 20% dedicated to writing and debugging code. So if I conceive of a test I simply drag and drop a button onto the screen, it talks through the USB port to the chip and I can run a test. Once I\u2019ve defined that test it\u2019s always there right next to the source code. If I modify that source code a year from now all I have to do is click that button and it will run that test. Some of those buttons are sliders, maybe a field of data that comes back.\u201d<\/p>\n<p>\u201cGiven we are working with radio waves in real time, one of the key things we needed was to create a graph like an oscilloscope. So we inserted a feature that looks like a breakpoint you put in a source code. But it\u2019s really what we call a probe point, because a breakpoint stops the code but when you\u2019re processing radio signals in real time you really don\u2019t want to stop execution. The probe point causes the handler to send data back through the serial port asynchronously in the remaining machine cycles that are available in our embedded chip. The interrupts take care of the main processing so whatever extra capacity the process has can be used to transmit that data back and LiveCode beautifully graphs it in color just like an oscilloscope with waves. My analog engineer can come over\u00a0and look at the waveform and say that you need to adjust one coefficient or another.\u201d<\/p>\n<p style=\"color: #585858;\"><strong>Author:<\/strong>\u00a0Prototek Corporation |\u00a0<strong>Industry:<\/strong>\u00a0Technology |\u00a0<strong>Location:<\/strong>Seatle, USA<\/p>\n<p style=\"color: #585858;\"><strong>Blockage Location Solutions Used by Utility and Petroleum Companies<\/strong><\/p>\n<p style=\"color: #585858;\">Transmitter Based Location Solutions to Detect Blockages in Pipe Networks used by Utility and Petroleum Companies.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201cThank you for a great product. It has saved me hundreds of thousands of dollars of engineering budget. No question about it.\u201d That&#8217;s what Charlie Faddis, Technology Director and co-founder of Prototek told us. He went on to say:<\/p>\n","protected":false},"author":8,"featured_media":8758,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"footnotes":""},"categories":[110],"tags":[160],"class_list":["post-7613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-livecode-stories","tag-business"],"acf":[],"_links":{"self":[{"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/posts\/7613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/comments?post=7613"}],"version-history":[{"count":5,"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/posts\/7613\/revisions"}],"predecessor-version":[{"id":9912,"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/posts\/7613\/revisions\/9912"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/media\/8758"}],"wp:attachment":[{"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/media?parent=7613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/categories?post=7613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/legacy.livecode.com\/wp-json\/wp\/v2\/tags?post=7613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}