From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent file path from prompt

Howdy!

I am new to working with XControls but I am working on one for fun to get better with them. The control part of the xcontrol is two file path constants and a boolean push button while the indicator part is a 2D picture. The boolean push button is meant to switch the picture between the two path constants. The problem I am having is if nothing is in the file path constants at the beginning of the run, the VI will query over and over asking for a file path. I want it to wait for the user to click on the Browse button before it prompts and not before. Is there any way to hold off the prompt for the file path?

Thanks for any help you can provide!

0 Kudos
Message 1 of 3
(2,255 Views)

Here is the XControl I have created:

0 Kudos
Message 2 of 3
(2,252 Views)

I can't open the code at the moment, but can't you use the "Empty Path" function on the comparision palette and if the control is empty, then skip the rest of the code with a case structure?

0 Kudos
Message 3 of 3
(2,173 Views)