APSC 160 Lecture Notes - Lecture 11: Input Device, Screencast, Seven-Segment Display

251 views2 pages
School
Department
Course

Document Summary

Goal is to learn how to read from input devices or measurements that are analog. For example, the angle measurements from the two-segment arm in lab 6. Digital input or output devices only contain on or off states, while analog values or signals have continuous values or varia tions in values. A cd player is a good example of a system that contains both digital and analog values. Note that the return type is double, so the function returns analog values. The analogchannelnumber determines the channel number the sensor is connected to in order to read analog values from the sens or. An example of a sensor is a potentiometer that measures voltage and angles. A third example is a photocell that measures the amount of light. We must initialize the daq module by using the setupdaq function and then check if the device or simulator is set up properly.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents