Sonoma State University
School of Science and Technology
Electrical Engineering Program
EE 381 - Introduction to Instrumentation and Automation Laboratory
Spring 2020

 
Day Discussion Topics Assignment for next Week

[W1]

1/23

Build this:

[W2]

1/30

Introduction to LabVIEW programing / licensing  / review of general programming concepts (loops, cases, if, data types, &  combining  LabVIEW  with  Matlab) –

  1. Introduction to labVIEW (PowerPoint Slides)
  2. A simple tutorial - do the exercises
  3. Creating a simple VI with front panel / Creating a project / running mode (single continuous)
  4. Basic Mathematical operations / Basic logical operation / creating random number / rounding numbers
  5. Slide bar / buttons / if statement
  6. Adding formula (Matlab)
  7. LabVIEW Lab Exercise
  • HW1- Problem 1:
    • Solve the circuit below - given the resistor values, change the voltage and display the total current.
    • Using your VI above change the voltage automatically 0.1V at a time moving from 0-5V and plot the current. The resistor values should be variables but can stay the same. You XY axis must reflect the correct voltage and current values.
    • Draw the circuit diagram in your front panel: DigiKey
    • Submit the final working code via Canvas. Your Front Panel (FP) must have comments. The purpose must be stated on the FP. If your submitted code does not work you receive Zero.

[W3]

2/6

Introduction to data collection, data visualization (graphs), & data analysis using LabVIEW 
File: Crap_Shoot.vi
File: Read_write.vi
File: Read_write_Advanced.vi- W2_Zip_file

  1. Learning about while loop and adding delay to the loop / stopping the while loop
  2. Plotting the data / adding time to plot / legend / plot format / adding multiple plots on the same graph / changing plot range
  3. Case statement - make a calculator
  4. Saving data on a file / reading back from a file Read / creating multi-dimensional array / creating a table
  • Practice: Learn about 2-4 decoders and design one
  • Pratice: Create two random variables in each case determine the Min/Max/AVg of 20 values that has been generated

[W4]

2/13

  • Creating sensor data / Creating String and Parsing strings
  • Adding password
  • Meassuring spectral parameters
  • Example files - W3-Zip_File
  • Signal Simulators and Creating a simulator and formatting the front panel [File: Simulator.vi]
  • Creatig a Sub-Vi [File: Sub_VI.vi]
  • Creating a string and parsing strings  / Matching strings / [File:Build_String.vi & Parse_String.vi]

[W5]

2/20

 

  • Creating sensor data / Creating String and Parsing strings
  • Introduction to VISA / Interfacing LabVIEW to USB (working Arduino, Raspberry Pi, etc.) - W3-Zip_File (see Arduino folder)

 

 

[W6]

2/27

DAQ_Zip_file

  1. Understanding DAQ / What is DAQ / Getting Data
  2. How to generate Analog signals
  3. DAQ 6009 Datasheet
  4. Two part video: How to use DAQ
  • Make sure you can connect AO.0 to AI.1 and change voltage.
  • Create a sine waveform on AO.0

[W7]

3/5

Continue with DAQ
  • Creating a functional generator and a scope.

 

Learn about state-machine

SM_Zip_File

  1. LabVIEW Excercise
  2. Red-Light Exercise / Instructions thanks to G. Boorman - Connect the Traffic Light to a DAQ.

[W7]

3/5

Continue with State-machine

  1. Making a lock

 

[W8]

3/12

  • Creating sensor data / Creating String and Parsing strings
  • Introduction to VISA / Interfacing LabVIEW to USB (working Arduino, Raspberry Pi, etc.) - W3-Zip_File

 

3/19 Spring Break! Spring Break!  

[W9]

3/26

  • Review VISA and connecting to serial interface
  • Connecting LabVIEW to a scope and analyzing the results.
  • Project: Complete part 1 of this lab: Filter Characterization

[W10]

4/2

  • Filter characterization.
 

[W11]

4/9

Create a VI drviere from scratch! (Complex) Interface with a new instrument  

[W12]

4/16

Introduction to LabVIEW Server for remote controlling, data collection and visualization (access LabVIEW from anywhere). W5-Zip-File 

New-ZIp

  • Data formatting / Introduction to cases / adding tabs to the front panel /  [File:Tab_and_Case.vi]
  • Web Publishing / Active X and installing IE Tab in Chrome
  • Creating a dynamic menue
  • Publish your Tab_and_Case.vi on the web.
  • Sending packets using UDP [File:SimpleUDP.vi]
  • Use Packet Sender to send packets.
  • Project:
    • Review this link and make sure you can connect your camera to LabVIEW
    • Install NI Vision Software
    • Using your Arduino measure the received voltage (you can connect a potentiameter to your arduino to change the voltage).
    • Using UDP vi send the received voltage - the voltage values must be very accurate.
    • Plot the measured voltage level by the arduino on the server using the UDP receiver vi.
    • Take a picture of the room and show it on the front panel.

[W13]

4/23

  • Networking using LabVIEW
  • Connecting a camera to LanVIEW
  Submit your project proposl

[W14]

4/30

Visualize Test Results From Anywhere using LabVIEW NXG Web Module What is SCSI & how does it work?  

[W15]

5/7

Final Project presentations - Evaluated by NI representatives / How to pursue  labVIEW Certification / Best Project Award by National Instrument / Everyone is invited. 

   

[W16]

5/14

Open for any suggestion!    

Project Ideas (I will do my best to purchase anything you need up to a specific amount):

  • Use an arduino/DAQ to measure the Vpp output of a filter. You should be able to change the center frequecy of the filter automatically using a Digital Potentiometer
  • Use Arduino and a digital pot along with an XR2206 chip to create a LabVIEW based function generator. Here is another way to generate waveform using only an Arduino. You should be able to change the frequency.
  • Using a relay pack create an automated system to check all the voltage pins on an Arduino chip
  • Program a Roomba using LabVIEW.
  • Install LabVIEW on an Embedded system (read this , this is another good resource)
  • Connect your Cellphone to LabVIEW and receive accelerometer and light data. See other interesting LabVIEW projects.
  • Use LabVIEW to detect an object.
  • Use a network analyzer to measure S12 & record the results.
  • Use a coin accepter to create a music box! The idea is that the users pay 25 cents and they can play their favorite musics.
  • Use the remote GPIB gateway to control devices / add camera.
  • My Youtube Channel
  • Other interesting LabVIEW projects.
 

Useful references:

*** Purchase LabVIEW ***
http://www.studica.com/us/en/National-Instruments-students-ni-labview-mydaq/labview-student-edition/779252-02_3.html

Many useful YouTube Tutorials
https://www.youtube.com/watch?v=P31rpOrkPUg

NI LabVIEW Academy
 http://www.ni.com/academic/labview_academy.htm

How to become a LabVIEW Academy 
http://www.ni.com/academic/labview_academy_application.htm

 Where to purchase LabVIEW (see Resources)
http://sine.ni.com/nips/cds/view/p/lang/en/nid/210866

Free LabVIEW for 6 months

NI Resources to learn LabVIEW

How to install the NI-VISA drivers and interface to Arduino
UDP MESSAGE: https://www.youtube.com/watch?v=qXy-EToWxjQ
Learn about LabVIEW Vision: this link/ NI Vision Software
LabVIEW RUNTIME: http://www.ni.com/download/labview-run-time-engine-2017-sp1/7193/en/
NI Vision Software http://www.ni.com/download/ni-vision-acquisition-software-february-2015/5149/en/
Good book on LabVIEW