From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
In this video we create a basic fader. When a user flips a switch the volume level fades to 0 and stops the program.
Note that it is highly recommended that you try the exercise problem on your own before watching the solution video. For more information on the key concepts learned in this video look at the links under Additional Resources.
Exercise Problem
Procedure: Create the required VI(s) to achieve the following tasks.
Requirements:
Create a VI which reads the signal from the MyDAQ audio in port and outputs it to the audio out port.
When a user flips the switch the volume level should slowly fade to 0.
Stop the VI when the volume has reached zero.
DIsplay the audio signal being generated on a graph and the volume level on a numeric indicator.
Exerxise Solution Video
Example Snippet
Exercise Problem Extension
Procedure: Create the required VI(s) to achieve the following tasks.
Requirements:
Modify the exercise problem from above so that when the volume reaces 0 it starts increasing to 1.
Similarly when the volumes reaches 1 have it start decreasing to 0.
Stop the program when a user pushes a stop button.