0% found this document useful (0 votes)
347 views22 pages

myDAQ and myRIO Documentation

The document contains lists of experiments that can be performed using various National Instruments hardware and software tools: - myDAQ experiments include generating and acquiring waveform signals, measuring voltage values, number to boolean conversion, and an audio equalizer experiment. - Multisim experiments involve circuit simulation and hardware experiments using an op-amp inverting amplifier, RC low-pass filter, and logic gates. - myRIO experiments include traffic light control, displaying sensor values, programming an FPGA, and home automation projects using devices like motors and displays. The first experiment described in detail is using myDAQ to generate and acquire a waveform signal by outputting the signal on one channel and reading it back on another channel

Uploaded by

Mani Bala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
347 views22 pages

myDAQ and myRIO Documentation

The document contains lists of experiments that can be performed using various National Instruments hardware and software tools: - myDAQ experiments include generating and acquiring waveform signals, measuring voltage values, number to boolean conversion, and an audio equalizer experiment. - Multisim experiments involve circuit simulation and hardware experiments using an op-amp inverting amplifier, RC low-pass filter, and logic gates. - myRIO experiments include traffic light control, displaying sensor values, programming an FPGA, and home automation projects using devices like motors and displays. The first experiment described in detail is using myDAQ to generate and acquire a waveform signal by outputting the signal on one channel and reading it back on another channel

Uploaded by

Mani Bala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Contents

List of Experiments: myDAQ

1. Generating a Waveform Signal and Acquiring a same Signal using myDAQ

2. Generating Multiple Waveform Signals and Acquiring a same Signal using myDAQ

3. Measuring Voltage of myDAQ

4. Number to Boolean Conversion using myDAQ

5. Audio Equalizer

6. Generating a Signal and adding Noise to the Signal and removing the noise using Filters

7. Generating the Audio Signal and Finding Frequency of the Tone

8. Intensity Variation using Potentiometer and LED

List of Experiments: Multisim

1. Design an Inverting Amplifier using Op-Amp (Simulation and Real Time)

2. Design of Low Pass Filter using RC (Simulation and Real Time)

3. Logic Gates Operation (Simulation and Real Time)

List of Experiments: myRIO

1. Four Way Traffic Light

2. Displaying Accelerometer and Button Values in LCD

3. Displaying Current Date and Time using 7-Segment Display

4. Quiz using myRIO and displaying Score in 7-Segment Display

5. USB Flash Drive

6. Acquiring Potentiometer value and Displaying in 7-Segment

7. FPGA Programming in myRIO

8. Fan Controlling using Motor

9. Home Automation
Experiment 1: Generating a Waveform Signal and Acquiring a same Signal using myDAQ

Requirements

1. LabVIEW 2017 or Later


2. myDAQ with MSP Connector
3. Wires

Procedure:

1. Launch NI LabVIEW 2017 or Later


2. Press Ctrl+N for New VI and Toggle the window using Ctrl+T
3. For Generating a waveform Signal follow the below Steps
3.1. Right Click on Block Diagram-> Express-> Simulate Signal-> Select Any Signal in Signal Type
3.2. Enter Frequency, Amplitude, Offset, and Phase.
4. For Passing the Waveform Signal to myDAQ follow the below Steps
4.1. Right Click on Block Diagram->Measurement I/O-> NI DAQmx-> DAQ Assistant
4.2. Place DAQ Assistant on Block Diagram then Generate Signal->Analog Output->Voltage->
myDAQ 2-> Select AO0 then Finish
4.3. Set Generating Mode as Continuous Samples and Tap OK
5. For Acquiring the Same Signal follow the below Steps
5.1. Right Click on Block Diagram->Measurement I/O->NI DAQmx->DAQ Assistant
5.2. Place DAQ Assistant on Block Diagram then Acquire Signal->Analog Input->Voltage-> myDAQ
2-> Select AI0+ then Finish
5.3. Set Acquisition Mode as Continuous Sample and Tap OK
5.4. Connect a waveform graph indicator.

5.5. See the Front Panel of a VI

Figure 1.1 Front Panel


Figure 1.2 Block Diagram

myDAQ Connection: Connect AO0 -> AI0(+) then AI0(-) -> AGND

Find the VI in DAQ Programs RVRJC folder->myDAQ->Ex-1 Generating and Acquiring Signal.

