LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Choose file to write" prompt

Hello,

 

I just received a very big labview project. When I execute it, I always get the "Choose file to write" prompt indefinetly.

Does anyone have some suggestions how to narrow down the origin of this error? All the file write VIs look fine to me.

 

I am using Labview 2021.

 

Thanks you very much.

 

Best regards,

Michael

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

Hi Michael,

 

place a breakpoint for each file operation and start debugging…

Best regards,
GerdW


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

I believe there are a number of shipping VIs which can generate that prompt (for instance <vi.lib>\Utility\file.llb\Write To Spreadsheet File (string).vi).

 

I would suggest starting with Ctrl+F, switching to the text mode and searching for that text. Make sure you open the options for the search and mark to search the FP, hidden objects, etc. This should hopefully help you find which VIs in your code can even show the prompt (note that this only searches through VIs which are loaded, so if you have dynamic calls to VIs, they won't be covered).

 

From there, you can probably place a conditional probe to break if the path is empty and then use the font dropdown (which becomes a call chain dropdown when running) to see your call chain.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(1,147 Views)

Well that message can mean:

  • You are do not have a path wired to a VI that opens or writes to a file
  • You are not using a Shift Register to pass the path between loop iterations 
  • The file path is getting reset to default (Not a path) because you don't have the path wired through every state in a State Machine

 

But I can only guess because you did not post any code that we can debug... 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 4
(1,137 Views)