09-16-2008 01:18 PM
09-17-2008 07:59 AM
09-17-2008 08:13 AM
You can add a boolien switch to the enable function of the wright to file. So when the button is pressed it records but when you press it again it stops. If you right click on the Wright to measurment file in the block diagram you can set it to request a new filename everytime it is enabled by pressing save to one file the tick the "ask user to choose file name"
Hope that helps
09-17-2008 10:00 AM
09-17-2008 10:09 AM
09-17-2008 10:45 AM
09-17-2008 02:17 PM - edited 09-17-2008 02:19 PM
I'm going to guess that your "Saving..." light is flashing on and off because you're flipping on and off the Enable switch due to your threshhold. You're logging data only when it's over your limit, and the signal is probably alternately above and below that limit, causing logging to start and stop.
You've used a button with a "Switch" action for "Reset." This means that you're providing a TRUE signal to Reset every time through the loop, causing it to reset and prompt you for a new file name each loop iteration. Instead, set the Reset signal to TRUE only once each time you restart logging. You could accomplish this by setting the mechanical action on your Reset button to "Latch when released." A better way to do it would be to add a shift register that tracks whether you're currently saving data. If data was not being saved on the previous iteration, but it is on the current one, then set the Reset input to true for that iteration. If you don't understand this, spend a bit more time learning LabVIEW, and experiment with shift registers.
There's a lot of room to simplify your program. For example, you can replace this:
with this:
If you are just uploading a single VI, please try to attach only that file rather than a ZIP archive.