LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to Text File not working...

Solved!
Go to solution

So I have a little test script to try and get writing to text files working. However, nothing happens. I also tried creating the text file within the path I declared in my VI, and its still not working. I'm sure its an easy fix but any help is greatly appreciated.

 

Using Labview 2020 64-bit.

0 Kudos
Message 1 of 4
(1,734 Views)
Solution
Accepted by topic author David99999

Hi David,

 

when you want to create a file then you should actually "create" it - and not just use the "open"-mode of FileOpen…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,729 Views)

1. I typically use the "Create or Replace" operation when creating a log file.  The access input can be left unwired.

2. I am noticing your loop never stops.  So you can never close the file or get the error dialog if there is an error.  Have the loop stop with an error or a button.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Download All
0 Kudos
Message 3 of 4
(1,724 Views)

Welp, that was an easy one. Thanks guys, I'm sure you know how it goes when drinking from a fire hose XD

0 Kudos
Message 4 of 4
(1,635 Views)