{"id":23182,"date":"2017-12-12T08:28:21","date_gmt":"2017-12-12T16:28:21","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=23182"},"modified":"2023-01-09T09:42:02","modified_gmt":"2023-01-09T17:42:02","slug":"measure-rc-circuit-with-an-openscope-mz-and-labview","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/measure-rc-circuit-with-an-openscope-mz-and-labview\/","title":{"rendered":"Measure RC Circuit with an OpenScope MZ and LabVIEW"},"content":{"rendered":"<p>This blog post will show you how to use your <a href=\"https:\/\/digilent.com\/shop\/openscope-mz-open-source-all-in-one-instrumentation\/\">OpenScope MZ<\/a> to read the output of a first order RC circuit.\u00a0The OpenScope MZ is an extremely\u00a0versatile\u00a0device, and at its current price point of only 89 dollars you get a lot of bang\u00a0for your buck. This along with its Wi-Fi communication abilities allow it to be a great product for\u00a0makers, hobbyists, engineers, and new learners. And all of these things also make it a great device for <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW<\/a>. People new to LabVIEW will find that it&#8217;s a great tool for getting used to LabVIEW&#8217;s user interface, while experienced users will enjoy all the added functionality that LabVIEW provides. This post will\u00a0allow you to access the Oscilloscope and Wavegen functions of the OpenScope.<\/p>\n<h3 id=\"toc-materials-needed-0\">Materials Needed<\/h3>\n<p><strong>All included in\u00a0<\/strong><strong><a href=\"https:\/\/digilent.com\/shop\/labview-interaction-parts-kit\/\" rel=\"nofollow\">LabVIEW Interaction Parts Kit<\/a><\/strong><\/p>\n<ul>\n<li>Two 1K ohm resistors<\/li>\n<li>Take them from the small bag on your desk<\/li>\n<li>One 33 \u03bcF capacitor<\/li>\n<li>Take it from the small bag on your desk<\/li>\n<li>One small breadboard<\/li>\n<li>Wires<\/li>\n<\/ul>\n<div>\n<div>\n<div class=\"image_carousel__container___hMJxn\">\n<div class=\"image_carousel__wrapper___102VA\">\n<div class=\"image_carousel__scrollContainer___3mmPE \">\n<div class=\"image_carousel__imageContainer___22WPm\">\n<div class=\"image_carousel__imageWrapper___39AG2\"><img decoding=\"async\" class=\"image_carousel__image___2-CjO aligncenter\" src=\"https:\/\/hackster.imgix.net\/uploads\/attachments\/380910\/picture1_0skNHQkwwm.png?auto=compress%2Cformat&amp;w=680&amp;h=510&amp;fit=max\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"toc-setup-1\"><i class=\"fa fa-link\"><\/i>Setup<\/h3>\n<ul>\n<li>Place the 33 \u03bcF capacitor on a breadboard, connect the solid orange (OSC1) wire from the\u00a0<a href=\"https:\/\/digilent.com\/shop\/openscope-mz-open-source-all-in-one-instrumentation\/\" rel=\"nofollow\">OpenScope<\/a>\u00a0to the anode (the longer leg) of the capacitor.<\/li>\n<li>Next, run a 1K resistor from the cathode (the shorter leg) and a wire from the anode to a pin connected to the solid black wire (GND) of the OpenScope.<\/li>\n<li>Finally, run another 1K resistor from the cathode to a pin connected to the solid yellow wire (AWG) of the OpenScope.<\/li>\n<\/ul>\n<div>\n<div>\n<div class=\"image_carousel__container___hMJxn\">\n<div class=\"image_carousel__wrapper___102VA\">\n<div class=\"image_carousel__scrollContainer___3mmPE \">\n<div class=\"image_carousel__imageContainer___22WPm\">\n<div class=\"image_carousel__imageWrapper___39AG2\"><img decoding=\"async\" class=\"image_carousel__image___2-CjO aligncenter\" src=\"https:\/\/hackster.imgix.net\/uploads\/attachments\/380568\/picture3_Fd4hPxIe5S.png?auto=compress%2Cformat&amp;w=680&amp;h=510&amp;fit=max\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"toc-software-settings-2\"><i class=\"fa fa-link\"><\/i>Software Settings<\/h3>\n<p>These settings are all preset in the LabVIEW VI:<\/p>\n<p><em>Time<\/em><\/p>\n<ul>\n<li>50ms\/div<\/li>\n<\/ul>\n<p><em>Trigger<\/em><\/p>\n<ul>\n<li>Rising edge<\/li>\n<li>Osc Ch 1<\/li>\n<li>100mV<\/li>\n<\/ul>\n<p><em>Osc Ch 1<\/em><\/p>\n<ul>\n<li>Volts 200mV<\/li>\n<li>Offset 400mV<\/li>\n<\/ul>\n<p><em>Wavegen<\/em><\/p>\n<ul>\n<li>Square wave<\/li>\n<li>Frequency 3 Hz<\/li>\n<li>Amplitude 2 Vpp<\/li>\n<li>DC Offset 1V<\/li>\n<\/ul>\n<div>\n<div>\n<div class=\"image_carousel__container___hMJxn\">\n<div class=\"image_carousel__wrapper___102VA\">\n<div class=\"image_carousel__scrollContainer___3mmPE \">\n<div class=\"image_carousel__imageContainer___22WPm\">\n<div class=\"image_carousel__imageWrapper___39AG2\"><img decoding=\"async\" class=\"image_carousel__image___2-CjO aligncenter\" src=\"https:\/\/hackster.imgix.net\/uploads\/attachments\/380564\/oscope_project_5CbPjLhRfU.PNG?auto=compress%2Cformat&amp;w=680&amp;h=510&amp;fit=max\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"toc-expected-results-rc-waveform-3\"><i class=\"fa fa-link\"><\/i>Expected Results RC Waveform<\/h3>\n<div>\n<div>\n<div class=\"image_carousel__container___hMJxn\">\n<div class=\"image_carousel__wrapper___102VA\">\n<div class=\"image_carousel__scrollContainer___3mmPE \">\n<div class=\"image_carousel__imageContainer___22WPm\">\n<div class=\"image_carousel__imageWrapper___39AG2\"><img decoding=\"async\" class=\"image_carousel__image___2-CjO aligncenter\" src=\"https:\/\/hackster.imgix.net\/uploads\/attachments\/380941\/picture11_J0VSbaKD97.png?auto=compress%2Cformat&amp;w=680&amp;h=510&amp;fit=max\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Useful wave shapes can be obtained by using RC circuits with the required time constant. The voltage drop across the capacitor alternates between charging up to Vc and discharging down to zero according to the input voltage. If we apply a continuous\u00a0<em>square wave<\/em>\u00a0voltage waveform to the RC circuit whose pulse width matches that exactly of the time constant of the circuit, then the voltage waveform across the capacitor would look something like this:<\/p>\n<div>\n<div>\n<div class=\"image_carousel__container___hMJxn\">\n<div class=\"image_carousel__wrapper___102VA\">\n<div class=\"image_carousel__scrollContainer___3mmPE \">\n<div class=\"image_carousel__imageContainer___22WPm\">\n<div class=\"image_carousel__imageWrapper___39AG2\"><img decoding=\"async\" class=\"image_carousel__image___2-CjO aligncenter\" src=\"https:\/\/hackster.imgix.net\/uploads\/attachments\/380927\/rc7_IyQQuSEyLz.gif?auto=compress%2Cformat&amp;w=680&amp;h=510&amp;fit=max\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"toc-results-4\"><i class=\"fa fa-link\"><\/i>Results<\/h3>\n<div>\n<div>\n<div class=\"image_carousel__container___hMJxn\">\n<div class=\"image_carousel__wrapper___102VA\">\n<div class=\"image_carousel__scrollContainer___3mmPE \">\n<div class=\"image_carousel__imageContainer___22WPm\">\n<div class=\"image_carousel__imageWrapper___39AG2\"><img decoding=\"async\" class=\"image_carousel__image___2-CjO aligncenter\" src=\"https:\/\/hackster.imgix.net\/uploads\/attachments\/380929\/oscope_project_uJULKjk6f0.PNG?auto=compress%2Cformat&amp;w=680&amp;h=510&amp;fit=max\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>If you set up the circuit correctly you should get an output similar to the one seen above. This is in line with our expectations based on the software settings I set in LabVIEW. For more theory and equations, go to\u00a0<a href=\"https:\/\/digilent.com\/reference\/learn\/courses\/real-analog\/start\" rel=\"nofollow\">Real Analog\u00a0<\/a>Chapter 7.<\/p>\n<div class=\"embed original\"><\/div>\n<h3 id=\"toc-openscope-mz-is-opensource-5\"><i class=\"fa fa-link\"><\/i>OpenScope MZ is OpenSource!<\/h3>\n<div>\n<div>\n<div class=\"image_carousel__container___hMJxn\">\n<div class=\"image_carousel__wrapper___102VA\">\n<div class=\"image_carousel__scrollContainer___3mmPE \">\n<div class=\"image_carousel__imageContainer___22WPm\">\n<div class=\"image_carousel__imageWrapper___39AG2\"><img decoding=\"async\" class=\"image_carousel__image___2-CjO aligncenter\" src=\"https:\/\/hackster.imgix.net\/uploads\/attachments\/380575\/picture4_Vj6r0x3Y3c.png?auto=compress%2Cformat&amp;w=680&amp;h=510&amp;fit=max\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Thank you for reading the post, to learn more about using the OpenScope in LabVIEW check out this <a href=\"https:\/\/www.hackster.io\/austin-stanton\/measure-rc-circuit-with-an-openscope-mz-and-labview-15a217\">Hackster.io<\/a><a href=\"https:\/\/www.hackster.io\/austin-stanton\/using-the-openscope-mz-in-labview-8f0ee4\"> project<\/a>. If you are interested in trying out these examples yourself but don&#8217;t have the right supplies you can purchase <a>LabVIEW 2014 home bundle<\/a> for only 50 dollars. You can also purchase the <a>OpenScope MZ<\/a> on Digilent&#8217;s website. Please comment with any questions or comments you may have.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-23182 jlk' data-task='like' data-post_id='23182' data-nonce='1cb2a57891' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-23182 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-23182 jlk' data-task='unlike' data-post_id='23182' data-nonce='1cb2a57891' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-23182 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-23182 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Learn to mke a RC circuit!<\/p>\n","protected":false},"author":42,"featured_media":23183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4327,4323,4312],"tags":[],"ppma_author":[4493],"class_list":["post-23182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-software","category-usb-scopes-analyzers-generators"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/12\/asset_3_ql8lUR9LZz.jpg","authors":[{"term_id":4493,"user_id":42,"is_guest":0,"slug":"astanton","display_name":"Austin Stanton","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/0cc9db2caf6344c8f78ea46c21570f33a954c45596addf479125043e52431de0?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/23182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=23182"}],"version-history":[{"count":1,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/23182\/revisions"}],"predecessor-version":[{"id":29466,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/23182\/revisions\/29466"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/23183"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=23182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=23182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=23182"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=23182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}