10-12-2020 11:28 PM
Hello all,
In my vi, I am trying to append the final values in the indicator for B passes, B fails, L passes, and L fails to the end of my text file. I tired using a local reference and property node (just to try it out) but the values were incorrect. The vi I posted has sample forced values that represent the vi I am working on. I am simply out of ideas at this point. I am fairly new to LabVIEW.
Solved! Go to Solution.
10-13-2020 01:22 AM
Hi Jeff,
@Jeffk2336 wrote:
In my vi, I am trying to append the final values in the indicator for B passes, B fails, L passes, and L fails to the end of my text file.
I am fairly new to LabVIEW.
To write to the end of a file (aka "append new data") you need to:
(When you write the data in a loop you should open the file, set fileposition and close the file outside the loop!)
When you are "fairly new" to LabVIEW then you should take care of all those "Training resources" offered in the header of the LabVIEW board!
10-13-2020 01:45 AM - edited 10-13-2020 01:47 AM
@GerdW wrote:
Hi Jeff,
@Jeffk2336 wrote:
In my vi, I am trying to append the final values in the indicator for B passes, B fails, L passes, and L fails to the end of my text file.
I am fairly new to LabVIEW.
To write to the end of a file (aka "append new data") you need to:
- Open the file
- Set FilePosition to "end of file"
- Write data
- Close file
(When you write the data in a loop you should open the file, set fileposition and close the file outside the loop!)
When you are "fairly new" to LabVIEW then you should take care of all those "Training resources" offered in the header of the LabVIEW board!
Maybe I did not explain myself clearly. My issue is not appending the data (I am able to do that), it’s writing the final values that increment for passes and fails from the indicators. The vi attached outputs the incorrect values at the end of the text file.
10-13-2020 01:49 AM
10-13-2020 02:02 AM
@GerdW wrote:
Hi Jeff,
your VI is saved in LV2019, but right now I'm working with LV2017.
Could you attach a downconverted version of your VI?
Did this convert correctly. I selected LabVIEW 17.0...?
10-13-2020 07:01 AM
Proper data flow to the rescue...
10-14-2020 01:11 AM
@crossrulz wrote:
Proper data flow to the rescue...
Thank you for taking the time to modify the vi. Among other things, I am finally able to get the passes and fails properly now to the file.