01-24-2010 09:26 AM
Hi all,
I created the following VI and have a couple of problems I cannot understand. The first of which is that the save and open or read and write files are working, but I have to stop the VI operation and then choose save or read and then start the VI again for the program to recognize a change in state. Although the buttons are in my main while loop.
Also, I have used a button ( FFT. time) to change the X.axis of the FFT graph however it gives me a data at end of file error is it is used when opening a file. Undernormal operations, i.e. connected to a scope signal it works well, but only the error is data is read from file, the button does not work. IS there an issue of using a command like this when reading from a file.
Please have a look-
Solved! Go to Solution.
01-24-2010 10:56 AM
01-24-2010 11:15 AM
01-24-2010 11:18 AM
01-24-2010 11:18 AM
Sorry lost the link but this was the previos answer to the same problem..
Looks like this might be your answer. It appears to be a limitation in the Express VI itself that won't allow multiple read accesses after the end of the file has been reached (even if new data is appended).
01-24-2010 11:28 AM
Here is my final VI. Is it easier to do this without express VI. The problem is that I have a german software version I have to complete this on and I am using 8.5.1
01-24-2010 02:14 PM
01-24-2010 03:09 PM
I believe I have the right signal now for saving. That was a mistake, grabbed the wrong value. However, the end of file problem is now solved. I have to connect the end of file to stop the loop in the True state of the read file. Changes of working VI are attached.
However, one last question if you could. When I create an exe. will I loose the Run button or arrow that is usually used, and if so how do I run the exe. Will toggling the stop button on the loop serve as the run/stop button or does the VI automatically start.
01-24-2010 04:08 PM