取消
显示结果 
搜索替代 
您的意思是: 

Write to Text File not working...

已解决!
转到解答

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 项奖励
1 条消息(共 4 条)
3,267 次查看
解答
已被主题作者 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 项奖励
2 条消息(共 4 条)
3,262 次查看

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.



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
下载全部
0 项奖励
3 条消息(共 4 条)
3,257 次查看

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

0 项奖励
4 条消息(共 4 条)
3,168 次查看