This is the seventh article of “The OpenG VIs that I couldn’t live without“, a series of articles showing some of my favorite OpenG VIs. In this article, I’m going to show a very useful set of VIs, the OpenG Time Tools, a set of timing VIs with error handling.
Let’s take a look at one of the VIs. As you can see, below, the OpenG Wait (ms) function has an error in input and an error out output.
In the simple example, shown below, you can see how we are able to insert a wait between execution of two tasks by chaining (wiring in a sequence) the error cluster wiring between the three VIs.
This is not possible, using LabVIEW’s built-in Wait (ms) function, shown below, which has no error input or output.
One other thing that we did not yet mention, is that the OpenG Wait (ms) function has an input called “Wait on Error” that defaults to FALSE. This means that we can choose whether or not we want to wait, if an error occurs upstream — generally, we will not want to wait, if an error occurs.
If you want to give this VI a try, you can obtain it using VI Package Manager (VIPM). Simply select the OpenG Time Library (the oglib_time package from within VIPM), you will find the OpenG Time Tools palette in the Functions palette under the OpenG submenu. (See here for a quick guide on how to install OpenG on VIPM.)