Experiment 2: Generating Multiple Waveform Signals and Acquiring a same Signal using myDAQ

Requirements

1. LabVIEW 2017 or Later


2. myDAQ with MSP Connector
3. Wires

Procedure:

1. Launch NI LabVIEW 2017 or Later


2. Press Ctrl+N for New VI and Toggle the window using Ctrl+T
3. For Generating a waveform Signal follow the below Steps
3.1. Right Click on Block Diagram-> Signal Processing-> Waveform Generation->Basic Function
Generator
3.2. Enter Frequency, Amplitude, Offset, Phase and Create Enum Control for Signal Type(Sine,
Square, Triangle and Sawtooth)
3.3. Based on the user Selection Signal type Waveform Will be Generated and Acquired
4. For Passing the Waveform Signal to myDAQ follow the below Steps
4.1. Right Click on Block Diagram->Measurement I/O-> NI DAQmx-> DAQ Assistant
4.2. Place DAQ Assistant on Block Diagram then Generate Signal->Analog Output->Voltage->
myDAQ 2-> Select AO0 then Finish
4.3. Set Generating Mode as Continuous Samples and Tap OK
5. For Acquiring the Same Signal follow the below Steps
5.1. Right Click on Block Diagram->Measurement I/O->NI DAQmx->DAQ Assistant
5.2. Place DAQ Assistant on Block Diagram then Acquire Signal->Analog Input->Voltage-> myDAQ
2-> Select AI0+ then Finish
5.3. Set Acquisition Mode as Continuous Sample and Tap OK
5.4. Connect a waveform graph indicator.

Figure 2.1 Front Panel

Figure 2.2 Block Diagram


myDAQ Connection: Connect AO0 -> AI0(+) then AI0(-) -> AGND

Find the VI in DAQ Programs RVRJC folder->myDAQ->Ex-2 Multiple Waveforms

Experiment 3: Measuring Voltage of myDAQ

Requirements

1. LabVIEW 2017 or Later


2. myDAQ with MSP Connector
3. Wires

Procedure:

1. Launch LabVIEW 2017 or Later


2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. To measure the voltage of myDAQ follow the steps below
3.1. Right Click on Block Diagram-> Measurement I/O-> NI DAQmx-> DAQ Assistant
3.2. Place DAQ Assistant on Block Diagram then Select Acquire Signal-> Analog Input-> Voltage
->myDAQ 2 ->AI0 then Finish
3.3. Set the Acquisition mode as 1 Sample on Demand and Select OK
3.4. Connections: 5V -> AI0(+) AI0(-) -> DGND
4. Find VI in DAQ Programs RVR JC -> myDAQ-> Ex-3 Measure Voltage Value

Figure 3.1. Front Panel and Block Diagram


Experiment 4: Number to Boolean Conversion using myDAQ

Requirements

1. LabVIEW 2017 or Later


2. myDAQ with MSP Connector
3. 4 LEDs
4. Wires

Procedure:

1. Launch LabVIEW 2017 or Later


2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. Follow the below steps for converting Decimal to Boolean Value. For example: Input Value is 4,
the respective Boolean Value is 0010.
4. Right Click on Block Diagram-> Measurement I/O-> Generate Signal-> Digital Output-> myDAQ 2
->Line output-> Press Shift and Select Port0/Line 0 to Port 0/Line 3.( 4 Digital Lines) then Finish
5. Set Generation mode as 1 Sample on Demand and Tap OK
6. Connections: Connect LED 1 to Port0/Line 0(myDAQ)
Connect LED 2 to Port0/Line 1(myDAQ)
Connect LED 3 to Port0/Line 2(myDAQ)
Connect LED 4 to Port0/Line 3(myDAQ)
Connect All the LED Cathode Pin to DGND
7. Find the VI in DAQ Programs RVRJC-> myDAQ-> Ex-4 Number to Boolean Conversion

Figure 4.1 front Panel and Block Diagram


Experiment 5: Audio Equalizer

Requirements:

1. NI LabVIEW 2017 or later


2. NI myDAQ
3. 3.5mm AUX Cable and Ear Phone

Procedure:

1. Launch LabVIEW 2017 or Later


