<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SPEED VI &#187; UDL file</title>
	<atom:link href="http://www.speedvi.com/tag/udl-file/feed" rel="self" type="application/rss+xml" />
	<link>http://www.speedvi.com</link>
	<description>Everything about Virtual Instruments, Computer-based Measurement and Control, Automation...</description>
	<lastBuildDate>Thu, 28 Jan 2010 14:54:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset</title>
		<link>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html</link>
		<comments>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html#comments</comments>
		<pubDate>Fri, 16 Jan 2009 09:25:41 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Database Connectivity Toolset]]></category>
		<category><![CDATA[UDL file]]></category>

		<guid isPermaLink="false">http://www.speedvi.com/?p=32</guid>
		<description><![CDATA[One of my project needs to save test results to different Access database files for different units to be tested. The database files&#8217; name is automatic generated based on UUT&#8217;s serial number. Currently, I&#8217;m using the LabVIEW Database Connectivity Toolset, and the default method to access a database file by it is UDL file. The [...]]]></description>
			<content:encoded><![CDATA[<p>One of my project needs to save test results to different Access database files for different units to be tested. The database files&#8217; name is automatic generated based on UUT&#8217;s serial number. Currently, I&#8217;m using the LabVIEW Database Connectivity Toolset, and the default method to access a database file by it is UDL file. The UDL file contains only one static database file and it is quite hard to change it programmly without manually select a database file and click the confirm button.  And it will be a nightmare to create each UDL file for each UUT before the test is taken.</p>
<p>To change the UDL file&#8217;s content in LabVIEW programmly is not easy too. Because UDL file  is unicode-formatted, and LabVIEW is quite limited in support to unicode. I had tried several ways to change the database file name in UDL file and save the UDL file to hard disk. And when I open the changed UDL again, I got &#8220;File corrupted&#8221; message. It seemed that it is not a good way.<span id="more-32"></span>At last, I had to read the help file of Database Connectivity Toolset word by word to find a way to work round. Wow, I found out that the VI DB Tools Open Connection is a Polymorphic VI that accepts string and file path data types. Just append the Access database file&#8217;s path after &#8220;Provider=Microsoft.Jet.OLEDB.4.0; Data Source=&#8221;, and wire it to connection information connector of DB Tools Open Connection VI, and everything will be OK.  Everything get solved.</p>
<p>It is really a good habit to read the help file carefully.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>March 8, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html" title="A Note about Using Database Connectivity Toolset in LabVIEW">A Note about Using Database Connectivity Toolset in LabVIEW</a> (0)</li><li>December 24, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/howto-creating-a-microsoft-data-link-file-udl-for-connecting-to-microsoft-access-in-labview.html" title="Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW">Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW</a> (0)</li><li>December 18, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-write-and-read-access-database-in-labview.html" title="How to write and read Access database in LabVIEW">How to write and read Access database in LabVIEW</a> (0)</li><li>July 10, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/move-up-and-down-tree-control-sub-items-programmatically-in-labview.html" title="Move Up and Down Tree Control Sub-items Programmatically in LabVIEW">Move Up and Down Tree Control Sub-items Programmatically in LabVIEW</a> (0)</li><li>April 20, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/transfer-more-than-text-message-in-queue-between-loops-in-labview.html" title="Transfer More Than Text Message in Queue Between Loops in LabVIEW">Transfer More Than Text Message in Queue Between Loops in LabVIEW</a> (2)</li><li>March 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-create-linked-list-in-labview.html" title="How to Create Linked List in LabVIEW">How to Create Linked List in LabVIEW</a> (0)</li><li>February 22, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/build-a-tri-state-led-indicator-in-labview.html" title="Build a Tri-State LED Indicator in LabVIEW">Build a Tri-State LED Indicator in LabVIEW</a> (0)</li><li>February 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/ni-announcing-the-labview-2009-platform-beta-program.html" title="NI Announcing the LabVIEW 2009 Platform Beta Program">NI Announcing the LabVIEW 2009 Platform Beta Program</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
