NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

browse file dialog?

Solved!
Go to solution
Is there a teststand API function, or windows dll call, or some activex method somewhere, that will pop up a browse file dialog, and output the path to the chosen file?

Thanks
David Jenkinson
0 Kudos
Message 1 of 9
(5,271 Views)
Solution
Accepted by david_jenkinson
Engine.DisplayFileDialog will do the trick for you.
Message 2 of 9
(5,260 Views)
Thanks!
0 Kudos
Message 3 of 9
(5,258 Views)
Will this create a modal dialog box? I am using the example spreadsheet file to array VI and the dialog box is not modal. The dialog box  usually gets lost behind other windows and the application is stuck until the dialog box is found and responded to.
0 Kudos
Message 4 of 9
(5,042 Views)

Dialog windows are modal only to one process, and that dialog is modal to the TestStand Sequence Editor.  Inside the VI it sounds like you're making a blocking call to the dialog box.  The dialog box is modal to the sequence editor, so it's showing up in front of the sequence editor, but not in front of the VI.  This is expected behavior. 


Mark E.
National Instruments

0 Kudos
Message 5 of 9
(5,015 Views)
From that, am I to assume if I bring TestStand Sequence Editor to the front, the dialog box will also be brought to the front?
0 Kudos
Message 6 of 9
(5,011 Views)
Yes, that is the way it should work. 

Mark E.
National Instruments

0 Kudos
Message 7 of 9
(4,992 Views)

Unfortunately it does not work that way here. I tested this. The only way I was ensured to find the file selector was to minimize all the windows. The dialog box does not minimize. The TestStand window would cover the dialog box. It is modal to LabView windows if any are open otherwise it is not modal to any window. Is there a setting that I can use to make it modal in TestStand or is there an equivalent TestStand sequence/function? I am trying to deploy a test sequence to a Lab PC which will not be running the TestStand or LabView GUIs. It will be using the Simple UserInterface CVI TestExec.

0 Kudos
Message 8 of 9
(4,978 Views)
I found the answer. There are two VI blocks, one called "TestStand - Start Modal Dialog" and another called "TestStand - End Modal Dialog". These can be used around the "File Dialog" to make it modal for TestStand in addition to LabView. Wiring these up isn't hard but not easy to explain how I did it here.
0 Kudos
Message 9 of 9
(4,971 Views)