+ All Categories
Home > Documents > Course contents

Course contents

Date post: 23-Feb-2016
Category:
Upload: gryta
View: 27 times
Download: 0 times
Share this document with a friend
Description:
Course contents. Labview basics virtual instruments, data flow, palettes Structures for, while, case, ... editing techniques Controls&Indicators arrays, clusters, charts, graphs Additional lecture State machines, SubVIs, MainCluster Modular programming + recording SubVIs File I/O - PowerPoint PPT Presentation
38
Course contents 1. Labview basics virtual instruments, data flow, palettes 2. Structures for, while, case, ... editing techniques 3. Controls&Indicators arrays, clusters, charts, graphs 4. Additional lecture State machines, SubVIs, MainCluster 5. Modular programming + recording SubVIs File I/O Analysis Signal processing Communication between loops 6. Instrument control DAQ , Data collection, GPIB, Serial 7. Additional lecture Data Acquisition, Instrument control
Transcript
Page 1: Course contents

Course contents

1. Labview basics– virtual instruments, data flow, palettes

2. Structures– for, while, case, ...– editing techniques

3. Controls&Indicators– arrays, clusters, charts, graphs

4. Additional lecture– State machines, SubVIs, MainCluster

5. Modular programming + recording– SubVIs– File I/O– Analysis– Signal processing– Communication between loops

6. Instrument control– DAQ , Data collection, GPIB, Serial

7. Additional lecture– Data Acquisition, Instrument control

Page 2: Course contents

Measurement & Automation Explorer (MAX)

• View and control your devices and software

Page 3: Course contents

Create simulated device

• You can test your code without the hardware

Page 4: Course contents

Create simulated device

• Real devices are green

• Simulated devices are yellow– simulated devices

work just like real devices

Page 5: Course contents

Test panel

Page 6: Course contents

MAX

• Check pinouts

Page 7: Course contents

MAX

• Self Test

Page 8: Course contents

DAQ Assistant

Page 9: Course contents

DAQ Assistant

• Create new task– put express VI to

block diagram

Page 10: Course contents

DAQ Assistant

Page 11: Course contents

DAQ Assistant

• Define Task– 1 sample

Page 12: Course contents

Acquire 1 sample with DAQ assistant

Page 13: Course contents

Acquire multiple samples from multiple channels

Page 14: Course contents

Acquire multiple samples from multiple channels

• N Samples

Page 15: Course contents

Acquire multiple samples from multiple channels

• You can sample within a loop

Page 16: Course contents

Acquire continuosly

Page 17: Course contents

Acquire continuosly

Page 18: Course contents

Create NI-DAQmx tasks from MAX

Page 19: Course contents

Define Task

Page 20: Course contents

Define Task

• Tasks are visible in all LabVIEW applications

Page 21: Course contents

Task settings

• Input range• Timing• Terminal configuration• Add channels

Page 22: Course contents

Run task

• Simulated device will produce sine wave

• Press Save to save the task settings

Page 23: Course contents

Test simulated device on LabVIEW• Hardware Input and Output»DAQmx»Analog

Measurements»Voltage»Cont Acq&Graph Voltage-Int Clk.VI

Page 24: Course contents

Test simulated device on LabVIEW

Page 25: Course contents

Create task from express VI

Page 26: Course contents

Generate code from express VI

• Express VI set to Continuos mode

Page 27: Course contents

Generate code from Task name constant

Page 28: Course contents

Generate code from Task name constant

Page 29: Course contents

Output voltages

Page 30: Course contents

Output Voltages

• N samples• Generate >> Example

Page 31: Course contents

Digital input

• 1 Sample

Page 32: Course contents

Digital input

• 1 Sample• Generate >> Example

Page 33: Course contents

Digital output

• 1 Sample

Page 34: Course contents

Triggered acquisition

Page 35: Course contents

Counter

Page 36: Course contents

NI DAQmx Help

• Start»Programs»National Instruments»NI-DAQ

Page 37: Course contents

Terms

• Physical channel - A terminal or pin at which you can measure or generate an analog or digital signal.

• Virtual channel - A collection of settings that can include a name, a physical channel, input terminal connections, the type of measurement or generation, and scaling information. In NI-DAQmx, virtual channels are integral to every measurement. You can configure virtual channels with the DAQ Assistant, which you can open from Measurement & Automation Explorer (MAX) or your application software. You also can configure virtual channels with the NI-DAQmx API in your application program.

• Task - A collection of one or more virtual channels with timing, triggering, and other properties. Conceptually, a task represents a measurement or generation you want to perform. You can set up and save all of the configuration information in a task and use the task in an application. In NI-DAQmx, you can configure virtual channels as part of a task or separate from a task.

• Local channels - Virtual channels created inside a task. • Global channels - Virtual channels defined outside a task. You can create global channels in

MAX or in your application software. You can use global channels in any application or add them to a number of different tasks. If you modify a global channel, the change affects all tasks in which you reference that global channel. In most cases, it is simpler to use local channels.

Page 38: Course contents

Links

• DAQmx Simulated Devices– http://zone.ni.com/devzone/cda/tut/p/id/3698

• DAQ Assistant and automatic code generation– http://zone.ni.com/devzone/cda/tut/p/id/4656

• Useful DAQmx functions– http://zone.ni.com/devzone/cda/tut/p/id/2835

• Continuous vs. Finite Sampling– http://

digital.ni.com/public.nsf/allkb/B86AA2D2FDE9A16086256FFC00604202• Read multiple channels sequentially (advanced)

– https://decibel.ni.com/content/docs/DOC-6901


Recommended