08-19-2005 04:05 PM
08-19-2005 04:39 PM
08-22-2005 07:59 AM
Have a look at this for a much simpler approach - a loop with a 1s wait. The arrays on the left side are auto-indexed into the loop and determine the number of times the loop will run. Also note that to read a boolean, you can simply feed a boolean into the Type input of the FP Read VI.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
08-22-2005 08:05 AM
08-22-2005 08:12 AM
08-22-2005 10:02 AM
08-22-2005 12:05 PM
08-22-2005 01:03 PM
You don't need to use conditions. You can simply have the times in an array outside the loop and wire the array into the loop like the other 2 arrays. The big advantage about something like this is that if you need to make a change, it affects all the loops at the same time.
One important point that wasn't shown in my example is error handling. At the very least you should have an indicator coming out of the FP Read VI so you can see when there is an error. More advanced methods include stopping the loop, alerting the user or doing something else.