{"id":7616,"date":"2020-06-16T14:19:18","date_gmt":"2020-06-16T21:19:18","guid":{"rendered":"https:\/\/www.vernier.com\/til\/?p=7616"},"modified":"2020-06-16T14:19:19","modified_gmt":"2020-06-16T21:19:19","slug":"how-do-i-program-labpro-with-realbasic","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/7616","title":{"rendered":"How do I program LabPro with REALbasic?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">REALbasic is an easy to learn programming language from&nbsp;<a href=\"http:\/\/www.realsoftware.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">REAL Software Inc<\/a>. We have been using it for years as a great way for people to create their own programs for taking data and for controlling the output lines of LabPro.<\/p>\n<p class=\"wp-block-paragraph\">If you are interested in writing programs to control LabPro in Mac OS X REALbasic, be sure to check out the article: \u201cData In \u2013 Using Vernier\u2019s LabPro to collect data from probes\u201d, by William H. Murray and Chris H. Pappas, in the July\/August 2004 issue of\u00a0<a href=\"http:\/\/www.rbdeveloper.com\/\">REALbasic Developer\u2122 magazine<\/a>.<\/p>\n<p class=\"wp-block-paragraph\">To use the\u00a0LabPro\u00a0with REALbasic, you must first place two support files in the proper location.<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>VSTLabProUSBRB<\/strong>&nbsp;is a plugin. You will need to put a copy of this plugin in your REALbasic plugins folder.<\/li>\n<li>The package&nbsp;<strong>VST_USB.bundle<\/strong>&nbsp;is required to use Labro via a USB connection. It should be placed in the same folder as the project file (if you are using REALbasic 5.x) or in the same folder as the REALlbasic application (if you are using REALbasic 4.5.x).<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">The sample programs included in the download are Real Time Collect and NRT Collect. These are very simple applications to let you control LabPro and collect analog data.<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Real-Time Collect.rb<\/strong>&nbsp;is program that displays the reading of an auto-ID sensor one point at a time. Most of the interesting code is in the Action for the button PushButtonRT. Change the time (second number) in the s{3,0.5,-1,0} command to change the rate of data collection.<\/li>\n<li><strong>NRT Collect.rb<\/strong>&nbsp;is a program to read the voltage from a sensor 10 times at a rate of 100 points\/s. Change the variables nNumPointsWanted or nDataRate to change the number of points collected or the rate of data collection. This program returns data from the LabPro in hexadecimal format (for speed) and that is why voltages are read, instead of calibrated sensor readings.<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www2.vernier.com\/free\/labpro_realbasic.hqx\">Download the LabPro with REALbasic plugins and sample programs for OS X<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>REALbasic is an easy to learn programming language from&nbsp;REAL Software Inc. We have been using it for years as a great way for people to&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[166,640],"class_list":["post-7616","post","type-post","status-publish","format-standard","hentry","tag-labpro","tag-realbasic"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/7616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=7616"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/7616\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=7616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=7616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=7616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}