What is a DSL File and How Can I Use It?Primary Software: Other NI Software>>DataSocketPrimary Software Version: 4.2 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: What is a DSL file and how can I use it? Solution: A DataSocket Link (DSL) file is similar to an .ini file. DSL files contain the URL of the DataSocket Server with a named tag for the data appended, such as dstp://127.0.0.1/wave. You can use the DSL file with the DataSocket Read VIs in LabVIEW 5.1 or with the DataSocket Read function in LabVIEW 6.0 or later. You cannot use DSL files with DataSocket Write VIs or functions. If you use a DSL file with a DataSocket Read VI or function, you must define the data type of the data to read. Use a DSL file if you often change the URL to the DataSocket Server, but you do not want to update the URL in each VI that reads data from the server. For example, if the DataSocket Server is unavailable and you want to move the server to another location, you can change the URL in the DSL file instead of changing the URL in every VI that reads data from the server. Even though you moved the server, the reading process is transparent to users. The readers connect to the DSL file and the file redirects the reader to the URL contained in the file. You might want to place the DSL file on a network drive where all readers can access it. You also can place the DSL file on a web server that exports the DSL file to users beyond your internal network. For example, use the web server approach if readers are on UNIX machines and you do not want to configure SAMBA for drive sharing. Creating a DSL File Use any text editor to create and open a new text document. Type the following, where 127.0.0.1 is the URL of the server and wave is the named tag for the data: [InternetShortcut]Save and close the file and change the file extension from .txt to .dsl. The attached file has LabVIEW DataSocket examples and a sample DSL file. Instructions are included. This example is written in LabVIEW 6.0. Related Links: Attachments:
Report Date: 11/28/2000 Last Updated: 09/15/2004 Document ID: 23RDF0OP |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