2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. To configure DAQ Assistant Follow these Steps
3.1. Right Click on Block diagram-> Measurement I/O-> NI DAQmx-> Select DAQ Assistant
3.2. Place DAQ Assistant on Block Diagram then Select Acquire Signal-> Analog Input-> Voltage->
myDAQ 2-> Select Audio Input Left and Audio Input Right then Finish.
3.3. Select Acquisition mode as Continuous Sample and Set Samples to Read as 12k and Rate as
32kHz
3.4. Select Voltage input as +2V and -2V for Both Channels
4. To remove Noise in the Acquired Signal use filtering techniques.
4.1. Right Click on Block Diagram-> Express-> Signal Analysis-> Filter
5. Take 3 Filter Function with Low Filter with 400Hz as Cutoff Frequency, for 2nd filter as Band Pass
Filters Set Lower Cutoff frequency as 500 and Higher Cutoff Frequency as 2500 and for 3rd filter
select band pass filter with frequency range of 3000 to 10000.
6. For Generate the Acquired signal.
6.1. Place DAQ Assistant on Block Diagram then Select Generate Signal-> Analog Output->
Voltage-> myDAQ 2-> Select Audio Output Left and Audio output Right then Finish.
6.2. Select Acquisition mode as Continuous Sample and Set Samples to Write as 100 and Rate as
44.1kHz
6.3. Select Voltage input as +2V and -2V for Both Channels and Tap Ok
7. Connections: Connect AUX cable one end in Mobile to Audio IN (myDAQ)
Connect Ear phone in Audio Out (myDAQ)
8. Find VI in DAQ Programs RVRJC-> myDAQ-> Ex-5 Audio Equalizer
Figure 5.1 Front Panel

Figure 5.2
Block
Diagram

Experiment 6: Generating a Signal and adding Noise to the Signal and removing the noise using Filters

Requirements:

1. NI LabVIEW 2017 or Later

Procedure:

1. Launch LabVIEW 2017 or Later


2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. To Generate Signal with Noise Select Simulate Signal with Add Noise from Block Diagram->
Express-> Input-> Simulate Signal
4. To remove Noise in the Acquired Signal use filtering techniques.
4.1. Right Click on Block Diagram-> Express-> Signal Analysis-> Filter
5. Take Filter Function with Low Filter with 100Hz as Cutoff Frequency
6. Find VI in RVRJC Programs-> myDAQ-> Ex-6 Generating signal with noise and removing

Figure 6.1 Front Panel and Block Diagram

Experiment 7: Generating the Audio Signal and Finding Frequency of the Tone

Requirements:

1. NI LabVIEW 2017 or later


2. NI myDAQ
3. 3.5mm AUX Cable and Ear Phone

Procedure:

1. Launch LabVIEW 2017 or Later


2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. To configure DAQ Assistant Follow these Steps
3.1. Right Click on Block diagram-> Measurement I/O-> NI DAQmx-> Select DAQ Assistant
3.2. Place DAQ Assistant on Block Diagram then Select Acquire Signal-> Analog Input-> Voltage->
myDAQ 2-> Select Audio Input Left then Finish.
3.3. Select Acquisition mode as Continuous Sample and Set Samples to Read as 100 and Rate as
1kHz
3.4. Select Voltage input as +2V and -2V for Both Channels
4. To Find Frequency of the Acquired Signal use Tone Measurements that available in Block
Diagram-> Express-> Signal Analysis-> Tone Measurements select Frequency and create numeric
Indicator.
5. Connections: Connect Microphone to Audio In(myDAQ)
6. Find the VI DAQ Programs RVRJC-> myDAQ-> Ex-7 Generating RT Audio Signal and Finding
Frequency of the voice.
Figure 7.1. Front Panel and Block Diagram

Experiment 8: Intensity Variation using Potentiometer and LED

Requirements:

1. NI LabVIEW 2017 or later


2. NI myDAQ
3. Potentiometer
4. LED

Procedure:

1. Launch LabVIEW 2017 or Later


2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. To Find the Voltage of Potentiometer do the following steps
3.1. To acquire the value of Potentiometer Take DAQ assistant from Block Diagram->
Measurement I/O-> NI DAQmx.
3.2. Configure DAQ assistant as Acquire signal-> Analog Input-> Voltage-> myDAQ 2-> AI0 then
Finish
3.3. Configure acquisition mode as Continuous Samples and Tap OK
3.4. To make intensity of light configure with Generate signal-> Analog Output-> Voltage->
myDAQ 2-> AO0 then Finish
3.5. Configure Generate mode as Continuous samples and Tap OK
3.6. Connections:

