Jump to content

Randomly get open file dialog even though the file exists


Recommended Posts

I've been using this vi to write error information to a log for months at this file path C:\LabVIEW Working Folder\Tester Software\Config and Log Files\Error Log.txt and as an executable at this file path

C:\LabVIEW Working Folder\Tester Software\data\Error Log.txt 

Now for some unknown reason randomly but usually on the close i get a file dialog box asking which file to write... 

Any idea what I'm missing... what stupid mistake did I make? It just doesn't make sense...

 

image.png.3d76edfbd32f131aebc88faf8ef31a86.png

Link to post
  • 1 month later...

Are you sure there's no race condition of some sort? Calling this VI parallel with another instance of it? Though it would mean that you set it reentrant and I think it would throw file permission errors, but at first glance I don't see other problems.

Another idea is that your wiring is wrong but fooling you: you have a junction of file_handle and error before the case structure, and the close VI is not after the case but parallel (sometimes before).

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.