04-10-2016 03:49 PM
I am trying to figure out how to control which order the sound files are played when set-up like this. It does not run them from top to bottom as I assumed it might. How do I control this order? Im sure there is a better way to wire it as well I am just unsure of how. Maybe that will make determing the order the files are played easier? Thanks you sample VI attached below
Solved! Go to Solution.
04-10-2016 04:18 PM
As you have just discovered, LabVIEW is an inherently parallel language, governed by Data Flow (data travel through wires, usually from Origin to Destination). To ensure order, you need to use Data Flow. One particular wire that many beginners, includiing you, often ignore is the Error Line. Most VIs, including the Express VIs in your example, have an Error In and Error Out. If you wire the Error Out from one Express VI to the Error In of the second, and its Error Out to the Error In of the third, and its Error Out to the Error In of the fourth, the sounds will play in the order 1, 2, 3, 4. If you change the Error In/Out wiring, you can change the order of sound presentation.
Bob Schor