From the course: Learning LabVIEW
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Handle errors - LabVIEW Tutorial
From the course: Learning LabVIEW
Challenge: Handle errors
(upbeat music) - [Instructor] It's time for a challenge. To give you practice fixing and handling errors. You can find the VI to use for this challenge in the exercise files. It simply opens a text file, and then uses a wild loop to read characters one at a time from the file and displays them with a string indicator. When it reaches the end, the program should exit the loop and close the file of reference. However, this VI has a broken run arrow which means it has errors. Your goal for this challenge has two parts. You should fix all of the existing errors to make this VI runnable, and you should incorporate error clusters to handle any unexpected errors that occur at run time. As a hint, the read from text file VI will raise an error when it reaches the end of the file and there are no more characters left to read. You can possibly use that as a way to stop the wild loop. I've also included the test file digits.txt…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.