Potentiometer myDAQ
Pin 1 Vcc(+5V)
Pin 2 AI0+
Pin 3 DGND

3.7. For Intensity of Light Connection: Connect Anode (LED) to AO0 (myDAQ)

Connect Cathode (LED) to DGND (myDAQ)

Figure 8.1 Front Panel and Block Diagram


Multisim Experiments

Experiment 1: Design a Non-Inverting and Inverting Amplifier using Op-Amp (Simulation and
Real Time)

Implementation of Inverting Amplifier using Multisim Instruments

Requirements:

1. NI Multisim 14.0
2. NI myDAQ
3. Wires and Breadboard

Procedure:

1. Launch Multisim 14.0


2. Go to File-> New-> Blank Design
3. Design your own Inverting amplifier by applying gain formula, below find a Multisim design
circuit diagram
4. Design a Gain with Assuming resistor R1 and Feedback Resistor Rf.
5. Use Ctrl+W for Placing the Component or Navigate to Place-> Component.
6. To Place Resistor go to Place-> Component-> All Groups-> Basic-> Resistor with any value.
7. To place DC Power Source and Ground navigate to Place-> Component-> All Groups->
Sources-> DC Source and Take GROUND.
8. Find the Multisim design in DAQ programs RVRJC-> Multisim-> Inverting Amplifier with AC
Signal.

Figure 1.1. Inverting Filter Using Multisim Instruments

9. To place Function Generator go to Simulate->Instruments->Function Generator


10. To Place Oscilloscope go to Simulate->Instruments->Oscilloscope
11. Run the simulation by Pressing F5.
12. Double Click on Function Generator set Frequency as 1kHz and Amplitude as 1 Vpp, then
double click on oscilloscope see the response of Input Signal as Red Color and Inverted
Signal as Blue Color

Figure 1.2. Function Generator


Input

Figure 1.3. Oscilloscope

Implementation of Inverting Amplifier in myDAQ instruments

Procedure:

1. Launch Multisim 14.0


2. Go to File-> New-> Blank Design
3. Design your own Inverting amplifier by applying gain formula, below find a Multisim design
circuit diagram “Note: Build The Circuit in Breadboard
4. Build the same multisim design by replacing multisim instruments (Function Generator and
Oscilloscope) with NI ELVIS Instruments.
5. To place NI ELVIS Instruments navigate to Simulate->Instruments-> NI ELVIS Instruments->
Select NI ELVISmx Function Generator and NI ELVISmx Oscilloscope.
6. Find the multisim design in DAQ Programs RVRJC->Multisim->Inverting Amplifier using myDAQ
7. Find below image of Inverting amplifier Design using NI ELVIS Instruments
Figure 1.4 Implementation in NI ELVIS Instruments

1. Double Click on NI ELVISmx Function Generator and select Device as myDAQ and Select Signal
Route as AO0

2. Set Frequency as 1kHz and Amplitude as 1Vpp and then Press Run
3. Double click on NI ELVISmx Oscilloscope and Select Device as myDAQ and Select Source as AI0
and then Run

4. Connections: AO0 to Resistor(10Kohm) One end


AI0(+) to Pin 6(IC 741) and AI0(-) to DGND(myDAQ)

Experiment 2: Design of Low Pass Filter using RC (Simulation and Real Time)

Implementation in Multisim Simulation

Requirements:

1. NI Multisim 14.0
2. NI myDAQ
3. Wires and Breadboard

Procedure:

1. Launch Multisim 14.0


2. Go to File-> New-> Blank Design
3. Design a Low Pass Filter using RC Components by assuming Capacitor Value 0.1uF and
Fc=1KHz.
4. By using formula Fc=1/2*3.14*R*C, Calculate R Value. The Resistor value=10kohm
5. Use Ctrl+W for Placing the Component or Navigate to Place-> Component.
6. To Place Resistor go to Place-> Component-> All Groups-> Basic-> Resistor with value.
7. To Place Capacitor go to Place-> Component-> All Groups-> Basic-> Capacitor with value
8. To place DC Power Source and Ground navigate to Place-> Component-> All Groups->
Sources-> DC Source and Take GROUND.
9. Find the Multisim design in DAQ programs RVRJC-> Multisim-> Low Pass Filter

