11-11-2015 01:51 AM
I've searched quite a bit but I can't find a detailed, step-by-step explanation addressing my problem. I've attached my work so far-I just want the .wav files to play once without the temperature range bracket functionality that I built into my VI (because if my range is too wide, the .wav file plays multiple times). It's just a simple heating process of a thermocouple (from ~22degC to ~70degC) which feeds into a breadboard with LEDs, providing warnings for every 5 degrees celsius increase in temp. Any help would be massively appreciated. Cheers!
11-11-2015 08:33 AM
Can you save for LV2014 and re-post. Sounds interesting.
11-11-2015 09:47 AM
Here are the files saved as previous versions. There was no option to save as LV2014 (the closest option was LV2012), but I was able to save the file as ver14.0 and ver12.0 compatible. Hopefully they still work. Thank you for your help!
11-11-2015 12:37 PM - edited 11-11-2015 12:37 PM
There's quite a lot of things that could be improved in that VI. It seems obvious that you're fairly new to LabVIEW.
If you just want a quick and easy fix that makes sure that each sound plays just one time each time you run your program, you can use the "First call?" function in the Programming --> Synchronization palette, like so:
This is just the easiest way to do it without messing with the rest of your program. Each instance of the "First Call?" VI only returns True the first time it is called after the run arrow is pressed.
However there are a lot of better things you could do in your program if you want to develop this any further, and if you ever want to run this multiple times while only pressing "run" once this approach won't work. It kind of depends if your goal here is just to get the program working or if you want to learn a lot more about programming in LabVIEW.
11-11-2015 12:54 PM
A 0/1 select switch controlling a For Loop is a Rube Goldberg
.
That should just be a case structure.
There are other things that could help simplify the code, particularly with the multiple comparisons.
11-11-2015 10:32 PM
Thank you, Kyle. That was an embarrassingly easy fix (in fairness though, we're only through chapter 4 of John Essick's Intro to Labview so we haven't covered case structures yet). I appreciate your detailed help, as well as the interest of others (Mark and RavensFan). I've attached my updated file in case anyone would like to look it over. As shocking as this may be, my lab partner and I were selected to present our program to the rest of the class because we did so well. We present tomorrow at 2pm CST so any more advice for cool/mind-blowing functionality add-ons or just general tips on simplifying the program would be awesome...I'll post the grade afterward. 😉