LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open an external file in Labview?

Hi, Who knows how to open an external file in LabView? I want to open an .UDL file(data link API) which is a dialog window letting me input correlated database information, but I dont know how to open this type of file in my LabView Program.
Thanks.

Red
0 Kudos
Message 1 of 5
(3,023 Views)
A UDL is technically a text file, so you could open it with "Read Characters from file", put the result string into a string control, edit it and save it back using the "Write Characters to File".

UDLs however have their own configuration dialog embedded in the Windows OS. You can use this dialog in your LabVIEW application. The attached VI shows how to create a new UDL. You can edit an existing UDL by switching the method node to PromptEdit and wiring in an open ADO connection reference.
Message 2 of 5
(3,023 Views)
Good suggestions. But I can not run your attached file.Could you please tell me how to open the Microsoft Data Link Properties Dialog Window in Labview?

Thanks a lot.

Red
0 Kudos
Message 3 of 5
(3,023 Views)
The VI is saved in LV 7.1. I have attached a screenshot of the block diagram.
0 Kudos
Message 4 of 5
(3,023 Views)
Thank you so much!

Red
0 Kudos
Message 5 of 5
(3,023 Views)