Figure 2.1 Implementation of Low Pass Filter in Multisim

10. To place Function Generator go to Simulate->Instruments->Function Generator


11. To Place Oscilloscope go to Simulate->Instruments->Bode Plotter
12. Run the simulation by Pressing F5.
13. Double Click on Function Generator set Frequency as 1kHz and Amplitude as 1 Vpp

Figure 2.2. Function Generator Input Figure 2.3 Bode Plotter

14. Find Magnitude Response and Phase Response in Bode Plotter


Implementation of Low Pass Filter using myDAQ

Procedure:

1. Launch Multisim 14.0


2. Go to File-> New-> Blank Design
3. Design your own Low Pass Filter by applying Fc formula, below find a Multisim design circuit
diagram. “Note: Build The Circuit in Breadboard
4. Build the same multisim design by replacing multisim instruments (Function Generator and
Bode Plotter) with NI ELVIS Instruments.
5. To place NI ELVIS Instruments navigate to Simulate->Instruments-> NI ELVIS Instruments->
Select NI ELVISmx Function Generator and NI ELVISmx Bode Plotter
6. Find the multisim design in DAQ Programs RVRJC->Multisim->Low Pass Filter using myDAQ

Find below image of Low Pass Filter Design using NI ELVIS Instruments

Figure 2.4. Implementation of Low Pass Filter using myDAQ

1. Double Click on NI ELVISmx Bode Analyzer and Set Start Frequency as 100Hz and Stop
Frequency as 10kHz then Select device as myDAQ and then Run
2. Connections: AO0 -> AI0(+) AI(1+)-> Signal and make Common Ground
Figure 2.5. Bode Plotter
Experiment 3: Logic Gates Operation (Simulation and myDAQ)

Implementation in Multisim Simulation

Requirements:

1. NI Multisim 14.0
2. NI myDAQ
3. Wires and Breadboard

Procedure:

1. Launch Multisim 14.0


2. Go to File-> New-> Blank Design
3. Implementing Logical Gate Operation in multisim design
4. Use Ctrl+W for Placing the Component or Navigate to Place-> Component.
5. To Place DIP Switch go to Place-> Component-> All Groups-> Basic-> Switch-> DIPSW1
6. To Place LED go to Place-> Component-> All Groups-> Basic-> Diode -> LED Green
7. To place DC Power Source and Ground navigate to Place-> Component-> All Groups->
Sources-> DC Source and Take GROUND.
8. To Place Logic Gates go to Place-> Component->All Groups-> Basic-> TTL->select 7408(AND)
and 7432(OR)
9. Find the Multisim design in DAQ Programs RVRJC-> Multisim-> Logic Gates

Figure 3.1 Implementation in multisim


Implementation of Logic Gates using myDAQ

Procedure:

1. Launch Multisim 14.0


2. Go to File-> New-> Blank Design
3. Design your own Logic Gates Operation, below find a Multisim design circuit diagram. “Note:
Build The Circuit in Breadboard
4. Build the same multisim design by replacing multisim instruments (DIPSW1 and LED) with NI
ELVIS Instruments.
5. To place NI ELVIS Instruments navigate to Simulate->Instruments-> NI ELVIS Instruments->
Select NI ELVISmx Digital Writer and NI ELVISmx Digital Reader
6. Find the multisim design in DAQ Programs RVRJC->Multisim->Logic Gates using myDAQ

Figure 3.2. Implementation using myDAQ Instruments

1. Double Click on Digital Writer and Select the Device as myDAQ then Run.
2. Double Click on Digital Reader and Select the Device as myDAQ then Run.
3. Connections for Logical OR Gate: DIO 0(myDAQ) ->Pin 1(IC 7432)
DIO 1(myDAQ) -> Pin 2(IC 7432)
+5V (myDAQ) -> Pin 14(IC 7432)
DGND (myDAQ) -> Pin 7(IC 7432)
4. Connections for Logical AND Gate: DIO 0(myDAQ) ->Pin 1(IC 7408)
DIO 1(myDAQ) -> Pin 2(IC 7408)
+5V (myDAQ) -> Pin 14(IC 7408)
DGND (myDAQ) -> Pin 7(IC 7408)
Figure 3.3 Digital Writer Figure 3.4 Digital Reader

You might also like