LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1 occured at write to text file

Solved!
Go to solution

Hey there !

I tried writing a VI which takes some measurements at some particular time period, and then save it to a text file. But  I get  an error saying an input parameter is invalid at write to text file. This always happens during the second round of the loop. I've enclosed the screenshots.

Thanks in advance.

Download All
0 Kudos
Message 1 of 4
(2,979 Views)
Solution
Accepted by topic author reek_l

You close the file at the end of the loop and you never open it again.  Move the close file outside the loop (after it).

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 2 of 4
(2,968 Views)

Thanks a lot Bill!

It finally worked.

0 Kudos
Message 3 of 4
(2,962 Views)

Very cool.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(2,957 Views)