vTomb Logo

Acquiring Analog Input with the Universal Library Video

Home
Learn more at: http://bit.ly/MSZ09Z

Today we're going to show you how easy it is to write a program that acquires analog input voltage data using the Universal Library and Visual Basic.

Connect a measurement computing DAQ device to your computer and run InstaCal. After you have detected your device with InstaCal, run Microsoft Visual Basic and create a new Windows Form application. I'm using Visual Basic 2010 Express, but you could also use another development environment from Microsoft Visual Studio .NET.

The application access the Universal Library through the MCCDAQ assembly, so you must add a reference to this file in your project.

Right-click on "WindowsApplication1" within the Solution Explorer, and select "Add Reference". Click the Browse tab, navigate to the root directory where the Universal library is installed, and select "mccdaq.dll".

Use the Toolbox to add controls to the Form. I'm adding a button control, two label controls, and a timer control.
• The button control will be used to start the acquisition.
• The first label control simply provides a description; the second label control willdisplay voltage values read from the DAQ device.

You can change the Text property of a control to identify what displays on the form:
• I'm changing the Text property of the Button control to "Start"
• the first label control to "Channel value:"
• the second label control to ..."Display value"
• I'm also changing the text property of the Form to read "Universal Library AIn()".

After setting up the form, double-click on the button control and add some code.

1. Beneath the Public Class Form1 line, enter code that declares the variables and instantiates a board from the MCCBoard class. The MccBoard class is used to access DAQ methods and board properties.

a. I named the first variable "mydaqboard" -- this variable creates a new instance of the MccBoard class. The 0 indicates that the board is installed as board 0 in InstaCal.

b. I named the second variable "datival" -- this variable will hold the integer count value read from the DAQ device, so I set the datatype to be a 16-bit integer.

c. I named the third variable "engunit" -- this variable will hold the voltage value that is converted from the count value, so I set the data type to "Single".

2. Now add a click event that calls the timer function when the button is clicked. The timer control is identified as timer1, so enter timer1.start()

3. Now create a timer tick event which calls the universal library AIn() method.

a. AIn() reads an A/D input channel and returns a 16-bit integer value.
Enter 0 as the channel number to read, select the range, and select dataval to hold value the read from the board.

b. Now call the UL method ToEngUnit() to convert the data from a 16-bit value to volts, and to store the value in the variable engunit.

c. Enter Label2.Text=engunit to display the voltage value on the form.
That's all the code you need to acquire and display data.
Now display the form and click the button to start the acquisition. You can see the acquired data values updating on the windows form.

As you have seen here, acquiring analog voltage data with the Universal library is quick and easy!

Visit us at: http://bit.ly/MSZ09Z for more information about the Universal Library from Measurement Computing.
150 chances to become an millionaire

150 chances to become an millionaire

wildsbet.com

#big wins#winners#games#casinos

About the Site 🌐

This site provides links to random videos hosted at YouTube, with the emphasis on random. 🎥

Origins of the Idea 🌱

The original idea for this site stemmed from the need to benchmark the popularity of a video against the general population of YouTube videos. 🧠

Challenges Faced 🤔

Obtaining a large sample of videos was crucial for accurate ranking, but YouTube lacks a direct method to gather random video IDs.

Even searching for random strings on YouTube doesn't yield truly random results, complicating the process further. 🔍

Creating Truly Random Links 🛠️

The YouTube API offers additional functions enabling the discovery of more random videos. Through inventive techniques and a touch of space-time manipulation, we've achieved a process yielding nearly 100% random links to YouTube videos.

About YouTube 📺

YouTube, an American video-sharing website based in San Bruno, California, offers a diverse range of user-generated and corporate media content. 🌟

Content and Users 🎵

Users can upload, view, rate, share, and comment on videos, with content spanning video clips, music videos, live streams, and more.

While most content is uploaded by individuals, media corporations like CBS and the BBC also contribute. Unregistered users can watch videos, while registered users enjoy additional privileges such as uploading unlimited videos and adding comments.

Monetization and Impact 🤑

YouTube and creators earn revenue through Google AdSense, with most videos free to view. Premium channels and subscription services like YouTube Music and YouTube Premium offer ad-free streaming.

As of February 2017, over 400 hours of content were uploaded to YouTube every minute, with the site ranking as the second-most popular globally. By May 2019, this figure exceeded 500 hours per minute. 📈

List of ours generators⚡

Random YouTube Videos Generator

Random Film and Animation Video Generator

Random Autos and Vehicles Video Generator

Random Music Video Generator

Random Pets and Animals Video Generator

Random Sports Video Generator

Random Travel and Events Video Generator

Random Gaming Video Generator

Random People and Blogs Video Generator

Random Comedy Video Generator

Random Entertainment Video Generator

Random News and Politics Video Generator

Random Howto and Style Video Generator

Random Education Video Generator

Random Science and Technology Video Generator

Random Nonprofits and Activism Video Generator

By using our services, you agree to our Privacy Policy.
Alternative random YouTube videos generator: YouTuBeRandom
vTomb © 2024
By using our services, you agree to our Privacy Policy.
OK