<?xml version="1.0"?>
<rss version="2.0"><channel><title>Database and File IO Latest Topics</title><link>https://lavag.org/forum/24-database-and-file-io/</link><description>Database and File IO Latest Topics</description><language>en</language><item><title>h5labview on cRIO?</title><link>https://lavag.org/topic/59192-h5labview-on-crio/</link><description><![CDATA[<p>
	Hello
</p>

<p>
	I am using h5labview on a windows PC connected to a cRIO. This seems to work fine. I rather would like the file save be running on the cRIO though. Does anyone know if there is a howto on this subject? The most recent link I can find is this one:
</p>

<p>
	<a href="https://sourceforge.net/p/h5labview/discussion/general/thread/479d0cdf61/?limit=25#c81d" rel="external nofollow">https://sourceforge.net/p/h5labview/discussion/general/thread/479d0cdf61/?limit=25#c81d</a>
</p>

<p>
	the link is a few years old and if I would be able to compile and get a *.o file I would not know howto use it on the cRIO. I have some Linux experience I can setup a VM with Linux. I use Labview 2024.
</p>

<p>
	 
</p>

<p>
	any help is appreciated thank you!
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">59192</guid><pubDate>Thu, 12 Feb 2026 16:25:46 +0000</pubDate></item><item><title>Question: Does anybody use "Cyth SQLite Logger"</title><link>https://lavag.org/topic/21650-question-does-anybody-use-cyth-sqlite-logger/</link><description><![CDATA[<p>
	Does anyone use <a href="https://lavag.org/topic/16647-cr-cyth-sqlite-logger/" rel="">Cyth SQLite Logger</a>?   In particular, does anyone use it with Actor Framework or DQMH or similar frameworks.  This logger was written by me years ago and I use it often, but in <a href="https://labviewwiki.org/wiki/Messenger_Library" rel="external">Messenger-Library</a> based applications.  I would like to know if it works properly in those frameworks.  It should, I think, as they use similar Async-Called VIs as Messenger Library (Cyth SQLite Logger identifies the Async-running "actor" that makes a log entry and records it).
</p>
]]></description><guid isPermaLink="false">21650</guid><pubDate>Tue, 07 Jul 2020 09:18:06 +0000</pubDate></item><item><title>PostgreSQL Library</title><link>https://lavag.org/topic/21263-postgresql-library/</link><description><![CDATA[<p>
	A while back I posted <a href="https://lavag.org/topic/19822-what-database-toolkit-do-you-use/?do=findComment&amp;comment=121281" rel="">a beta version of a client library to access Postgresql</a>.  The project driving that work was put on hold, and I have not done significant work since.  But at least some people have used or have considered using it, so I wanted to see how many people that is.  There has also been a desire expressed to me about using it on RT, so I wanted to know if anyone has developed it to do that.
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="14427" data-ratio="60.29" width="826" alt="PQLabVIEW.png.5a7e92b64efee9b53b92b352a02e0f45.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2019_11/PQLabVIEW.png.5a7e92b64efee9b53b92b352a02e0f45.png">
</p>
]]></description><guid isPermaLink="false">21263</guid><pubDate>Fri, 08 Nov 2019 10:24:38 +0000</pubDate></item><item><title>Write multiple images into TDMS file</title><link>https://lavag.org/topic/53440-write-multiple-images-into-tdms-file/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	I am working on a R&amp;D project which need to acquire and record images at 180FPS. I intend to convert image data to byte array then to string then save to TDMS file. I just figured out TDMS does not save string with NULL value. I don't think it's a good idea to save byte array since it will be difficult to index images with a large size array.
</p>

<p>
	Could you please give me some advice on what I should do?
</p>

<p>
	Sincerely,
</p>

<p>
	Thang Nguyen
</p>
]]></description><guid isPermaLink="false">53440</guid><pubDate>Wed, 23 Oct 2024 15:57:28 +0000</pubDate></item><item><title>SQLite Time Series Downsampling</title><link>https://lavag.org/topic/24016-sqlite-time-series-downsampling/</link><description><![CDATA[<p>
	Good morning,
</p>

<p>
	Firstly, thanks James for creating the excellent SQLite and JSONText libraries. 
</p>

<p>
	I've been working on a proof of concept for storing time series data into an SQLite database. As it stands I've decided upon a simple table, with two columns, Unix time (as my PK) and Data as a JSON string with an unknown number of channels e.g;
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="18329" data-ratio="16.59" width="1145" alt="image.png.6877642ba889c91fe240a2abd7dab726.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2024_06/image.png.6877642ba889c91fe240a2abd7dab726.png">
</p>

<p>
	The schema is;
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">CREATE TABLE [Data_1s](
  [Time] PRIMARY KEY, 
  [Data]);

CREATE INDEX [idx_time] ON [Data_1s]([Time]);
</span></pre>

<p>
	Currently my example dataset is 50 channels at 1Hz, for 1 day. I'm aiming to test this for a years worth of data. 
</p>

<p>
	 
</p>

<p>
	<strong>Point Values</strong>
</p>

<p>
	I'm getting very good performance when extracting an individual time row (e.g. via a slider between the start and end time of the data set);
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="18330" data-ratio="13.31" width="1200" alt="image.png.77907526260c94aba3ef024e951ee6de.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2024_06/image.png.77907526260c94aba3ef024e951ee6de.png">
</p>

<p>
	The current query I'm using is based on an older form of storing the time (as a decimal) so I searched for a 1s period; 
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">SELECT Time, Data 
FROM Data_1s 
WHERE Time
BETWEEN 1717606845 AND 1717606846</span></pre>

<p>
	I then collect the results, extract the individual channels from the JSON data and pop it into a map;
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="18331" data-ratio="28.25" width="1200" alt="image.png.e1139449056571262b56b104728f4947.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2024_06/image.png.e1139449056571262b56b104728f4947.png">
</p>

<p>
	This of course can be optimised, but given it is sub 5ms, it is plenty quick enough for interacting with the data via a HMI.
</p>

<p>
	 
</p>

<p>
	<strong>Graph</strong>
</p>

<p>
	Anyway, when it comes to extracting XY data to display on a graph, I use the following to for example only extract Channel 0;
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">SELECT Time, json_extract(data,'$."Channel 0"') AS Channel_0
FROM Data_1s 
WHERE Time BETWEEN 1717656137 AND 1718860565</span></pre>

<p>
	In the above example I read 1892 elements from the database, and it takes ~ 19ms. Fast enough for the user to drag a slider around and change the time window. 
</p>

<p>
	However, if I go for my full example data window, e.g;
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">SELECT Time, json_extract(data,'$."Channel 0"') AS Channel_0
FROM Data_1s 
WHERE Time BETWEEN 1717571628 AND 1718860565</span></pre>

<p>
	It takes 852ms to read 86400 elements. If I go for all 50 channels it increases to 8473ms. 
</p>

<p>
	Now with a graph with of a 2000 odd pixels, there isn't much point in loading all that data into LabVIEW, so I implemented an average down sampling query, based on an interval size;
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">WITH TimeGroups AS (
SELECT
(Time/60) *60 AS TimeGroup,
json_extract(data,'$."Channel 0"') AS Channel_0
FROM Data_1s
WHERE Time BETWEEN 1717571628 AND 1718860565
)
SELECT 
TimeGroup,
AVG(Channel_0) AS Avg_Channel_0
FROM TimeGroups
GROUP BY TimeGroup;</span></pre>

<p>
	This takes 1535ms to run, returns 1441 elements. This is worse than reading the 86400 elements and letting LabVIEW manage the down sampling. 
</p>

<p>
	#
</p>

<p>
	The questions I broadly have are;
</p>

<ul>
	<li>
		Am I totally off base with the schema and using JSON to store the (unknown) amount of channels?
	</li>
	<li>
		Should I be looking at a different way of down sampling?
	</li>
	<li>
		How are large datasets like stock prices stored and distributed to display on the internet? Some must have very long time series data spanning over decades! 
	</li>
	<li>
		How do you store and quickly extract datasets for display?
	</li>
</ul>

<p>
	Although I feel my questions are pretty broad rather than code specific, I can package it up and share after I strip a bunch of bloat out as it still very much a POC if that would help.
</p>

<p>
	Thanks
</p>

<p>
	Peter
</p>
]]></description><guid isPermaLink="false">24016</guid><pubDate>Thu, 06 Jun 2024 10:50:43 +0000</pubDate></item><item><title>TDMS help needed</title><link>https://lavag.org/topic/23874-tdms-help-needed/</link><description><![CDATA[<p>
	OK , i am looking into using TDMS , but , i am struggling to get it to work how i envisioned. I know i am missing something , i am very tired been up for 1.5 days (travelling) ...
</p>

<p>
	anyway , i like the idea of the meta data aspect vs a text file...
</p>

<p>
	what i am looking to do is write 350-400 data points per second , for this particular test it is basically 10 rows x 35 or so columns...
</p>

<p>
	i have mocked up some simulated data etc... when i try to write the 10 rows , it is very slow ... if i write all 216000 rows at once after the data , it is very fast , however , this test will run 12-18 hours , so i do not want to wait until the end to write the data ...
</p>

<p>
	if someone could point me in the right direction that would be great.
</p>

<p>
	Regards
</p>

<p>
	Dan
</p>
]]></description><guid isPermaLink="false">23874</guid><pubDate>Thu, 18 Apr 2024 21:48:45 +0000</pubDate></item><item><title>Exposing data for Prometheus</title><link>https://lavag.org/topic/23845-exposing-data-for-prometheus/</link><description><![CDATA[<p>
	Hi all,
</p>

<p>
	I'm planning to expose metrics for <a href="https://prometheus.io/" rel="external nofollow">Prometheus </a>to collect (scrap) them.
</p>

<p>
	I saw the PromVIEW VIP on <a href="https://github.com/Sylphe88/PromVIEW" rel="external nofollow">GitHub </a>and <a href="https://www.vipm.io/package/thelvlab_lib_promview/" rel="external nofollow">vipm.io</a> which works in the default Prometheus way : your app runs an HTTP server and Prometheus is configured to connect to it to collect your metrics.
</p>

<p>
	My issue is that I run my app on Linux (Ubuntu) and the NI Web Server is not supported on Linux.
</p>

<p>
	I've seen that Prometheus can also be configured to collect metrics from a file as long as we follow the <a href="https://prometheus.io/docs/instrumenting/exposition_formats/#exposition-formats" rel="external nofollow">correct format</a>, so I will most probably follow this path.
</p>

<p>
	 
</p>

<p>
	As anyone done this or anything similar?
</p>
]]></description><guid isPermaLink="false">23845</guid><pubDate>Wed, 27 Mar 2024 11:33:58 +0000</pubDate></item><item><title>SQLite Library Beta: Parameters in "Execute SQL"</title><link>https://lavag.org/topic/21530-sqlite-library-beta-parameters-in-execute-sql/</link><description><![CDATA[<p>
	For comment, here is a beta version of the next SQLite Library release (1.11).   It has a significant new feature of a "Parameter(s)" input to the "Execute SQL" functions.  This can be a single parameter or a cluster of multiple parameters.  Uses Variant functions and will be not as performance as a more explicit preparing and binding of a Statement object, but should be easier to code.
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="14762" data-ratio="120.19" width="624" alt="1421892400_ExecuteSQLwithParameters.png.a3c9b906ac66730d66681c5fa6fc8317.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2020_04/1421892400_ExecuteSQLwithParameters.png.a3c9b906ac66730d66681c5fa6fc8317.png">
</p>

<p>
	 
</p>

<p>
	<a class="ipsAttachLink" contenteditable="false" data-fileid="14763" href="https://lavag.org/applications/core/interface/file/attachment.php?id=14763" data-fileext="vip" rel="">drjdpowell_lib_sqlite_labview-1.11.0.86.vip</a>
</p>
]]></description><guid isPermaLink="false">21530</guid><pubDate>Fri, 24 Apr 2020 11:34:26 +0000</pubDate></item><item><title>INI file and Flush File.vi - Error 1</title><link>https://lavag.org/topic/23755-ini-file-and-flush-filevi-error-1/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	in a larger application, sometime a small ini files get corrupted (a lot of NULL char and nothing else inside), and it looks like it happens when the computer restart and the application was running. I found this NI page: <a href="https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000001DwgyCAC&amp;l=it-IT" rel="external nofollow">https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000001DwgyCAC&amp;l=it-IT</a> where the use of the "Flush file.vi" is suggested.
</p>

<p>
	But a vary minimal and simple test like this one:
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="18193" data-ratio="31.76" width="595" alt="ini_flush_file.png.29c25a1d9cd8191c99761807cff78487.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2024_02/ini_flush_file.png.29c25a1d9cd8191c99761807cff78487.png">
</p>

<p>
	returns Error 1, always. And I really really cannot see what I'm supposed to do differently. It's problably something VERY stupid. Anyone here can help me?
</p>

<p>
	 
</p>

<p>
	Thank you,
</p>

<p>
	Marco.
</p>
]]></description><guid isPermaLink="false">23755</guid><pubDate>Fri, 02 Feb 2024 18:32:02 +0000</pubDate></item><item><title>SQL Query returns no records with NI tools, works in Managment Studio</title><link>https://lavag.org/topic/17740-sql-query-returns-no-records-with-ni-tools-works-in-managment-studio/</link><description><![CDATA[<p>Hi,</p>
<p> </p>
<p>I am connecting to an SQL server running 10.5. Using LabVIEW Database Connectivity toolkit and/or TestStand's Database Viewer I can successfully open a connection and run a simple query which returns the proper records. A more advanced query and no records are returned and the properties show that the state is closed. Copy and pasting this query into Microsoft SQL Server Management Studio successfully fetches the correct records. Also running this same query in python using pyodbc returns the correct record.</p>
<p> </p>
<p>The VI is straight forward. I attached the snippet.</p>
<p> </p>
<p>My first thought is that the string contains some bytes in  codes that causes the query to be interpreted wrong by NI's tools. Does anybody have experience as to why a query works in other environments but not in NI's tools? Again, a simple query did work, but a more complex one did not.</p>
<p> </p>
<p>Thanks!</p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_11_2013/post-47092-0-71009800-1384888322.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_11_2013/post-47092-0-71009800-1384888322_thumb.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=8722" class="ipsImage ipsImage_thumbnailed" alt="post-47092-0-71009800-1384888322_thumb.p"></a></p>
]]></description><guid isPermaLink="false">17740</guid><pubDate>Tue, 19 Nov 2013 19:12:14 +0000</pubDate></item><item><title>Issues with PostgreSQL and packed libraries</title><link>https://lavag.org/topic/22648-issues-with-postgresql-and-packed-libraries/</link><description><![CDATA[<p>
	I've been using the JDP Science VIPM package but it has been causing no end of consternation when I try to pass a handle between 4 different packed libraries.  The initialize library should open the connection, Test start does a database query, test complete does a transaction and commit, and shutdown closes the connection.  I find that it takes too long to open and close a new connection in test start and test complete libraries.  I can cheat and package a global that holds the connection handle inside  the test start and a separate one inside test complete and load it on the first call to the packed library.  The issue with that is the connection count rises by two every time the product is changed, and doesn't clear until the executable is exited.  So far I found that if I go into the PostgreSQL package and change the vi to hand out the PGconn U32 directly and accept it rather than the connection, I can then get it to pass through the variant from packed library to packed library.  It looks like in the packing process each library creates it's own typedef for the connection and does not hand off well.  Generally there is an error in trying to unpack the variant.
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="17068" data-ratio="47.07" width="580" alt="image.png.1adc369cf437693ba0c90873d2183056.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2022_08/image.png.1adc369cf437693ba0c90873d2183056.png"><img class="ipsImage ipsImage_thumbnailed" data-fileid="17069" data-ratio="47.92" width="891" alt="image.png.0bd0a338b764604da41fe0ea9f20f9a2.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2022_08/image.png.0bd0a338b764604da41fe0ea9f20f9a2.png">
</p>

<p>
	I would really prefer to use the library as written rather than modifying it.  Does anyone have suggestions on ways to pass the handle through a variant from packed library to packed library? I included a screen shot of some of the attempts to get it to work as the connection handle or as a reference. Here is the difference between the variant when unpacked vs from a packed library.
</p>

<p>
	'PQ Conn' -&gt; PQ Connection.lvclass<br>
	'PQ Ref' -&gt; F0C000A7<br>
	'Numeric' -&gt; 466326216
</p>

<p>
	'PQ Conn' -&gt; Product Initialize.lvlibp:PQ Connection.lvclass<br>
	'PQ Ref' -&gt; 5C7000FC<br>
	'Numeric' -&gt; 466328936<br>
	 
</p>

<p>
	As best I can tell wrapper from the packed library makes them incompatible and I have not found any way to get them to translate.
</p>

<p>
	To be fair I also went through the effort of converting everything to ODBC and using those tools with similar problems on passing the handles.
</p>
]]></description><guid isPermaLink="false">22648</guid><pubDate>Wed, 03 Aug 2022 22:03:36 +0000</pubDate></item><item><title>SQLite create table and insert</title><link>https://lavag.org/topic/22642-sqlite-create-table-and-insert/</link><description><![CDATA[<p>
	I don't know about you guys but I hate writing strings. There's just too many ways to mess it up and, in this case, it might just be to tedious. So, I wanted to create a way to make SQLite create and insert statements based on a cluster.
</p>

<p>
	The type infrencing code was based on JDP Science's SQLite Library. Thanks!
</p>

<p><a href="https://lavag.org/uploads/monthly_2022_07/775055973_sqlitecreateandinsert.png.0d5f422678a12bbd8a471938a74b8b1b.png" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="17059" src="https://lavag.org/applications/core/interface/js/spacer.png" data-ratio="23.39" width="1941" class="ipsImage ipsImage_thumbnailed" alt="sqlite create and insert.png" data-src="https://lavag.org/uploads/monthly_2022_07/775055973_sqlitecreateandinsert.png.0d5f422678a12bbd8a471938a74b8b1b.png"></a></p><p>
<a class="ipsAttachLink" href="https://lavag.org/applications/core/interface/file/attachment.php?id=17060&amp;key=1bf0870281a45d7c9a09a9bffbf88cd1" data-fileext="vi" data-fileid="17060" data-filekey="1bf0870281a45d7c9a09a9bffbf88cd1">create and insert from cluster.vi</a></p>]]></description><guid isPermaLink="false">22642</guid><pubDate>Thu, 28 Jul 2022 21:39:53 +0000</pubDate></item><item><title>labview throws error while trying to open a DB connection</title><link>https://lavag.org/topic/22345-labview-throws-error-while-trying-to-open-a-db-connection/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	Iam a beginner to labview,Currently i am facing a problem with the ActiveX data objects library ,where when i try to open a connection. the thing i do here is creating a automation refnum ,passing it through a open automation vi and using a invoke method to open a connection ,while doing this when the automation ref num is being passed through the open Automation vi it throws the below quoted error
</p>

<p>
	ERROR text:
</p>

<p>
	<em>"Error 3005 occurred at Automation Open: Object specified is not creatable in Open SQLServer Connection.vi</em>
</p>

<p>
	<em>This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input. </em>
</p>

<p>
	<em>Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (3005) or for its hexadecimal representation (0x00000BBD)."</em>
</p>

<p>
	not sure why lab view is throwing the error .Interesting thing here is ,i use the same method to open connection in a different project. There the operation runs successfully without any error.
</p>

<p>
	DB used here is MSSQL
</p>

<p>
	lab view version is 2018
</p>

<p>
	It would be of much help if someone could provide me with the solution .uploading a screen snip of my VI.
</p>

<p><a href="https://lavag.org/uploads/monthly_2021_12/image_2021-12-01_152713.png.3ccddfe9b05cebf36d2626ee0bb6ad8b.png" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="16321" src="https://lavag.org/applications/core/interface/js/spacer.png" data-ratio="86.38" width="712" class="ipsImage ipsImage_thumbnailed" alt="image_2021-12-01_152713.png" data-src="https://lavag.org/uploads/monthly_2021_12/image_2021-12-01_152713.png.3ccddfe9b05cebf36d2626ee0bb6ad8b.png"></a></p>]]></description><guid isPermaLink="false">22345</guid><pubDate>Wed, 01 Dec 2021 09:58:43 +0000</pubDate></item><item><title>Create a new spreadsheet file with header each time a button is pressed</title><link>https://lavag.org/topic/22264-create-a-new-spreadsheet-file-with-header-each-time-a-button-is-pressed/</link><description><![CDATA[<p>
	Hi, i'm fairly new to Labview and i'm currently stucked in a problem that i think is very simple but to which i can't find a simple solution.
</p>

<p>
	I'm using a data acquisition device to get measured temperature, force, pressure and i would like to save those data (with header) on a spreadsheet file when i press a button (the "write to file" button in the Vi attached) and stop recording data when unpressed. I can now do this but if i stop and restart the recording the new data are just appended to the previous file without header, so i cannot distinguish when a new recording started.
</p>

<p>
	Actually what i wanted to achive with this Vi was to automatically create a file with a specified name (with header wich is only present one time in it) that is changing to each press of the button and without asking for a new path for every new file.
</p>

<p>
	Is there a way to simply do this?
</p>

<p>
	thank you.
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	<a class="ipsAttachLink" data-fileext="vi" data-fileid="16282" href="https://lavag.org/applications/core/interface/file/attachment.php?id=16282&amp;key=fe30ae0d3a4352fefb09384a96939acf" rel="">MVB.vi</a> <a class="ipsAttachLink" data-fileext="txt" data-fileid="16283" href="https://lavag.org/applications/core/interface/file/attachment.php?id=16283&amp;key=a387d911ddc0a3af4188fc05bfc0d191" rel="">così.txt</a>
</p>
]]></description><guid isPermaLink="false">22264</guid><pubDate>Tue, 09 Nov 2021 14:39:05 +0000</pubDate></item><item><title>Call ing an MS Access Macro w/ Labview</title><link>https://lavag.org/topic/1022-call-ing-an-ms-access-macro-w-labview/</link><description><![CDATA[<p>Does anyone know how to call an MS Access macro from Labview? How could i go about doing this?</p>]]></description><guid isPermaLink="false">1022</guid><pubDate>Thu, 19 Dec 2002 18:58:24 +0000</pubDate></item><item><title>Can someone please explain this weird SQLite behavior to me? How do I fix this?</title><link>https://lavag.org/topic/22178-can-someone-please-explain-this-weird-sqlite-behavior-to-me-how-do-i-fix-this/</link><description><![CDATA[<p>
	Why does this work in the SQLite DB browser, but not in LabVIEW?
</p>

<p>
	And why I am getting this error, that basically should never happen? This: <a href="https://sqlite.org/rescode.html#mismatch" rel="external nofollow">https://sqlite.org/rescode.html#mismatch</a> says it should only ever happen when trying to set a rowid to something other than an integer. I'm not doing that.
</p>

<p>
	</p><video class="ipsEmbeddedVideo" controls="" data-video-embed="">
		<source type="video/mp4" src="https://lavag.org/applications/core/interface/js/spacer.png" data-video-src="https://lavag.org/uploads/monthly_2021_08/1554113404_WTFSQL.mp4.a74fdd7ad23b1a6654b087dbce607c18.mp4"><a class="ipsAttachLink" href="https://lavag.org/applications/core/interface/file/attachment.php?id=16042" data-fileid="16042" data-fileext="mp4" rel="">WTF SQL.mp4</a>
	</source></video>

]]></description><guid isPermaLink="false">22178</guid><pubDate>Tue, 17 Aug 2021 17:28:51 +0000</pubDate></item><item><title>JSONtext and Config Files (with comments and multiple writers)</title><link>https://lavag.org/topic/22030-jsontext-and-config-files-with-comments-and-multiple-writers/</link><description><![CDATA[<p>
	Working on the next JSONtext functionality, which is features to improve support of JSON Config Files. 
</p>

<p>
	See <a href="https://forums.ni.com/t5/JDP-Science-Tools/BETA-version-of-JSONtext-1-6/td-p/4146235" rel="external nofollow">https://forums.ni.com/t5/JDP-Science-Tools/BETA-version-of-JSONtext-1-6/td-p/4146235</a>
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="15796" data-ratio="58.15" width="896" alt="771905547_2021-04-2811_42_08-JSONtextConfigExampleApplication1.viBlockDiagram.png.4c88a74ff6b6f1ad550d627951f0cee6.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2021_04/771905547_2021-04-2811_42_08-JSONtextConfigExampleApplication1.viBlockDiagram.png.4c88a74ff6b6f1ad550d627951f0cee6.png">
</p>
]]></description><guid isPermaLink="false">22030</guid><pubDate>Wed, 28 Apr 2021 10:45:54 +0000</pubDate></item><item><title>Live HDF5 1.2</title><link>https://lavag.org/topic/21875-live-hdf5-12/</link><description><![CDATA[<p>
	It's been a long time coming, but I've updated my HDF5 toolkit. I'm preparing to put the update out on the NI Tools Network soon, but I'd like to go a little slow on the release, so I thought I'd announce it here first.
</p>

<p>
	For those unfamiliar, HDF5 is a binary data format widely used in the sciences. It's similar to TDMS in some ways, but more flexible and less proprietary. Keeping up with the ever changing ABI of the underlying HDF5 library has been a losing battle, so I quit a long time ago and accepted that Live HDF5 would most likely only work with the version of HDF5 it release with. (Fortunately, while the ABI changes a lot, the file format itself has always been backwards and mostly-forwards compatible.) Some features in version 1.12 of HDF5 were very attractive to me and prompted the update. The update also provided a chance to weed out some long-standing bugs.
</p>

<p>
	The toolkit may also be of interest to those who like playing around with Xnodes.
</p>

<p>
	<a href="http://www.upvi.net/main/index.php/products/lvhdf5" rel="external nofollow">https://www.upvi.net/main/index.php/products/lvhdf5</a>
</p>

<p style="text-align:center;">
	<img alt="livehdf5logo3.png.1f64048b20b86563a61df4d18b368089.png" class="ipsImage ipsImage_thumbnailed" data-fileid="15512" data-ratio="55.50" width="400" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2021_01/livehdf5logo3.png.1f64048b20b86563a61df4d18b368089.png">
</p>
]]></description><guid isPermaLink="false">21875</guid><pubDate>Sun, 03 Jan 2021 14:20:31 +0000</pubDate></item><item><title>SQLite: lock on file not currently in use</title><link>https://lavag.org/topic/21979-sqlite-lock-on-file-not-currently-in-use/</link><description><![CDATA[<p>
	<span lang="en" xml:lang="en"><span><span>Good evening everyone.</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>I have a problem with SQLite file locks ...</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>I created a datalogger in Labview that saves the data acquired from a customer's custom equipment in an SQLite database.</span></span><span><span> </span></span><span><span>I used Powell's library (an egregious library!)</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>Although the capture is continuous, the data is not stored in a single SQLite file</span></span><span><span> </span></span><span><span>but on different files lasting about 1 hour each.</span></span><span><span> </span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>At each time change the software closes the database currently in use (with SQLite Close)</span></span><span><span> </span></span><span><span>and create a new one.</span></span> <span><span>The database reference remains open all the time until it is closed at the next hour change.</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>These SQLite files are downloaded from another application running on a second PC using FTP.</span></span> <span><span>(the machine running the data logger has a FileZilla server)</span></span><span><span> </span></span><span><span>What happens is that it is not possible to download any SQLite file created by the data logger until the application is stopped!</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>By stopping the application and restarting it, you can download all the files created before the restart but not those created afterwards!</span></span><span><span> </span></span><span><span>It is as if a lock is maintained on all files created until the program is closed!</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>I would expect the lock to be present on the file currently in use, but not on those already closed.</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>Has anyone experienced this behavior before?</span></span></span>
</p>

<p>
	<span lang="en" xml:lang="en"><span><span>Thanks for any help you can give me.</span></span></span>
</p>

<p>
	Osvaldo
</p>
]]></description><guid isPermaLink="false">21979</guid><pubDate>Thu, 18 Mar 2021 22:25:40 +0000</pubDate></item><item><title>Randomly get open file dialog even though the file exists</title><link>https://lavag.org/topic/21926-randomly-get-open-file-dialog-even-though-the-file-exists/</link><description><![CDATA[<p>
	I've been using this vi to write error information to a log for months at this file path C:\LabVIEW Working Folder\Tester Software\Config and Log Files\Error Log.txt and as an executable at this file path
</p>

<p>
	C:\LabVIEW Working Folder\Tester Software\data\Error Log.txt 
</p>

<p>
	Now for some unknown reason randomly but usually on the close i get a file dialog box asking which file to write... 
</p>

<p>
	Any idea what I'm missing... what stupid mistake did I make? It just doesn't make sense...
</p>

<p>
	 
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="15636" data-ratio="63.88" width="1200" alt="image.png.3d76edfbd32f131aebc88faf8ef31a86.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2021_02/image.png.3d76edfbd32f131aebc88faf8ef31a86.png">
</p>
]]></description><guid isPermaLink="false">21926</guid><pubDate>Thu, 11 Feb 2021 16:18:34 +0000</pubDate></item><item><title>Old SQL addon for LabVIEW 8.2</title><link>https://lavag.org/topic/21955-old-sql-addon-for-labview-82/</link><description><![CDATA[<p>
	Hi.
</p>

<p>
	I have received some code from a customer which is created with LabVIEW 8.2.1. It uses an old add-on tool for accessing an SQL database, but I cannot find that tool anywhere. I can see that the VI's I have are trying to load sub VI's from <strong>"&lt;vi.lib&gt;:\addons\SQL\Access"</strong> and then a number of different llb files.
</p>

<p>
	Can anyone her point me in the direction of which tool kit this comes from? Is it a very old version of the Database Connectivity tool kit or is it something else?
</p>

<p>
	Thanks.
</p>
]]></description><guid isPermaLink="false">21955</guid><pubDate>Wed, 03 Mar 2021 10:18:37 +0000</pubDate></item><item><title>Looking for option to speed up my usage of SQLite</title><link>https://lavag.org/topic/21933-looking-for-option-to-speed-up-my-usage-of-sqlite/</link><description><![CDATA[<p>
	Currently, my vision software will do a compression (subtract to background image then count zero) and write to a table in SQLite file. Since we want to speed up the process, I write entire image in a temporary table. Then at the end, I read the table, do compression and write to the actual table, then drop the temporary table. This takes a lot of time too even I use the Journal mode = memory. I think the issue is I put the process code in 4 separated modules:
</p>

<ol>
	<li>
		Select the temp table -&gt; output array
	</li>
	<li>
		Compress  the output array of step 1
	</li>
	<li>
		Insert the compress data from step 2 to actual table
	</li>
	<li>
		Drop the temp table
	</li>
</ol>

<p>
	I am looking for an option to mix these steps together to speed up the speed for example select and delete the row in temp table at the same time then at the end I can drop the table faster. Currently, it takes significant time to drop the table. Our raw data can be up to 3GB. But I don't know how to combine the query. I also read that SQlite does not support this. So I also looking for an advice on how to make this process more efficient. I thought about using the queue too but I need input before I change it.
</p>

<p>
	Thank you in advance.
</p>
]]></description><guid isPermaLink="false">21933</guid><pubDate>Wed, 17 Feb 2021 20:20:30 +0000</pubDate></item><item><title>Hide Server credentials</title><link>https://lavag.org/topic/21889-hide-server-credentials/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	I would like to create an applications for students in a laboratory that will write data acquired from sensors directly to a MySQL server.
</p>

<p>
	I am using Data Link tool to create a data link to the database. I need to hide Server credentials from a user (such as a student) that will have access to code. Any suggestions ?
</p>

<p>
	thank you
</p>
]]></description><guid isPermaLink="false">21889</guid><pubDate>Fri, 15 Jan 2021 17:56:32 +0000</pubDate></item><item><title>ANV Database Toolkit</title><link>https://lavag.org/topic/21881-anv-database-toolkit/</link><description><![CDATA[<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	Dear Community,
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	let me present our new<span> </span><a href="https://www.anv-tech.com/en/dt/" rel="external nofollow">ANV Database Toolkit</a>, which has been recently released at<span> </span><a href="https://www.vipm.io/package/anv_lib_anv_database_toolkit/" rel="external nofollow">vipm.io</a>.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	Short introduction to the toolkit is posted<span> </span><a href="https://www.linkedin.com/posts/ivan-yakushchenko_labview-ni-database-ugcPost-6745430435066634240-bHYa/" rel="external nofollow">by this link</a>, and it also describes steps which should be done in order to use this toolkit.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	<a href="https://www.vipm.io/package/anv_lib_anv_database_toolkit/" rel="external nofollow">ANV Database Toolkit</a><span> </span>helps developers design LabVIEW API for querying various databases (MS SQL, MySQL, SQLite, Access). It allows to create VIs which can be used as API with the help of graphical user interface. When using these VIs, toolkit handles connection with the database, thus relieving developers of this burden in their applications.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	It has the following features:
</p>

<ul style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px 0px 0px 2.5em;text-align:left;">
	<li style="text-align:left;">
		Simplifies handling of databases in LabVIEW projects
	</li>
	<li style="text-align:left;">
		Allows to graphically create API VIs for Databases
	</li>
	<li style="text-align:left;">
		Supports Read, Write, Update and Delete queries
	</li>
	<li style="text-align:left;">
		Supports various database types (MS SQL, MySQL, SQLite, Access)
	</li>
</ul>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	Overall idea is that developer could create set of high-level API VIs for queries using graphical user interface, without actual writing of SQL queries. Those API VIs are used in the application, and handle database communication in the background. Moreover, SQL query could be applied to any of the supported database types, it is a matter of database type selection. Change of target database does not require changes in API VI which executes the query.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	After installation of the toolkit, sample project is available, which shows possibilities of the toolkit in terms of execution different types of queries.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	Note, that in order to install the toolkit, VI Package Manager must be launched with Administrator privileges.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	This toolkit is paid, and price is disclosed based on price quotation. But anyway, there are 30 days of trial period during which you could tryout the toolkit, and decide whether it is helpful (and hope that it will be) for your needs.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	In case of any feedback, ideas or issues please do not hesitate to contact me directly here, or<span> </span><a href="https://www.vipm.io/post/suggestion/?package_name=anv_lib_anv_database_toolkit&amp;return_url=/package/anv_lib_anv_database_toolkit/" rel="external nofollow">at vipm.io</a>, or at e-mail<span> </span><a href="mailto:info@anv-tech.com" rel="">info@anv-tech.com</a>.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	 
</p>

<p style="background-color:#ffffff;color:#333333;font-size:16px;padding:0px;text-align:left;">
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="15526" data-ratio="52.34" width="342" alt="106219207_IconsScreenshot.png.e075c8b60a6004ef506570fb3888975a.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2021_01/106219207_IconsScreenshot.png.e075c8b60a6004ef506570fb3888975a.png"> <img class="ipsImage ipsImage_thumbnailed" data-fileid="15527" data-ratio="33.83" width="541" alt="1276339631_SelectAPIUsage.png.7662e8deaa9bbba88de28fb09d0895a6.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2021_01/1276339631_SelectAPIUsage.png.7662e8deaa9bbba88de28fb09d0895a6.png"> <img class="ipsImage ipsImage_thumbnailed" data-fileid="15528" data-ratio="65.95" width="1072" alt="1408769553_04UpdatedQuery.png.77bdbe318b1cdc54ee3924add34c4476.png" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2021_01/1408769553_04UpdatedQuery.png.77bdbe318b1cdc54ee3924add34c4476.png">
</p>
]]></description><guid isPermaLink="false">21881</guid><pubDate>Sat, 09 Jan 2021 21:27:11 +0000</pubDate></item><item><title>A Mat-file IO Library</title><link>https://lavag.org/topic/10976-a-mat-file-io-library/</link><description><![CDATA[<p>Hello,</p>
<p>I made a library for reading/writing MATLAB Mat-files in LabVIEW, and posted it on Sourceforge.  It's written in pure G, with no external DLLs.  Anyone is welcome to use the code if they want.  It can be downloaded at <a href="http://matio-labview.sourceforge.net/." rel="external nofollow">http://matio-labview.sourceforge.net/.</a>  If you do try it out, I would appreciate any feedback you could provide.</p>
<p>Here is some sample code.  I'm writing a cluster of various items to the file test.mat.  This will create a structure in MATLAB with field names derived from the labels of the items in the cluster.</p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_09_2009/post-4414-125259520164.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_09_2009/post-4414-125259520164_thumb.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=790" class="ipsImage ipsImage_thumbnailed" alt="post-4414-125259520164_thumb.png"></a></p>
<p>After running "load test.mat" in MATLAB, here is the result (shown in the variable editor):</p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_09_2009/post-4414-125259519743.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_09_2009/post-4414-125259519743_thumb.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=789" class="ipsImage ipsImage_thumbnailed" alt="post-4414-125259519743_thumb.png"></a></p>
<p>Thanks,</p>
<p>Jim</p>
]]></description><guid isPermaLink="false">10976</guid><pubDate>Thu, 10 Sep 2009 15:10:56 +0000</pubDate></item><item><title>SQLIte writers queue</title><link>https://lavag.org/topic/21704-sqlite-writers-queue/</link><description><![CDATA[<p>
	I would like multiple process to write to SQLite database at the same time through web service. How do I insure all the write queries queue up and all of them get executed? 
</p>

<p>
	In the web service VI, I am now opening the database and set a long enough busy timeout and then pass the query from web service calls to SQLite EXEC SQL. But my test showed some queries are not executed. 
</p>

<p>
	So SQLite is not automatically queuing the writing queries? What is the proper way to ensure all queries queue up and get executed?
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">21704</guid><pubDate>Mon, 03 Aug 2020 23:35:38 +0000</pubDate></item><item><title>Report Generation - Insert Image at Text (find text then replace with image)</title><link>https://lavag.org/topic/21637-report-generation-insert-image-at-text-find-text-then-replace-with-image/</link><description><![CDATA[<p>
	Hi all,<br>
	<br>
	I'm trying to insert images at specific texts in a Word document with the Report Generation Toolkit. Kind of like search and replace, but with an image as replacement.<br>
	All I found that inserting a picture can be either done at bookmarks or into table cells.<br>
	I want to avoid Bookmarks because it's easier to add some hashtags than editing bookmarks if there are dozens of images to be inserted.<br>
	I didn't find any way to either set the cursor or add bookmarks programmatically. Actually, I don't find any usage of the cursor in the built-in RGT functions…
</p>

<p>
	I thought it's a basic thing I want to solve but didn't find appropriate answers.
</p>

<p>
	Thanks for any hints in advance!
</p>
]]></description><guid isPermaLink="false">21637</guid><pubDate>Tue, 30 Jun 2020 13:18:22 +0000</pubDate></item><item><title>Error -2507 occurred at TDMS Write</title><link>https://lavag.org/topic/21645-error-2507-occurred-at-tdms-write/</link><description><![CDATA[<p>
	Hello Network,
</p>

<p>
	I am writing array of timestamp in TDMS file. "TDMS Write.vi" generates an error after calling this VI as follows.
</p>

<p>
	<img alt="image.png.26ffe1208f62a454935b4dfc9a06b3c2.png" class="ipsImage ipsImage_thumbnailed" data-fileid="15071" data-ratio="40.85" width="568" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2020_07/image.png.26ffe1208f62a454935b4dfc9a06b3c2.png"> <img alt="image.png.cfcb817608416f7af883a01097009658.png" class="ipsImage ipsImage_thumbnailed" data-fileid="15072" data-ratio="83.54" width="237" src="https://lavag.org/applications/core/interface/js/spacer.png" data-src="https://lavag.org/uploads/monthly_2020_07/image.png.cfcb817608416f7af883a01097009658.png">
</p>

<p>
	 
</p>

<p>
	Group Name = "DUT T1"
</p>

<p>
	Channel Names = "DUT T1_Time"
</p>

<p>
	Please let me know if anyone has any suggestions.
</p>

<p>
	BR
</p>

<p>
	Aniket
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">21645</guid><pubDate>Thu, 02 Jul 2020 13:43:03 +0000</pubDate></item><item><title>Can I write to two tables in two parallel processes in SQLite?</title><link>https://lavag.org/topic/21533-can-i-write-to-two-tables-in-two-parallel-processes-in-sqlite/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	I would like to know if I can write stream data into two different tables with SQLite at the same time or not? Currently my system has one camera. I store the capture images and particle measurement in one table. I have just add one more camera to the system and would like to do the same thing and write to a second table in a parallel process.  I wonder if this is possible or not.
</p>

<p>
	I use SQLite library.
</p>

<p>
	Thanks in advance.
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">21533</guid><pubDate>Fri, 24 Apr 2020 18:53:34 +0000</pubDate></item><item><title>SQLite Error 402860</title><link>https://lavag.org/topic/21531-sqlite-error-402860/</link><description><![CDATA[<p>
	Good Afternoon,
</p>

<p>
	I have been having an issue trying to resolve an error all afternoon, and hope that you might be able to help.
</p>

<p>
	I am trying to execute the follow SQL "
</p>

<p>
	SELECT m.name as tableName,<br>
	       p.name as columnName<br>
	FROM sqlite_master m<br>
	left outer join pragma_table_info((m.name)) p<br>
	     on m.name &lt;&gt; p.name<br>
	     where columnName = 'UploadedFlag'<br>
	order by tableName, columnName
</p>

<p>
	" That returns a list of the tables that Contain the 'UploadedFlag' Column.   I have testing the SQL on both HeidiSQL and SQLite Expert Personal applications and run and return what I expect, however when I run it through LabVIEW I get a 402860 Error with the description " SQLITE_ERROR(1): near "(": syntax error " 
</p>

<p>
	If anyone could point me in the direction of the syntax error then I would be very greatful.
</p>

<p>
	Regards
</p>

<p>
	Mark
</p>
]]></description><guid isPermaLink="false">21531</guid><pubDate>Fri, 24 Apr 2020 17:13:30 +0000</pubDate></item><item><title>Insert multiple rows into database</title><link>https://lavag.org/topic/21036-insert-multiple-rows-into-database/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	I am using  NI_Database_API.lvlib on Labview 2017. I am tringot insrt multiple rows into table but I have the error : 'Semicolon seperatot is missing at the end of the query.'
</p>

<p>
	Plaese find below my command to insert two rows onto one table T_Column ( C_Name as String, C_Status as String).
</p>

<p>
	INSERT INTO T_Column (C_Name , C_Status)<br>
	VALUES('21' , 'Not realised'),<br>
	('22' , 'Not realised');
</p>

<p>
	How do I must modify the query? Is it possible to insert multiple rows using Microsoft.oledb.4.0?
</p>

<p>
	Thanks for your help.
</p>
]]></description><guid isPermaLink="false">21036</guid><pubDate>Tue, 25 Jun 2019 14:44:06 +0000</pubDate></item><item><title>Does anyone use netCDF file format?</title><link>https://lavag.org/topic/19930-does-anyone-use-netcdf-file-format/</link><description><![CDATA[<p>
	I'm developing, for a client, a wrapper for <a href="https://en.wikipedia.org/wiki/NetCDF" rel="external nofollow">netCDF4</a>, a format that used for large atmospheric-science data sets that is implemented on top of HDF5.  Seems quite nice so far, and I was wondering if anyone had any experience with it?  Or HDF5 in general (which I have never used)?  It's kind of TDMS-like, but with n-dimension arrays.
</p>]]></description><guid isPermaLink="false">19930</guid><pubDate>Fri, 16 Dec 2016 11:24:02 +0000</pubDate></item><item><title>A group is randomly missing from a TDMS file</title><link>https://lavag.org/topic/21192-a-group-is-randomly-missing-from-a-tdms-file/</link><description><![CDATA[<p>
	I am seeing a problem that randomly one of four groups does not get written to the TDMS file.  I have buffering on.  Has anyone seen this intermittent problem and know how to fix it?
</p>
]]></description><guid isPermaLink="false">21192</guid><pubDate>Thu, 19 Sep 2019 04:57:46 +0000</pubDate></item><item><title>MS Word Find Text Position</title><link>https://lavag.org/topic/21077-ms-word-find-text-position/</link><description><![CDATA[<p>
	Hi again!
</p>

<p>
	I'm having a hard time to get the position of a found text in a Word file. I'm able to use the Report Generation toolkit to search+replace text, but I want to highlight the replaced text one way or another. Using the "track changes" option of MS Word would be the best, but changing the font of the replacement and leaving the original text too would also suffice.
</p>

<p>
	The reason I'm struggling with it is that there are several text to search for and replace and the texts are sometimes contain other search text (so for example I want to replace<em> X01 </em>with <em>Y</em> but <em>X01.01 </em>with <em>Z</em>). This can be solved by sorting the search texts reversed alphabetically.
</p>

<p>
	Since I can only search and replace, I have to turn off Track Changes (because the original text will be found again), and replace the found text with a trackable unique dummy text first, than I have to search and replace those with the original+final texts. This means Track Changes will not be effective (or the user would see the horrid dummy texts too). So I would at least apply a different font to the replacements, but I don't know how to set the "Format" parameter of the Document&gt;Range&gt;Find&gt;Execute method.
</p>

<p>
	<br>
	A preferred method would be to get found ranges first, exclude found ranges from the next searches, then delete the ranges+insert the search string in place of them. This way the changes of the document would have a very nice highlight.
</p>

<p>
	 
</p>

<p>
	Thanks for any hints or better approaches in advance!
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">21077</guid><pubDate>Thu, 18 Jul 2019 14:54:37 +0000</pubDate></item><item><title>Simple .accdb Database Access</title><link>https://lavag.org/topic/21071-simple-accdb-database-access/</link><description><![CDATA[<p>
	Hi again!
</p>

<p>
	This time I have the following problem:
</p>

<p>
	I want to do simple queries on a small .accdb as a part of a simple tool application. Labview's connectivity toolkit method works fine as far as every user is on the same Office bitness (32 vs 64 bit). But in our case, some machines have 64 bit Office and some 32 bit. This results in driver compatibility issues and our IT policies are so strict that in the near future our local admin rights might vanish too, making driver install requests for a simple tool is too tedious. This 32-64 bit transitional state can last for several months and I would prefer to have a general solution than to make 32bit and 64bit builds (as far as I know this would also solve the issue, but I'm on 32 <abbr title="LabVIEW">LV</abbr> at the moment).
</p>

<p>
	Since loading the whole database is an option (the whole file is just 2 MB at the moment and it won't grow in the near future when hopefully all collagaues will be on the ame ground), I'm hoping there's a more "platform independent" (office and Windows 7/10 are given) solution to read the contents of .accdb files.
</p>

<p>
	My googling yielded solutions for SQL database access.
</p>

<p>
	Thank you for any hints in advance!
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">21071</guid><pubDate>Tue, 16 Jul 2019 13:53:06 +0000</pubDate></item><item><title>Reading Custom TDMS properties</title><link>https://lavag.org/topic/21065-reading-custom-tdms-properties/</link><description><![CDATA[<p>
	Hi all!
</p>

<p>
	I'm new to the forum and I have a strange issue with reading TDMS custom properties with Labview.
</p>

<p>
	<br>
	Creating user properties is working fine using <em>TDMS Set Properties.vi</em>, but I can't read them with<em> TDMS Get Properties.vi</em>. I can read the "standard" properties, and also I do see the properties in DiAdem (dataportal and using script) and also in Excel when I use TDM(s) importer. The property names are not listed when calling <em>TDMS Set Properties.vi </em>without the <em>property name </em>and <em>data type </em>terminals connected<em>.  </em> 
</p>

<p>
	There is no simultaneous file reading or writing.
</p>

<p>
	I solved the problem with loading DiAdem and running a script, but that's very slow and also not all target machines have DiAdem installed (and no licence either, obviously).
</p>

<p>
	I also tried with property names such as User Properties\Device_ID, User_Properties/Device_ID in whatever combinations (I look for the property "Device_ID") without success.
</p>

<p>
	Thank you for any hints in advance!
</p>
]]></description><guid isPermaLink="false">21065</guid><pubDate>Fri, 12 Jul 2019 13:43:52 +0000</pubDate></item><item><title>LabVIEW and Excel - ActiveX or ADO</title><link>https://lavag.org/topic/13324-labview-and-excel-activex-or-ado/</link><description><![CDATA[<p>Hi all,</p>
<p>I've put together a subVI that writes a row of data to an Excel worksheet using ActiveX. It works fine but it's a bit slow. It takes a few seconds for the VI to complete, although the row only has a few tens of columns. This is not a show-stopper but it doesn't give the user a slick experience in the top level VI that the subVI's used in. I was wondering, if I attempted the same using ADO would I see a significant improvement in speed? If you're thinking why don't I just try it, it's because I'm rather new to ADO (and ActiveX for that matter) and it would take me a while to get an Excel ADO solution going for myself, although I successfully use ADO to communicate with Access. I don't mind doing my own donkey work but it'd be nice to get some speed comparison information between the two approaches from those more in the know than myself before I attempt to flog a potentially dead horse. As ever, many thanks.</p>
<p>Regards.</p>
]]></description><guid isPermaLink="false">13324</guid><pubDate>Wed, 03 Nov 2010 21:21:12 +0000</pubDate></item><item><title>FILE FORMAT RIGH</title><link>https://lavag.org/topic/6790-file-format-righ/</link><description><![CDATA[<p><span style="font-family:Calibri;"><span style="font-size:12px;">File format copyright. The IBA ANALYZER.</span></span></p>
<p><span style="font-family:Calibri;"><span style="font-size:12px;">Heavy samples and variables data compression and storage. </span></span></p>
<p><span style="font-family:Calibri;"><span style="font-size:12px;">Who has the rights about a file format?  3 years ago I was enquired to open IBA file format.</span></span></p>
<p><span style="font-family:Calibri;"><span style="font-size:12px;">I have nothing against germane arrogance but I believe that file format has no Copyright. </span></span></p>
<p><span style="font-family:Calibri;"><span style="font-size:12px;">I Know that IBA (</span></span><a href="http://www.iba-germany.com/" rel="external nofollow"><span style="font-family:Calibri;"><span style="font-size:12px;">www.iba-germany.com</span></span></a><span style="font-family:Calibri;"><span style="font-size:12px;">) has a good product, better than signal express.  I have the entire library to write and read IBA files using LABVIEW.  The main problem is that IBA claims that they have the copyrights.  I´m after LABVIEW engineers to share my knowledge and   create a group to make an open source tool like IBA.  I can increase IBA compression performance but it will be no longer compatible with IBA Analyzer.  I´m also after copyrights support people to avoid problems with IBA Company. </span></span></p>
<p><span style="font-family:Calibri;"><span style="font-size:12px;">My idea is to create a protocol to exchange industrial process, biological waveforms etc. across network based on a distributed database. I intend to start it based on IBA-PDA and IBA-ANALYSER.</span></span></p>
<p><span style="font-family:Calibri;"><span style="font-size:12px;">The biggest problem with IBA is the need of access big files instead of a protocol to access only the required data at the desired sample.  Tools like PIMS does not work fine with fast sample data and I have seen several engineers like OSISOFT ones trying to do it with no success. </span></span></p>
<p><span style="font-family:Calibri;"><span style="font-size:12px;">Please contact-me if you know what I´m talking about and let´s start to create a big tool. </span></span></p>
]]></description><guid isPermaLink="false">6790</guid><pubDate>Wed, 02 Jan 2008 16:59:24 +0000</pubDate></item><item><title>creating .json file</title><link>https://lavag.org/topic/20717-creating-json-file/</link><description><![CDATA[<p>
	hello there ,
</p>

<p>
	I have a normal text file .
</p>

<p>
	Is there anyway to create .json file using that txt file from labview?
</p>
]]></description><guid isPermaLink="false">20717</guid><pubDate>Tue, 04 Dec 2018 09:50:36 +0000</pubDate></item><item><title>Database Variant To Data function</title><link>https://lavag.org/topic/18520-database-variant-to-data-function/</link><description><![CDATA[<p>Does anyone know how to get and be able to use the "Database Variant To Data" XNode without installing the Database Connectivity toolkit?  I'm not using databases in my project, but that function is a really handy, compact way of converting an array of variants into a cluster.  Or is there another way that's equally neat and simple?</p>
<p> </p>
<p>Thanks.   -Joe</p>
<p> </p>
]]></description><guid isPermaLink="false">18520</guid><pubDate>Thu, 18 Sep 2014 13:53:48 +0000</pubDate></item><item><title>[URGENT] Database in NXG 2.0 and 2.1??!</title><link>https://lavag.org/topic/20494-urgent-database-in-nxg-20-and-21/</link><description><![CDATA[<p style="margin:0px;font-size:16px;line-height:1.42;color:rgb(51,51,51);font-family:Helvetica, Arial, sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	Hi, <br>
	 
</p>

<p style="margin:0px;font-size:16px;line-height:1.42;color:rgb(51,51,51);font-family:Helvetica, Arial, sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	Is there a way to connect with a any database on NXG 2.0 - NXG 2.1, or another solution to store the data and retrieve it?
</p>

<p style="margin:0px;font-size:16px;line-height:1.42;color:rgb(51,51,51);font-family:Helvetica, Arial, sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	 
</p>

<p style="margin:0px;font-size:16px;line-height:1.42;color:rgb(51,51,51);font-family:Helvetica, Arial, sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	Thank you.
</p>
]]></description><guid isPermaLink="false">20494</guid><pubDate>Mon, 23 Apr 2018 11:54:20 +0000</pubDate></item><item><title>View Data from HDF5 in Grafana</title><link>https://lavag.org/topic/20428-view-data-from-hdf5-in-grafana/</link><description><![CDATA[<p>
	I'm having my data in HDF5 format. I would like to extract the data and view it in Grafana. I'm wondering if there is way to do it.
</p>

<p>
	Would appreciate any help/links
</p>
]]></description><guid isPermaLink="false">20428</guid><pubDate>Fri, 09 Feb 2018 17:19:49 +0000</pubDate></item><item><title>Alternative to Citadel for logging and displaying time series data</title><link>https://lavag.org/topic/20369-alternative-to-citadel-for-logging-and-displaying-time-series-data/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	My company has a software/hardware product which is deployed as a labview executable. The software is of the SCADA type and it typically monitors and controls 5-20 machines using modbus. We also log data from each machine (every ten minutes, 10-20 data points per machine). The gui allows the operator to trend data in 24 hour increments by selecting the machines and day of the year. We have been using DSC and Citadel to store the data as traces which allows us to locate the data with a start and stop time for display. However, my company is not happy about the licensing of DSC and has asked me to look into other options. 
</p>

<p>
	Part of the issue with DSC is that although it is supported by NI, it is no longer being developed, fixed or improved. An example of this is the DSC modbus IO servers which map to shared variables. There are known issues with how certain write functions are implemented which make it impossible to write to many modbus devices. NI has acknowledged the problem but is not going to fix it. So we have developed our own modbus routines, making use of the NI modbus library.
</p>

<p>
	On the data logging and trending side, I would like to know if there are reasonable alternatives within the labview environment that don't require a DSC license on each deployed machine? I know that citadel uses TDMS and it seems like a great format, but I'm not sure if it would be too much work to build out code for logging and retrieving time series data using the low level functions that labview provides. As you can probably tell, i'm familiar with labview but don't have a lot of background in databases and data management.
</p>

<p>
	Does anyone have experience trying something similar?
</p>

<p>
	Thanks
</p>
]]></description><guid isPermaLink="false">20369</guid><pubDate>Fri, 01 Dec 2017 19:26:56 +0000</pubDate></item><item><title>ADO Error: 0x00000001 Argument error. The table name given is blank</title><link>https://lavag.org/topic/20344-ado-error-0x00000001-argument-error-the-table-name-given-is-blank/</link><description><![CDATA[<p>
	Greetings, 
</p>

<p>
	I am currently learning LabVIEW Database which I had encountered the error stated on the title. I am using Xampp software for the database. May I know what is the problem behind this? Despite I had provided name for my table. Thank you.
</p>

<p>
	 
</p>

<p>
	 <a class="ipsAttachLink ipsAttachLink_image" data-fileid="12744" href="https://lavag.org/uploads/monthly_2017_11/59fc26135ad41_Labviewerrorss.PNG.a5e8e51304417292ba15cd398a133cd8.PNG" rel=""><img alt="Labview error ss.PNG" class="ipsImage ipsImage_thumbnailed" data-fileid="12744" src="https://lavag.org/uploads/monthly_2017_11/59fc261410db4_Labviewerrorss.thumb.PNG.e9f519b73d173b7201babc3e5e0efcc7.PNG"></a>
</p>

<p>
	<img class="ipsImage ipsImage_thumbnailed" data-fileid="12743" src="https://lavag.org/uploads/monthly_2017_11/59fc257f079fc_LabVIEWerror.thumb.JPG.674f5d0644cdd08c69ed6aa5fd80737b.JPG" style="width:0px;height:auto;" alt="LabVIEW error.JPG"></p>

<p>
	<a class="ipsAttachLink" href="//lavag.org/applications/core/interface/file/attachment.php?id=12745" data-fileid="12745" rel="">States Control.ctl</a>
</p>

<p>
	<a class="ipsAttachLink" href="//lavag.org/applications/core/interface/file/attachment.php?id=12746" data-fileid="12746" rel="">User_Info.vi</a>
</p>
]]></description><guid isPermaLink="false">20344</guid><pubDate>Fri, 03 Nov 2017 08:21:11 +0000</pubDate></item><item><title>Simultaneous R/W text file</title><link>https://lavag.org/topic/20254-simultaneous-rw-text-file/</link><description><![CDATA[<p>
	So after troubleshooting a complex piece of code for a few hours, I stripped things down to the screenshot below. Apparently writing and reading a text file at the same time causes the read operation to fail. If you force sequential operations by wiring the error cluster from the Read to the Write OR VICE-VERSA, then things work fine.
</p>

<p>
	Does anybody know about this? Obviously my code is way more complicated and the read and write operations are done in different unrelated VIs and in an asynchronous manner. So it seems my only way to fix this is to add a locking mechanism such as a FGV2... However, the file I'm manipulating is actually an INI file and I manipulate it using the native Configuration Data palette, which deep down relies on the R/W Text file VIs. So the FGV2 would need to be added to the native Configuration Data VIs if I wanted to have a generic fix...
</p>

<p>
	The attached VI is saved for LabVIEW 2015.
</p>

<p><a href="https://lavag.org/uploads/monthly_2017_08/Capture.PNG.c7bc6516604e65ebfcb877b6d2efecab.PNG" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="12594" src="https://lavag.org/uploads/monthly_2017_08/Capture.PNG.c7bc6516604e65ebfcb877b6d2efecab.PNG" class="ipsImage ipsImage_thumbnailed" alt="Capture.PNG"></a></p>
<p><a class="ipsAttachLink" href="//lavag.org/applications/core/interface/file/attachment.php?id=12595">Read-Write TXT issue.vi</a></p>]]></description><guid isPermaLink="false">20254</guid><pubDate>Tue, 22 Aug 2017 22:46:54 +0000</pubDate></item><item><title>What database do you use?</title><link>https://lavag.org/topic/20210-what-database-do-you-use/</link><description><![CDATA[<p>
	I'm reviewing how we're storing data and looking at databases. As I'm looking through the hundreds of database options out there I began wondering what other people are using for databases and what they are using it for.
</p>

<p>
	Starting off... Currently using files for local test record storage, but also use SQL Server to aggregate data.
</p>
]]></description><guid isPermaLink="false">20210</guid><pubDate>Wed, 19 Jul 2017 21:08:08 +0000</pubDate></item><item><title>Reading from an excel spreadsheet, then having user interact with the data</title><link>https://lavag.org/topic/20043-reading-from-an-excel-spreadsheet-then-having-user-interact-with-the-data/</link><description><![CDATA[<p>
	Hi All,
</p>

<p>
	I am a new user to LabView and this is my first project using it. The project requires me to read a massive spreadsheet from Excel into LabView and then allowing the user to do the following:
</p>

<p>
	- Select which columns to plot against the first column
</p>

<p>
	- Use a cursor to select a portion of the spreadsheet: the Vi will then average the selected data by column (in other words, if the user selects data across multiple columns, the program will average data in each column separately). Then write the averages to the csv file.
</p>

<p>
	So far, I have the spreadsheet read into a table as strings (because the first row of the spreadsheet is words). I have spent a lot of time searching how to allow the user to select data on the table to perform operations on, but to no avail. I am hoping you guys could give me some insight on how to tackle this project.
</p>
]]></description><guid isPermaLink="false">20043</guid><pubDate>Tue, 28 Feb 2017 15:02:35 +0000</pubDate></item><item><title>Move File Error 10</title><link>https://lavag.org/topic/20227-move-file-error-10/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	I have a vi, where after closing the file there is a check if some parameter has changed, so that the filename should be changed accordingly.
</p>

<p>
	What is done is simply create a new path with the current parameters, and check this path with the original path of the saved file. If both paths are identical, nothing is done. If the paths are different then the file is renamed with the "Move" VI.
</p>

<p>
	The vi works as expected most of the time, but where the executable is installed by a customer, error 10 is returned occasionally.
</p>

<p>
	I do not understand how this can happen: if the path is duplicated then the result of the comparison should avoid the file name change.
</p>

<p>
	In case that another file with the same name already existed, the returned error would then be different.
</p>

<p>
	Any hints of what could be happening are welcome.
</p>

<p>
	Thank you.
</p>

<p>
	 
</p>

<p>
	Regards.
</p>

<p><a href="https://lavag.org/uploads/monthly_2017_07/capture.png.a28933a9f810e680a16c7dfae68c1f08.png" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="12552" src="https://lavag.org/uploads/monthly_2017_07/capture.png.a28933a9f810e680a16c7dfae68c1f08.png" class="ipsImage ipsImage_thumbnailed" alt="capture.png"></a></p>
<p><a href="https://lavag.org/uploads/monthly_2017_07/Move_file.png.e218899dbd081348311fe1e15f8768f0.png" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="12553" src="https://lavag.org/uploads/monthly_2017_07/Move_file.png.e218899dbd081348311fe1e15f8768f0.png" class="ipsImage ipsImage_thumbnailed" alt="Move_file.png"></a></p>]]></description><guid isPermaLink="false">20227</guid><pubDate>Fri, 28 Jul 2017 14:32:50 +0000</pubDate></item><item><title>Accessing Microsoft Sharepoint with LabVIEW</title><link>https://lavag.org/topic/20150-accessing-microsoft-sharepoint-with-labview/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	Can't find any recent topics about this subject or topics at all. My need is to read a list of measurement equipment data from Microsoft Sharepoint using LabVIEW. Only answers that I could find is that I would need to read the HTML code from the pages or just access some files that are stored in the sharepoint directories, but I think these files will not include the needed metadata for the measurement equipment, calibration dates etc. Is there any reasonable way to interact with sharepoint via LabVIEW or atleast to be able to read the data from sharepoint?
</p>
]]></description><guid isPermaLink="false">20150</guid><pubDate>Tue, 30 May 2017 09:46:25 +0000</pubDate></item><item><title>Connectivity to Infor Visual ERP databases</title><link>https://lavag.org/topic/20130-connectivity-to-infor-visual-erp-databases/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	does any one have worked with Infor VISUAL ERP databses?
</p>

<p>
	Can they be read or written using Labview either way using database connectivity toolkit or .net libraries?
</p>

<p>
	thank you
</p>
]]></description><guid isPermaLink="false">20130</guid><pubDate>Sat, 13 May 2017 00:44:39 +0000</pubDate></item><item><title>Display an .ico file</title><link>https://lavag.org/topic/4433-display-an-ico-file/</link><description><![CDATA[<p>Hello all, I have a question.  I'm looking to display a .ico file which is an icon, on the front panel of a VI, inside a picture control.</p>
<p> I seen that there is a Read JPG from File and Read BMP from File which can do exactly what I want but it won't accept .ico files.</p>
<p> I've thought about opening an ActiveX object with a web browser to display the icon but I'm not satisified with how it looks.</p>
<p> Also this needs to be dynamic, so a copy and paste into the front panel won't cut it.  Any comments are appreciated. Thanks.</p>
]]></description><guid isPermaLink="false">4433</guid><pubDate>Thu, 14 Dec 2006 22:40:24 +0000</pubDate></item><item><title>What Database Toolkit do you use?</title><link>https://lavag.org/topic/19822-what-database-toolkit-do-you-use/</link><description><![CDATA[<p>
	What toolkits do people use for accessing databases?   I’ve been using SQLite a lot, but now need to talk to a proper database server (MySQL or Postgres).  I’ve used the NI Database Connectivity Toolkit in the (far) past, but I know there are other options, such as using ADO.NET directly.
</p>

<p>
	What do people use for database connectivity?  What would you recommend?
</p>

<p>
	— James
</p>
]]></description><guid isPermaLink="false">19822</guid><pubDate>Thu, 22 Sep 2016 11:37:37 +0000</pubDate></item><item><title>SQL Timestamp will millisecond precision</title><link>https://lavag.org/topic/19974-sql-timestamp-will-millisecond-precision/</link><description><![CDATA[<p>
	Hi guys,
</p>

<p>
	I need to be able to insert and retrieve a timestamp into an SQL database with miliisecond precision (ideally three digits of precision).
</p>

<p>
	Complicating the issue is that my final system is going to be hosted in a MS-SQL (so T-SQL) DB, but I am testing locally using a LAMP stack.
</p>

<p>
	I have done quite a bit of digging, it seems T-SQL would like me to use datetime2 type, but this is not available in MySQL. Apparently I can should use DATETIME(3) as the type. I am struggling to create a table with this as a valid column. I am using a LAMP VM appliance which I believe is running the a version of MySQL that supports fractional timestamps, but the SQL statement to create the table is failing.
</p>

<p>
	CREATE TABLE t1 (t dt DATETIME(6));
</p>

<p>
	Any ideas what I am doing wrong?
</p>

<p>
	Secondly, it looks like the NI DB Toolkit has very primitive support for timestamps, and people prefer to use strings? Can anybody share their current "best practice after having done it wrong a few times" with me? Beer on me for solutions <img alt=":beer_mug:" data-emoticon="" src="https://lavag.org/uploads/emoticons/default_beer_mug.gif" title=":beer_mug:"></p>

<p>
	Thanks 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p><a href="https://lavag.org/uploads/monthly_2017_01/Capture.JPG.f0f7437a0be3256247c748ee29149f5b.JPG" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="11983" src="https://lavag.org/uploads/monthly_2017_01/Capture.thumb.JPG.028f6d54a895c879388c3851462cc235.JPG" class="ipsImage ipsImage_thumbnailed" alt="Capture.JPG"></a></p>]]></description><guid isPermaLink="false">19974</guid><pubDate>Tue, 24 Jan 2017 07:38:43 +0000</pubDate></item><item><title><![CDATA[Hosted DB & LabVIEW]]></title><link>https://lavag.org/topic/19955-hosted-db-labview/</link><description><![CDATA[<p>
	Hi, 
</p>

<p>
	I am looking for a toolkit which would allow to connect and modify the hosted db from <abbr title="LabVIEW">LV</abbr> application. 
</p>

<p>
	What are the options? (excluding the Database Connectivity Toolkit). 
</p>

<p>
	max
</p>
]]></description><guid isPermaLink="false">19955</guid><pubDate>Fri, 13 Jan 2017 14:49:06 +0000</pubDate></item><item><title>SPC Stats Visualization - TestStand database - Python Pandas</title><link>https://lavag.org/topic/19963-spc-stats-visualization-teststand-database-python-pandas/</link><description><![CDATA[<p>
	Hi There 
</p>

<p>
	I want to go from TestStand's output i.e. database to HTML5 SPC charts. Sorta like <a href="http://moderndata.plot.ly/using-plotly-from-labview-via-python/" rel="external nofollow">http://moderndata.plot.ly/using-plotly-from-labview-via-python/</a> Has anyone done this or used Bokeh or Enthough's <a href="https://www.enthought.com/products/canopy/canopy-data-import-tool/" rel="external nofollow">data tool</a> before?  What about these tools with TDMS or HDF5?
</p>

<p>
	Thanks. I appreciate it.
</p>

<p>
	Best,
</p>

<p>
	Pavan 
</p>

<p>
	By the way, <a href="https://www.enthought.com/services/consulting/case-studies/TAIPAN/" rel="external nofollow">https://www.enthought.com/services/consulting/case-studies/TAIPAN/</a> (like TestStand without TestStand)
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">19963</guid><pubDate>Wed, 18 Jan 2017 19:17:00 +0000</pubDate></item><item><title>SQLite - Database is locked</title><link>https://lavag.org/topic/19896-sqlite-database-is-locked/</link><description><![CDATA[<p>
	Hi Lava Citizens, 
</p>

<p>
	I am trying to implement SQLite - update function so i can easily modify values in a selected row. 
</p>

<p>
	<a href="http://www.sqlitetutorial.net/sqlite-update/" rel="external nofollow">http://www.sqlitetutorial.net/sqlite-update/</a>
</p>

<p>
	I have tried this statement - UPDATE ESD_User SET Name = 'James Bond', Status = 'Employee', Location = 'Canada' WHERE EmployeeID = 5;  using the DB Browser for SQLite. The command does update the values as expected. 
</p>

<p>
	I am trying to do same with the labview + sqlite driver. I have attached the update user code. 
</p>

<p>
	I am getting an error from EXEC SQL
</p>

<p>
	<span style="font-size:12px;">"SQLite.lvlib:Connection.lvclass:Execute SQL (Single String).vi:760001:Step on "UPDATE ESD_User SET Name = 'James Bond', Status = 'Employee', Location = 'Canada' WHERE EmployeeID = 5;"</span>
</p>

<p>
	<span style="font-size:12px;">SQLITE_BUSY: database is locked."</span>
</p>

<p>
	<br><span style="font-size:12px;">Can you please explain the cause of this error? </span>
</p>

<p>
	Thank you, 
</p>

<p>
	max
</p>

<p>
	<a class="ipsAttachLink ipsAttachLink_image" data-fileid="11844" href="https://lavag.org/uploads/monthly_2016_11/UpdateRecords.png.aae334f41a01de0481e3b36bdd8507f0.png" rel=""><img alt="UpdateRecords.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11844" src="https://lavag.org/uploads/monthly_2016_11/UpdateRecords.png.aae334f41a01de0481e3b36bdd8507f0.png"></a>
</p>
]]></description><guid isPermaLink="false">19896</guid><pubDate>Fri, 18 Nov 2016 19:27:13 +0000</pubDate></item><item><title>Historical data logging</title><link>https://lavag.org/topic/19942-historical-data-logging/</link><description><![CDATA[<p>
	I am using NI DSC cracked module for data-logging from PLC tags. I am able to fetch real time &amp; historical data from traces and citadel database on local PC.But i am unable to fetch historical data in remote system. Is it because of using cracked module???
</p>

<p>
	Please provide me better option.
</p>
]]></description><guid isPermaLink="false">19942</guid><pubDate>Thu, 05 Jan 2017 09:54:13 +0000</pubDate></item><item><title>TDMS not closed, data useless?</title><link>https://lavag.org/topic/19938-tdms-not-closed-data-useless/</link><description><![CDATA[<p>
	Good morning,
</p>

<p>
	I had a problem with my long time messurment. The programm crashed and it did´nt close the tdms file. There is sadly no way, i can repeat the messurment. Is there a way to recover the file? 
</p>

<p>
	The storage was formated in FAT32, that is the reason why the programm crashed at 4 Gb filesize.
</p>

<p>
	 
</p>

<p>
	Thanks for your help.
</p>
]]></description><guid isPermaLink="false">19938</guid><pubDate>Mon, 02 Jan 2017 11:31:57 +0000</pubDate></item><item><title>Database Connectivity Toolkit Multi Row Insert</title><link>https://lavag.org/topic/19869-database-connectivity-toolkit-multi-row-insert/</link><description><![CDATA[<p>
	Hi all. I recently got the Database Connectivity Toolkit (DBCT) on LabVIEW 2016 and I'm trying to insert multiple rows into a database.
</p>

<p>
	Using a sine signal input I attempted to insert 50 rows in one iteration, but every method I tried returned 50 values in one row. Using the end of line constant and array to spreadsheet string, returned what looked like 50 rows, but when I queried "SELECT COUNT(*) FROM.." the no of rows was equal to the number of iterations.
</p>

<p>
	On another forum post, someone suggested it is not possible to insert multiple rows using the DBCT. Can anyone confirm this?
</p>

<p>
	I have written some code which allows me to insert 3 rows in one iteration, under a single connection. However, this method is very tedious and wouldn't work for large amounts of data.
</p>

<p>
	 
</p>

<p>
	<img alt="DB Connectivity (Multi Row Insert).png" border="0" src="https://lavag.org/uploads/imageproxy/8eb9f1f12ca75079f8fb44e4430ea787.png.b1b8a5ad8caf8fc1b3ac922943a2989d.png" style="width:1000px;height:346.23px;" title="DB Connectivity (Multi Row Insert).png"></p>

<p>
	 
</p>

<p>
	Can anyone think of a better way to do this?
</p>

<p>
	 
</p>

<p>
	Thanks in advance,
</p>

<p>
	 
</p>

<p>
	Lisa
</p>
]]></description><guid isPermaLink="false">19869</guid><pubDate>Wed, 26 Oct 2016 10:08:49 +0000</pubDate></item><item><title>PDF OCR from LabVIEW?</title><link>https://lavag.org/topic/19861-pdf-ocr-from-labview/</link><description><![CDATA[<p>
	Hey guys/gals.  Long time member/infrequent poster here with a PDF challenge to share.
</p>

<p>
	I'm working on modifying some old LabVIEW code for an internal customer where reports generated by the compiled EXE are essentially LabVIEW FPs that are printed to a PDF printer.  I've been asked to streamline the process by preventing the prompt for filename/location for each report that is "printed", (and there are many) as well auto-generate the PDF filenames. 
</p>

<p>
	The problem I've run into is that in using the LabVIEW PDF toolkits that I've found on VIPM and NI's website - the FPs are added to the PDF files as images whereas by using a PDF "printer" to print the FP, it appears that an OCR engine is used to break up the FP image into images and searchable text.  Having searchable text is what the customer wants to keep if possible. However, with the level of control they're requesting for PDF generation, I'm having a difficult time finding a solution that can be done in LabVIEW and meet all of the requests without changing the report generation scheme from FP "printing" to an actual proper report scheme... which they don't want me to do. 
</p>

<p>
	I could dig into finding out more details about programmatically controlling <strong>their </strong>"PDF Printer" from LabVIEW, but I would prefer the application not to be coupled too tightly to a 3rd party application that could change or disappear at any time. (Gov't Contractor).
</p>

<p>
	Anyone have any ideas?  It would be nice if the available PDF toolkits out there had some sort of OCR function for images if they contained text.
</p>

<p>
	If this is too much of a pain to do, I may just have to tell them it will have to be one way or the other.   I love LabVIEW programming, so if I can do it I will. <img alt=":)" data-emoticon="" src="https://lavag.org/uploads/emoticons/default_smile.png" title=":)"></p>
]]></description><guid isPermaLink="false">19861</guid><pubDate>Thu, 20 Oct 2016 14:21:14 +0000</pubDate></item><item><title>Database Insertion Loop Execution time</title><link>https://lavag.org/topic/19860-database-insertion-loop-execution-time/</link><description><![CDATA[<p>
	I am looking to determine the time it takes to insert each batch (500rows) of data into a database, i.e. the loop execution time. <em>See the block diagram below.</em>
</p>

<p>
	I've place a timer outside the while loop and subtracted it from the timer inside the loop, using shift registers to carry forward the start time. I place the timer in a sequence structure to make sure it starts before the code runs.
</p>

<p>
	When I used this method on a simple example - a while loop with wait function, the loop execution time returned the wait time as expected. But in the database application, the loop execution time value continues to increase. Where am I going wrong?
</p>

<p>
	Thanks in advance,
</p>

<p>
	Lisa<br>
	 <a class="ipsAttachLink ipsAttachLink_image" data-fileid="11740" href="https://lavag.org/uploads/monthly_2016_10/58089dad98309_DatabaseExampleTimed.png.0c82b671a9f3358da5d54c0100e6bc93.png" rel=""><img alt="Database Example Timed.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11740" src="https://lavag.org/uploads/monthly_2016_10/58089dae9f038_DatabaseExampleTimed.thumb.png.b4580028c72871d1cfdcadffdcc0f98a.png"></a>
</p>
]]></description><guid isPermaLink="false">19860</guid><pubDate>Thu, 20 Oct 2016 10:37:47 +0000</pubDate></item><item><title>Choice of logging format/style [TDMS, SQLite, some combination?]</title><link>https://lavag.org/topic/19857-choice-of-logging-formatstyle-tdms-sqlite-some-combination/</link><description><![CDATA[<p>
	<u>Question</u>: I'm trying to determine the 'best' way to structure my data when storing to disk. My data comes from a variety of different sensor types and with quite different rates - e.g. temperature data (currently) as a 1D array of temperatures and a timestamp [time, t1, t2, ..., tn] at maybe 1 Hz and analog waveform data from load cells at data rates ~O(kHz). 
</p>

<p>
	I also want to be able to read back data from previous experiments and replot on a similar graph. 
</p>

<p>
	Reading threads on this forum and at NI I'm uncertain if I'll be better pursuing a set of TDMS files, probably one per sensor type stored at the group/channel level, then at the end of an experiment, collating the TDMS files into one master file and defragmenting, or trying instead to write to a SQLite database. (I have nearly no experience using SQL, but no problem learning - drjdpowell's <a href="https://www.youtube.com/watch?v=0UiI2R-pzxQ" rel="external nofollow">youtube video</a> was already very informative.) An alternative possibility mentioned in a thread somewhere here was to write TDMS files, then store records on which files hold what data in what I understood to be a catalogue-style SQL database.
</p>

<p>
	Could anyone with a clearer idea/head than me comment on which avenues are dark tracks down which time will be easily lost in failed attempts, and which seem likely to be worth trying?
</p>

<p>
	 
</p>

<p>
	<u>Background</u>: I'm currently rewriting some code I wrote last year based on the 'Continuous Measurement and Logging'  template/project. The logging in that case was writing to a single, binary file. Keeping my data format in line as I changed sensor arrangement became increasingly annoying and an ever expanding series of block diagrams lead me to start on the 'Actor Framework' architecture.
</p>

<p>
	I have some initial progress with setting up actors and generating some simulated data, passing it around and getting it from different formats onto a waveform or XY-graph (can be chosen by choice of child class to insert into a subpanel). I'm now looking to write the logging code such that I have basic implementations of several of the components before I try and write out all of the measurement components and so on - I already have a temperature measurement library for an LTC2983 based PCB and so can use that to test (with hardware) inputting 1D arrays, whilst I'm planning to use just the sine wave VIs to test waveform input.
</p>

<p>
	I'm not so far into this set of coding that anything is set in stone yet, and so I want to at least try and start off in the right direction. Whilst it seems likely changes to requirements or plans will require modifications to whatever I write, it would be nice if those weren't of the same magnitude as the entire (e.g. logging) codebase.
</p>

<p>
	 
</p>

<p>
	Apologies for the somewhat verbose post.
</p>
]]></description><guid isPermaLink="false">19857</guid><pubDate>Tue, 18 Oct 2016 02:47:34 +0000</pubDate></item><item><title>LabVIEW with PostgreSQL psql.exe password request</title><link>https://lavag.org/topic/19856-labview-with-postgresql-psqlexe-password-request/</link><description><![CDATA[<p>
	I am trying to connect a PostgreSQL database (ver 9.6) with LabVIEW (2016) on Windows 10.
</p>

<p>
	I followed the following tutorial:
</p>

<p>
	<a href="https://decibel.ni.com/content/docs/DOC-30308" rel="external nofollow">https://decibel.ni.com/content/docs/DOC-30308</a>
</p>

<p>
	Without access to a cRIO, I have followed the steps to create the database, table and block diagram. Please see block diagram attached.The system exec.vi calls the psql.exe with SELECT command using database "lisam" and database user "postgres".
</p>

<p>
	When I execute the same code I am asked for the password for user postgres. When I type in the password, the box closes and reopens. This continues in a loop until I press abort. I get no errors and when I write the same script into the cmd - the password is accepted and the table is displayed, see attachment.
</p>

<p>
	PROBLEM:
</p>

<ul><li>
		<strong>Password request from the psql.exe</strong> file when executing LabVIEW code
	</li>
	<li>
		Type password, psql.exe closes and opens again
	</li>
	<li>
		<strong>SELECT query works without while loop</strong> (password accepted once) but insert and clear does not without the loop condition
	</li>
</ul><p>
	What I've tried...
</p>

<ol><li>
		Created a <strong>pgpass.conf</strong> file in a postgresql folder in %AppData% in the following format:- <em>hostname:port:database:username:password</em>, where lisam is the database, postgres is the user.
	</li>
</ol><p>
	Host name as localhost '127.0.0.1' - password still requested.
</p>

<pre class="lang-sql prettyprint prettyprinted">
<code><span class="pln">    </span><span class="lit">127.0.0.1</span><span class="pun">:</span><span class="lit">5432</span><span class="pun">:</span><span class="pln">lisam</span><span class="pun">:</span><span class="pln">postgres</span><span class="pun">:</span><span class="pln">password</span></code></pre>

<p>
	Host name as 'localhost' - psql.exe flashes continously and LabVIEW crashes. localhost:5432:database:username:password
</p>

<p>
	Host name as database client address '::1' - password loop with the psql.exe.
</p>

<pre class="lang-sql prettyprint prettyprinted">
<code><span class="pln">    </span><span class="pun">::</span><span class="lit">1</span><span class="pun">:</span><span class="lit">5432</span><span class="pun">:</span><span class="kwd">database</span><span class="pun">:</span><span class="pln">username</span><span class="pun">:</span><span class="pln">password</span></code></pre>

<p>
	Host name to '*' -
</p>

<pre class="lang-sql prettyprint prettyprinted">
<code><span class="pln">    </span><span class="pun">*:</span><span class="lit">5432</span><span class="pun">:</span><span class="pln">lisam</span><span class="pun">:</span><span class="pln">postgres</span><span class="pun">:</span><span class="pln">password</span></code></pre>

<p>
	Able to:
</p>

<ul><li>
		<p>
			Access the database through the cmd WITHOUT password
		</p>

		<pre class="lang-sql prettyprint prettyprinted">
<code><span class="pln">C</span><span class="pun">:/</span><span class="pln">Program Files</span><span class="pun">/</span><span class="pln">PostgreSQL</span><span class="pun">/</span><span class="lit">9.6</span><span class="pun">/</span><span class="pln">bin</span><span class="pun">/</span><span class="pln">psql </span><span class="pun">-</span><span class="pln">c </span><span class="str">"SELECT * FROM demo1"</span><span class="pln"> lisam postgres</span></code></pre>
	</li>
</ul><p>
	Problems:
</p>

<ul><li>
		Execution in Labview - psql.exe flashes continuously and the program crashes.
	</li>
	<li>
		Accessing database through psql.exe directly - password requested and ERROR received<br>
		"psql: FATAL: password authentication failed for user C:\Program Files"
	</li>
</ul><p>
	2.Changed the <strong>authentication method in pg_hba.conf</strong> to trust for:
</p>

<ul><li>
		localhost (127.0.0.1)- a password is still requested.
	</li>
	<li>
		<p>
			127.0.0.1 AND ::1 - Can access the database on psql without a password, but the psql.exe LabVIEW completely crashes.
		</p>

		<ol start="3"><li>
				<p>
					I tried <strong>adding the host and port</strong> to the code
				</p>

				<p>
					C:/Program Files/PostgreSQL/9.6/bin/psql -c "%s" -h 127.0.0.1 -p 5432 lisam postgres
				</p>
			</li>
		</ol></li>
</ul><p>
	And the psql.exe flashes continously and won't abort.
</p>

<ol start="4"><li>
		The password is called at the system exec VI in the cmd. Tried <strong>concatenating the password (as a control) with space constant to the command line</strong> string inbetween the format into string and the system exec VI. But the password is given before it is called.
	</li>
</ol><p>
	In summary I am able to use .pgpass.conf to authenticate the password when using the cmd, but not in LabVIEW. Does anyone know a way around this? Or another way to define the password at the system exec VI?
</p>

<p>
	Your help is greatly needed.
</p>

<p>
	Lisa
</p>

<hr><p>
	<strong>Info:</strong>
</p>

<ul><li>
		database name: lisam
	</li>
	<li>
		database user: postgres
	</li>
</ul><p>
	IPv4 local connections-
</p>

<pre class="lang-sql prettyprint prettyprinted">
<code><span class="pln">    host </span><span class="kwd">all</span><span class="pln"> </span><span class="kwd">all</span><span class="pln"> </span><span class="lit">127.0.0.1</span><span class="pun">/</span><span class="lit">32</span><span class="pln"> md5</span></code></pre>

<p>
	IPv6 local connections-
</p>

<pre class="lang-sql prettyprint prettyprinted">
<code><span class="pln">    host </span><span class="kwd">all</span><span class="pln"> </span><span class="kwd">all</span><span class="pln"> </span><span class="pun">::</span><span class="lit">1</span><span class="pun">/</span><span class="lit">128</span><span class="pln"> md5

    DB</span><span class="pun">:</span><span class="pln">lisam Client Address </span><span class="pun">::</span><span class="lit">1</span><span class="pln">
    psql Client address </span><span class="lit">127.0.0.1</span></code></pre>

<p>
	 
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	<a class="ipsAttachLink ipsAttachLink_image" data-fileid="11734" href="https://lavag.org/uploads/monthly_2016_10/5804a37b71bf2_PostgreSQLwithLabVIEW.png.7ce7d2d92100f6dac49c64ebf1a6baa6.png" rel=""><img alt="PostgreSQL with LabVIEW.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11734" src="https://lavag.org/uploads/monthly_2016_10/5804a37c11b11_PostgreSQLwithLabVIEW.thumb.png.d4b60537f93cbbac781e3f2c3c679f20.png"></a>
</p>

<p>
	<a class="ipsAttachLink ipsAttachLink_image" data-fileid="11735" href="https://lavag.org/uploads/monthly_2016_10/cmd.png.8aee518a2ce2ba7b3f059e79dcdd5bf5.png" rel=""><img alt="cmd.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11735" src="https://lavag.org/uploads/monthly_2016_10/cmd.png.8aee518a2ce2ba7b3f059e79dcdd5bf5.png"></a>
</p>
]]></description><guid isPermaLink="false">19856</guid><pubDate>Mon, 17 Oct 2016 10:24:26 +0000</pubDate></item><item><title>Unable to delete one row in database</title><link>https://lavag.org/topic/19782-unable-to-delete-one-row-in-database/</link><description><![CDATA[<p>
	Hi there!
</p>

<p>
	I am a relatively new Labview user, and this is my First post on these forums. I posted an issue on the NI forums, but figured it wouldn't hurt to look elsewhere for help. Below is a link to my issue outlined on the NI forums, but i shall do so again.
</p>

<p>
	Link to first thread:
</p>

<p>
	<a href="http://forums.ni.com/t5/LabVIEW/Unable-to-delete-one-row-from-Database/m-p/3340518/highlight/false#M981003" rel="external nofollow">http://forums.ni.com/t5/LabVIEW/Unable-to-delete-one-row-from-Database/m-p/3340518/highlight/false#M981003</a>
</p>

<p>
	Setup: postgresql database with table clust, in the public schema. This table has 3 columns; user, password, privilege. This table has 2 test entries; the first entry (alex, 123, 123) and second entry (mike, 456, 456)
</p>

<p>
	What i am trying to do: delete one row from a table in my database.
</p>

<p>
	What is happening: When i try to delete the entry alex, it deletes all the entries. When i try to delete mike, nothing happens.<br>
	Below are 2 images of an extremely simple VI running, and completing without error, except what i outlined above. Hopefully someone knows what is going on, as i really have no clue.
</p>

<p>
	Thanks for reading,
</p>

<p>
	StavA
</p>

<p>
	 
</p>

<p>
	<a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_2016_08/deletequery.png.00310c0477024961e45bd22cd1e703cf.png" data-fileid="11597" rel=""><img alt="deletequery.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11597" src="https://lavag.org/uploads/monthly_2016_08/deletequery.png.00310c0477024961e45bd22cd1e703cf.png"></a>
</p>

<p>
	<a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_2016_08/deletequeryfollowup.png.d914c9bfa5dd20c71cf99d9834dbbffd.png" data-fileid="11598" rel=""><img alt="deletequeryfollowup.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11598" src="https://lavag.org/uploads/monthly_2016_08/deletequeryfollowup.png.d914c9bfa5dd20c71cf99d9834dbbffd.png"></a>
</p>
]]></description><guid isPermaLink="false">19782</guid><pubDate>Mon, 29 Aug 2016 18:25:59 +0000</pubDate></item><item><title>DB Connectivity Toolkit Date Format</title><link>https://lavag.org/topic/19677-db-connectivity-toolkit-date-format/</link><description><![CDATA[<p>
	I'm using a MySQL database and it has some columns of the datatype DATETIME. When I store data in these fields, I format my timestamps into a string of the YYYY-MM-DD HH:MM:SS format and it works just fine. However, I'm having a problem when I get the DATETIME values back out of the database. I'm using the DB Tools Select Data VI and then Database Variant to Data to convert it into a string (it won't let me convert directly to a timestamp). The problem is that the string I get is the date and time, formatted according to my system date format, which for me is MM/DD/YYYY II:MM:SS p. I want it to stay in the YYYY-MM-DD HH:MM:SS format, so I can use that format to convert it back to a timestamp. I've tried changing my system date format, and that fixes the problem, but I'm afraid it's not a very robust solution. I don't want my program to break if I try to run it on someone's computer that has a different system date format. Does anyone have any ideas of how I can make it always output the same format?
</p>

<p>
	Thanks!
</p>

<p>
	--Hope
</p>
]]></description><guid isPermaLink="false">19677</guid><pubDate>Sun, 03 Jul 2016 08:05:07 +0000</pubDate></item><item><title>SQLite problems with where statements and data binding</title><link>https://lavag.org/topic/19641-sqlite-problems-with-where-statements-and-data-binding/</link><description><![CDATA[<p>
	hey guys,
</p>

<p>
	I'm pretty new to Labview and very new to databases. I found SQLite and thought it would be a good fit for a new project, but I'm having a hard time getting the where statements to work so I get the data I'm expecting.
</p>

<p>
	Ive created a table in a database editor called parts, it has two fields part type and serial number. I scan a tag to get a serial number and would like my database call to return the appropriate part type. Right now I only have one value in each column ( a single serial number and a single part type). I tried to use the "?" and bind the serial number to it but kept getting zero returned values. I can get the part type value by saying "SELECT PartType FROM Parts".
</p>

<p>
	I must be doing something very simple wrong, I tried to look on the SQLite.org but really wasnt sure what I was missing in the syntax section for select.
</p>

<p>
	any help would be great,
</p>

<p>
	Thanks
</p>

<p><a href="https://lavag.org/uploads/monthly_2016_06/DBPartTypeFromSN.png.5ff18732cfa5f700d38391bd2d155431.png" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="11305" src="https://lavag.org/uploads/monthly_2016_06/DBPartTypeFromSN.thumb.png.58e8b4eb91f084810cea0ad8361fc6b4.png" class="ipsImage ipsImage_thumbnailed" alt="DBPartTypeFromSN.png"></a></p>]]></description><guid isPermaLink="false">19641</guid><pubDate>Wed, 08 Jun 2016 18:41:08 +0000</pubDate></item><item><title><![CDATA[MSXML &quot;Pretty&quot; Print]]></title><link>https://lavag.org/topic/3632-msxml-pretty-print/</link><description><![CDATA[<p>Hello everyone,</p>
<p>Since I've gleemed quite a bit of useful code and information from this site, it is my pleasure to offer what I hope is a useful piece of code to the community.</p>
<p>The MSXML toolkit offered through the OpenG site is a really nice implementation of the MSXML DOM Active X object but I've been bothered by the single line format that the "Save XML" vi generates.  This single line format makes it near impossible to manually read/edit an XML file if it's been touched by this vi.  The vi I've attached has a few lines of code added that will save the XML in a standard "pretty" format (tabbed tree structure).  To use simply replace any instances where the previous "Save XML" vi was used with the new vi.</p>
<p>Enjoy,</p>
<p>Randy</p>
<p><a href="http://lavag.org/old_files/post-3040-1153346994.vi" rel="">Download File:post-3040-1153346994.vi</a></p>
]]></description><guid isPermaLink="false">3632</guid><pubDate>Wed, 19 Jul 2006 23:09:24 +0000</pubDate></item><item><title>QR code with database</title><link>https://lavag.org/topic/19461-qr-code-with-database/</link><description><![CDATA[<p>hello, im new in LabVIEW and i have a research can you help me ? i need to connect the qr code to a database how can make a code of it i mean the situation is if the qr code reader read the code it will go to the database and see if data that he reads is valid and the qr code will display a word valid. thank you in advance please i need your help <img src="https://lavag.org/uploads/emoticons/default_sad.png" alt=":("> this is the diagram of the qr code reader <img src="https://lavag.org/uploads/emoticons/default_sad.png" alt=":("></p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_02_2016/post-54460-0-45691400-1455384507.jpg" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_02_2016/post-54460-0-45691400-1455384507.jpg" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=10978" class="ipsImage ipsImage_thumbnailed" alt="post-54460-0-45691400-1455384507.jpg"></a></p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_02_2016/post-54460-0-06557000-1455384513.jpg" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_02_2016/post-54460-0-06557000-1455384513.jpg" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=10979" class="ipsImage ipsImage_thumbnailed" alt="post-54460-0-06557000-1455384513.jpg"></a></p>
]]></description><guid isPermaLink="false">19461</guid><pubDate>Sat, 13 Feb 2016 17:28:35 +0000</pubDate></item><item><title>SQLite open and Read</title><link>https://lavag.org/topic/19399-sqlite-open-and-read/</link><description><![CDATA[<p>A new SQLite question:</p>
<p> </p>
<p>I have, during testing, created several multi-GB files which I can use for read testing.  I notice that upon first access (after loading LabVIEW) the query to get data takes sometimes exactly as long as if the file was not indexed at all.  Subsequent reads are fast (drops from 30sec to 100 msec).</p>
<p> </p>
<p>1) Has anyone else seen this?</p>
<p>2) Is this normal (Loading Index into memory)</p>
<p>3) How do I make the first file access fast?</p>
<p> </p>
<p>Shane</p>
]]></description><guid isPermaLink="false">19399</guid><pubDate>Tue, 12 Jan 2016 12:25:18 +0000</pubDate></item><item><title>Newbie question regarding SQL queries</title><link>https://lavag.org/topic/19391-newbie-question-regarding-sql-queries/</link><description><![CDATA[<p>My question relates to retrieving decimated data from the database.</p>
<p> </p>
<p>Given the case where I have 1M X and 1M Y steps (a total of 1000000M data points per channel) how do I efficiently get a decimated overview of the data?</p>
<p> </p>
<p>I can produce the correct output data be using</p>
<p> </p>
<p>Select X,Y,Z,Float1 from P</p>
<p>WHERE X=0</p>
<p>GROUP BY Y/1000</p>
<p> </p>
<p>This will output only 1x1000 data instead of 1x1000000 datapoints, one dimension quickly decimated  Problem is that is iterates over all data (and this takes quite some time).  If I do a different query to retrieve only 1000 normal points, it executes in under 100ms.</p>
<p> </p>
<p>I would like to use a CTE to do this, thinking that I could address directly the 1000 elements I am looking for.</p>
<pre>WITH RECURSIVE  cnt(x) AS (     SELECT 0     UNION ALL     SELECT x+1000 FROM cnt      LIMIT 1000  )WHAT GOES HERE?;</pre>
<p>So if I can create a cte with column x containing my Y Indices then how do I get from this to directly accessing</p>
<p>Float1 FROM P WHERE X=0 AND Y=cte.x</p>
<p> </p>
<p>SELECT Float1 from P WHERE X IN (SELECT x FROM cnt) AND Y=0 AND Z=0</p>
<p>Using the "IN" statement is apparently quite inefficient (and seems to return wrong values).  Any ideas?</p>
<p> </p>
<p>In addition, accessing even a small number of data points from within an 8GB SQL File (indexed!) is taking upwards ot 30 seconds to execute at the moment.  With 1.5GB files it seemed to be in the region of a few milliseconds.  Does SQLite have a problem with files above a certain size?</p>
]]></description><guid isPermaLink="false">19391</guid><pubDate>Fri, 08 Jan 2016 13:25:24 +0000</pubDate></item><item><title>SQLite Ring Buffer</title><link>https://lavag.org/topic/19394-sqlite-ring-buffer/</link><description><![CDATA[<p>In the spirit of all the DB discussion yesterday which has coincided well with some tools I've been working on this week, I've got a question of my own.</p>
<p> </p>
<p>Essentially I just want to make a ring buffer stored in an SQLite database (sure, it could be any type of db) to buffer some data acquisition for use as pre-trigger data as well as a local window.  With that in mind I added a trigger to ShaunR's Data Logging Example and increased the decimation factor high enough to not decimate (didn't want to mess with the rest of the example).  The trigger code is below for a buffer of 1000 entries.  Now, this seems to work fine and not blow up the size of the db or anything with my limited testing, but are there any issues with simply deleting preceding rows and allowing <em>rowid </em>to continue increasing?  If there is an issue with this implementation, what proposed solutions do you have?  I could create pointers and such and manually iterate around in <abbr title="LabVIEW">LV</abbr> when inserting, but I really want the db to handle this and have it be transparent to my application.</p>
<p> </p>
<p>I have an understanding of writing to and querying db's and use them a lot for test specs and results, dynamic field population, etc., but I haven't done much in regards to buffering or storing acquired data and am working on exploring how doing more work on the db side can make things easy on the <abbr title="LabVIEW">LV</abbr> side.</p>
<pre class="ipsCode prettyprint">
DELETE FROM graph WHERE rowid%1000=NEW.rowid%1000 AND rowid!=NEW.rowid;
</pre>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_01_2016/post-19157-0-34551600-1452351643.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_01_2016/post-19157-0-34551600-1452351643.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=10906" class="ipsImage ipsImage_thumbnailed" alt="post-19157-0-34551600-1452351643.png"></a></p>
]]></description><guid isPermaLink="false">19394</guid><pubDate>Sat, 09 Jan 2016 15:06:33 +0000</pubDate></item><item><title>Database toolkit - retry mechanism?</title><link>https://lavag.org/topic/19294-database-toolkit-retry-mechanism/</link><description><![CDATA[<div style="margin:0px;color:rgb(51,51,51);font-family:Arial;font-size:12px;"><div style="margin:0px;"><span>Hello gurus,</span></div></div>
<div style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:Arial;font-size:12px;"><div style="margin:0px 0px 10px;">
<p>The following is part of a database read/write design aspect, and hope that you're able to help me find solutions :-)  I have a couple of my own, but would like to see what others may come up with.</p>
<p> </p>
<p>Details:</p>
<p>I have been able to successfully use DB toolkit  vi's to read/write to an SQL database. Everything works as per the design -mostly- . The last piece I have yet to implement is the "retry-mechanism": what if during the WRITE action my database happens to be unavailable? do I save the data to a flat file and upon "reconneciton" I flush the records? this sounds quite simple, doesn't it?</p>
<p> </p>
<p>This is the piece I'm trying to figure out. If you've done something like this already, would you please share your approach?</p>
<p> </p>
<p>In advance, thank you.</p>
</div></div>
<p> </p>
]]></description><guid isPermaLink="false">19294</guid><pubDate>Wed, 28 Oct 2015 19:23:25 +0000</pubDate></item><item><title>SQLite releases JSON features</title><link>https://lavag.org/topic/19275-sqlite-releases-json-features/</link><description><![CDATA[<p>SQLite has added <a href="https://www.sqlite.org/json1.html" rel="external nofollow">the json1 extension</a> module in the source tree. It implements eleven SQL functions and two <a href="https://www.sqlite.org/vtab.html#tabfunc2" rel="external nofollow">table-valued functions</a> that are useful for managing <a href="http://json.org/" rel="external nofollow">JSON</a> content stored in an SQLite database.</p>
<p> </p>
<p>This is a huge feature feature improvement that effectively allows transparent queries of embedded JSON strings in the DB and will be of special interest to LabVIEW web enabled applications with SQLite back-ends for direct to DB insertions and remote queries. It achieves an impressive pars speed of over 300 MB/s (allegedly)</p>
]]></description><guid isPermaLink="false">19275</guid><pubDate>Mon, 19 Oct 2015 13:14:12 +0000</pubDate></item><item><title>Write to Binary File Cluster Size [x-post to ni forums]</title><link>https://lavag.org/topic/19255-write-to-binary-file-cluster-size-x-post-to-ni-forums/</link><description><![CDATA[<p>Edit: found this in context help: <span style="color:rgb(0,0,0);font-family:Verdana, Helvetica, sans-serif;font-size:11px;">Arrays and strings in hierarchical data types such as clusters always include size information.</span></p>
<p> </p>
<p><a href="http://forums.ni.com/t5/LabVIEW/Write-to-Binary-File-Cluster-Size/td-p/3199224" rel="external nofollow">http://forums.ni.com/t5/LabVIEW/Write-to-Binary-File-Cluster-Size/td-p/3199224</a></p>
<p> </p>
<p><span style="color:rgb(51,51,51);font-family:Arial;font-size:12px;">I have a cluster of data I am writing to a file (all different types of numerics, and some U8 arrays). I write the cluster to the binary file with prepend array size set to false. It seems, however, that there is some additional data included (probably so LabVIEW can unflatten back to a cluster). I have proven this by unbundling every element and type casting each one, then getting string lengths for the individual elements and summing them all. The result is the correct number of bytes. But, if I flatten the cluster to string and get that length, it's 48 bytes larger and matches the file size. Am I correct in assuming that LabVIEW is adding some additional metadata for unflattening the binary file back to a cluster, and is there any way to get LabVIEW to </span><em>not</em><span style="color:rgb(51,51,51);font-family:Arial;font-size:12px;"> do this?</span></p>
]]></description><guid isPermaLink="false">19255</guid><pubDate>Fri, 02 Oct 2015 17:42:26 +0000</pubDate></item><item><title>Saving data in TDMS</title><link>https://lavag.org/topic/19230-saving-data-in-tdms/</link><description><![CDATA[<p>I'm currently investigating using TDMS as a data storage for a new measurement method.  In our routine, we sweep up to 3 outputs (with X, Y and Z points each) and record up to 24 channels so we have XxYxZx24 datapoints.</p>
<p> </p>
<p>We create the following:</p>
<p>Up to X data points for 24 channels of data interleaved in the first dimension (multichannel 1D)</p>
<p>Up to Y times this first dimension (making the data multichannel 2D)</p>
<p>Up to Z times this second dimension (making the data multichannel 3D)</p>
<p> </p>
<p>So in a sense, we create 4D data.</p>
<p> </p>
<p>Trying to use our old method of storing the data in memory fails quickly when the number of steps in each dimension increases.  So we want to store them in TDMS files.  But looking at the files and trying to  imagine what read speed will be like, I'm unsure how to best store this data.  DO I need multiple TDMS files?  A single file? How to map the channels / dimensions to theinternal TDMS structure?</p>
<p> </p>
<p>In a further step to my efforts, I would be investigating having the routine for retrieving any sub-set of this data (1D or 2D slices from any combination of dimensions but almost always one channel at a time.</p>
<p> </p>
<p>Can anyone with more experience with TDMS files give some input and help a TDMS noob out?</p>
]]></description><guid isPermaLink="false">19230</guid><pubDate>Fri, 18 Sep 2015 09:08:15 +0000</pubDate></item><item><title>Unzip the file that is password protected in labview</title><link>https://lavag.org/topic/19245-unzip-the-file-that-is-password-protected-in-labview/</link><description><![CDATA[<p>Hello, </p>
<p> </p>
<p>Can anyone help me.</p>
<p>I want to unzip the file that is password protected in labVIEW. It is not possible by using Unzip.vi. My OS is Microsoft 10, and I am using labVIEW 2014.</p>
<p> </p>
<p>Thanks in advance.</p>
]]></description><guid isPermaLink="false">19245</guid><pubDate>Mon, 28 Sep 2015 09:10:15 +0000</pubDate></item><item><title>Should File IO be handled by a central actor?</title><link>https://lavag.org/topic/19233-should-file-io-be-handled-by-a-central-actor/</link><description><![CDATA[<p>Following with the idea of division of responsibility. I designed my application such that each individual process in charge of controlling and acquiring data from a specific piece of hardware would send its acquired data to another actor who maintained all file references (TDMS files) and was responsible for opening and closing files, as well as saving the data to disk.</p>
<p> </p>
<p>A consequence of this decision is that someone wanting to introduce a new piece of hardware + its corresponding control code must go further than just dropping a plugin that meets the communication contract into a directory. They must implement all the file IO stuff in the file IO process.</p>
<p> </p>
<p>The thought has entered my mind that perhaps it would be better to make File IO the responsibility of the plugin that wants to save acquired data. So each individual process would implement a sub loop for saving its own data. The template for plugins would then include the basic file IO stuff required so it would be much easier for someone to just modify the data types to be saved.</p>
<p> </p>
<p>My goal here is ease of maintenance/extension.</p>
<p> </p>
<p>The most important consideration for me apart from ease of extension is whether having a bunch of independant processes talking to the OS will be more CPU heavy than one single actor (who is an intermediary between the OS and all the other processes).</p>
<p> </p>
<p>Does anyone have any experience in this area?</p>
]]></description><guid isPermaLink="false">19233</guid><pubDate>Sun, 20 Sep 2015 23:33:11 +0000</pubDate></item><item><title>PDF Generate</title><link>https://lavag.org/topic/12948-pdf-generate/</link><description><![CDATA[<p>I need help PDF Generate....please, can someone help me?</p>]]></description><guid isPermaLink="false">12948</guid><pubDate>Thu, 26 Aug 2010 23:47:54 +0000</pubDate></item><item><title>How to program after inputting text/excel file</title><link>https://lavag.org/topic/19105-how-to-program-after-inputting-textexcel-file/</link><description><![CDATA[<p>Hello,</p>
<p> </p>
<p>I am having trouble on learning what to do after you input a file into labVIEW. I cannot seem to find help on this topics. I have seen many videos and tutorials on how to read and write excel/text (.csv) files. But, I am not able to do anything after importing an text/excel file into labVIEW.</p>
<p> </p>
<p>So, I was wondering if someone had a simple VI that they could share. In the end, I want to do some automation so it will read a number and a status from excel. And then that number and status will either turn on or off a switch which controls something else. </p>
<p> </p>
<p>Anyways, I would greatly appreciate if someone could share a VI as an example of how to manipulate the data to control something after you import a text/excel file into labVIEW.</p>
]]></description><guid isPermaLink="false">19105</guid><pubDate>Wed, 15 Jul 2015 00:53:08 +0000</pubDate></item><item><title>XML-Schema (XSD) to Cluster</title><link>https://lavag.org/topic/18025-xml-schema-xsd-to-cluster/</link><description><![CDATA[<p>Hi, </p>
<p> </p>
<p>i'm trying to read and write XML-Files with LabView. I figured out that JKI EASY XML helps a lot. Still i have to create a cluster describing the structure of the XML-File i want to read or write. </p>
<p> </p>
<p>I have a large XML-Schema describing the structure of the XML-File. Is there any way to create the cluster automatically? The manual work would be a lot of effort. I thought about creating the cluster dynamically but it seems to be not possible within labview. Another option could be to edit the .vi file using other software/programming language but at least with a text editor i couldn't achieve readable code. Is the file format documented?</p>
<p> </p>
<p>Any ideas?</p>
<p> </p>
<p>Thanks</p>
<p> </p>
<p>Sebastian </p>
]]></description><guid isPermaLink="false">18025</guid><pubDate>Fri, 21 Feb 2014 11:07:33 +0000</pubDate></item><item><title>Connecting to an SQL Server Compact 3.5 database</title><link>https://lavag.org/topic/8524-connecting-to-an-sql-server-compact-35-database/</link><description><![CDATA[<p>Hi everyone. I was wondering if anyone has had any experience connecting to an SQL Server Compact 3.5 database using the LabVIEW database connectivity toolkits. I cannot figure out a way to created a valid connection string or if I let the "open connection to db" vi prompt me for connection info I cannot figure how to configure it.</p>
<p>Thanks in advance for all the help.</p>
<p>Michael</p>
]]></description><guid isPermaLink="false">8524</guid><pubDate>Fri, 26 Sep 2008 15:00:24 +0000</pubDate></item><item><title>Disconnect all typedefs in a CTL</title><link>https://lavag.org/topic/9808-disconnect-all-typedefs-in-a-ctl/</link><description><![CDATA[<p>Hi</p>
<p>I use a very large cluster, consisting of many nested type definitions. For this cluster, I keep the complete version history, i.e. each version of the cluster is a separate file. In this file, however, I no longer want to autoupdate the nested clusters when my typedefs change. That's why I'm disconnecting all the typedefs each time I create a new file (new version).</p>
<p>This takes quite a lot of time. Can you think of a simple way how to do this "batch disconnection" more simply?</p>
<p>Vladimir</p>
]]></description><guid isPermaLink="false">9808</guid><pubDate>Wed, 01 Apr 2009 15:11:24 +0000</pubDate></item><item><title>Sum to values from a .csv and save it to a new .csv file</title><link>https://lavag.org/topic/18861-sum-to-values-from-a-csv-and-save-it-to-a-new-csv-file/</link><description><![CDATA[<p>Hello,</p>
<p>I need to select a <em>.csv file</em> which has two integers seperated through a comma per line. I have to sume these to values and write it to a new <em>.csv file</em> with the two integers and as third position the result. I have a path selector and a read from spreadsheet and a write to spreadsheet element. But I do not know how to read the two values line per line and add those to values with the result in a new <em>.csv file</em>. </p>
<p> </p>
<p><strong>For example:</strong></p>
<p><u>input:</u></p>
<pre class="ipsCode prettyprint">
A,B
1,3
2,6
3,3</pre>
<p><u>output:</u></p>
<pre class="ipsCode prettyprint">
A,B,C
1,3,4
2,6,8
3,3,6</pre>
<p>I hope that somebody can help me.</p>
<p> </p>
<p>Thanks for your help!<br>Greets from Austria,</p>
<p>Fabian</p>
]]></description><guid isPermaLink="false">18861</guid><pubDate>Thu, 05 Mar 2015 18:11:38 +0000</pubDate></item><item><title>Error -2539 trying to open multiple references to the same TDMS file with the Advanced TDMS palette.</title><link>https://lavag.org/topic/18802-error-2539-trying-to-open-multiple-references-to-the-same-tdms-file-with-the-advanced-tdms-palette/</link><description><![CDATA[<p>Hi guys,</p>
<p> </p>
<p>So I have an application that uses TDMS for data-logging. There's a continuous memory leak as I write new data. It's alleviated somewhat by setting disk cache high for each channel, but as I'm acquiring data continuously over long periods of time, this isn't a great long-term solution.</p>
<p> </p>
<p>I've tried switching over to the Advanced TDMS palette, but I'm having a lot of trouble getting an implementation going. A single TDMS file is accessed concurrently by multiple processes. Ideally, I want each process to open its own reference to the file. This wasn't a problem with the standard TDMS palette, but I'm getting errors with the Advanced palette.</p>
<p> </p>
<p>For example, error -2539 states:</p>
<p> </p>
<p>"LabVIEW:  This file cannot be written to, because it is opened and locked by another thread or process. This typically happens when a file is written by a hardware driver, for example NI-DAQmx."</p>
<p> </p>
<p>Is concurrent access not allowed in the "Advanced" palette? Or do I need to do additional work in the Open step to allow concurrent access?</p>
]]></description><guid isPermaLink="false">18802</guid><pubDate>Wed, 04 Feb 2015 21:55:24 +0000</pubDate></item><item><title>Closing the node out reference from Get First Matched Node</title><link>https://lavag.org/topic/18768-closing-the-node-out-reference-from-get-first-matched-node/</link><description><![CDATA[<p>Hi all,</p>
<p> </p>
<p>I'm having problems with a program I've written that hangs after some period of running. The program is fairly simple but it does a lot of xml parsing so to fix the problem I'm looking for things like references that are not closed. I have found one unclosed reference in one of my subVI:s but I can't close it without breaking the program so I look to you for help.</p>
<p> </p>
<p>The reference in question is the "Node Out" reference in the NI_XML.lvlib:Get First Matched Node.vi marked in the attached file CloseRef. What I would like to do is really to wire it to the invoke node (and not use the "Refnum in" there) but that does not work because somehow the reference has changed from a document reference to a node reference. If I just close the "Node Out" reference my program doesn't work (I guess it kills the "Refnum in" reference which I need later on).</p>
<p> </p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_01_2015/post-16628-0-03134700-1422206658.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_01_2015/post-16628-0-03134700-1422206658_thumb.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=9894" class="ipsImage ipsImage_thumbnailed" alt="post-16628-0-03134700-1422206658_thumb.p"></a></p>
<p> </p>
<p>Any ideas on how I could handle the matter?</p>
<p>Maybe this is not the cause of the program hanging but it's the best candidate I found so far.</p>
<p> </p>
<p>Thanks</p>
<p>Martin</p>
<p> </p>
<p> </p>
]]></description><guid isPermaLink="false">18768</guid><pubDate>Sun, 25 Jan 2015 17:25:21 +0000</pubDate></item><item><title>Data-Logging on myRIO FPGA in LabVIEW</title><link>https://lavag.org/topic/18758-data-logging-on-myrio-fpga-in-labview/</link><description><![CDATA[<p>Hi all,</p>
<p> </p>
<p>I am trying to log files to some tdms file in myRIO. I got the code setup in myRIO FPGA side and the RT vi (both attached below). I have the Real TIme code working but I can't seem to get the data-logging VI working (it tells me I have a lot of broken wires and methods not supported in target). Please take a look at the RT Current Control.vi code and see if there is something I am missing.</p>
<p>Thank you!</p>
<p><a href="https://lavag.org/applications/core/interface/file/attachment.php?id=9877" data-fileid="9877" rel="">RT Current Control.vi</a></p>
<p><a href="https://lavag.org/applications/core/interface/file/attachment.php?id=9878" data-fileid="9878" rel="">Current Control.vi</a></p>
]]></description><guid isPermaLink="false">18758</guid><pubDate>Wed, 21 Jan 2015 01:42:20 +0000</pubDate></item><item><title>Wiki Documentation Generation</title><link>https://lavag.org/topic/18754-wiki-documentation-generation/</link><description><![CDATA[<p>The <abbr title="LabVIEW">LV</abbr> Report Generation Toolkit has a built-in documentation tool. It can even build it up into HTML formatting. Has anyone ever looked into / developed/ brainstormed how this could either be adapted and/or influence a wiki documentation tool?</p>
<p> </p>
<p>I was thinking about something that would output the text to be copied into a wiki editor along with a folder full of all images/items that need to be uploaded to link to.</p>
<p> </p>
<p>To extend this page links and hierarchy could be built based on Library / Project / VIPM Package structure.</p>
<p> </p>
<p>Thoughts?</p>
]]></description><guid isPermaLink="false">18754</guid><pubDate>Mon, 19 Jan 2015 21:02:37 +0000</pubDate></item><item><title>Read spreadsheet file with text delimiter</title><link>https://lavag.org/topic/18638-read-spreadsheet-file-with-text-delimiter/</link><description><![CDATA[<p>Hi!,</p>
<p>   I have a problem with a spreadsheet file.</p>
<p>I need to import a tabulated file that contain some text fileds with a EOL inside.<br>I've tried exporting that file in csv with a text delimiter such as " but the problem is how to import the file makin labview recognize the text field and so ignore the EOL in the text field.</p>
<p>At the moment with normal spreadsheet VI's i get a new line when i have a text field with an EOL character.</p>
<p>Is there any solution for my problem?</p>
<p> </p>
<p> </p>
<p>EXAMPLE:</p>
<div>88<span> </span>250 P<span> </span>A2 1971<span> </span>1-lug-1990<span> </span>Tenax<span> </span>D 250 P<span> </span>DP<span> </span>"Testa con passaggio acqua</div>
<div>Monta Verin D. 60 corsa lunga"<span> </span>110 x 110<span> </span>345<span> </span>Tenax 1</div>
<div> </div>
<div>the above text return me two line 'cause "Testa con passaggio acqua EOL Monta Verin D. 60 corsa lunga" is a single text field and the EOL must be ignored.</div>
<div> </div>
<p>thank you!</p>
<p> </p>
<p>Geppo!</p>
]]></description><guid isPermaLink="false">18638</guid><pubDate>Wed, 19 Nov 2014 07:47:44 +0000</pubDate></item><item><title>XML via API</title><link>https://lavag.org/topic/18626-xml-via-api/</link><description><![CDATA[<p>I am creating an XML output and using API. I have succes with adding attributes to the 'testsuite' tag, but I cannot find the right construction to add attributes to the child - e.g. the child 'testcase' tag. Anyone have success with this?</p>
<p> </p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_11_2014/post-52955-0-29414000-1415693116.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_11_2014/post-52955-0-29414000-1415693116_thumb.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=9695" class="ipsImage ipsImage_thumbnailed" alt="post-52955-0-29414000-1415693116_thumb.p"></a></p>
]]></description><guid isPermaLink="false">18626</guid><pubDate>Tue, 11 Nov 2014 08:06:33 +0000</pubDate></item><item><title>table of time</title><link>https://lavag.org/topic/18564-table-of-time/</link><description><![CDATA[<p>hi everybody!</p>
<p>it's my first post here and i wish you can help me!</p>
<p>l'm programming a vi that record, register every modification happened in a table(indicator from a database) </p>
<p>in other words, if i want to modify the element (1,1) for exemple, of a 2D table, it records the modification and the delay between 2 successive modifications! </p>
<p>the attached vi, can expain what i want to do (temps evenement) !! so my probleme here is how can i replace the controle table to another indicator table from a database! (temps evenement1)</p>
<p> </p>
<p>i will be grateful if you can help me! <img src="https://lavag.org/uploads/emoticons/default_smile.png" alt=":)"></p>
<p> </p>
<p> </p>
<p><a href="https://lavag.org/applications/core/interface/file/attachment.php?id=9576" data-fileid="9576" rel="">temps evenement.vi</a></p>
<p><a href="https://lavag.org/applications/core/interface/file/attachment.php?id=9577" data-fileid="9577" rel="">temps evenement1.vi</a></p>
<p><a href="https://lavag.org/applications/core/interface/file/attachment.php?id=9578" data-fileid="9578" rel="">base de donnÃ©e SS-VI.vi</a></p>
]]></description><guid isPermaLink="false">18564</guid><pubDate>Wed, 08 Oct 2014 16:24:18 +0000</pubDate></item><item><title>Buggy TDMS example shipped with LabVIEW?</title><link>https://lavag.org/topic/18521-buggy-tdms-example-shipped-with-labview/</link><description><![CDATA[<p>So either I really don't understand how TDMS VIs work, or there is an issue with the examples shipped with LabVIEW.</p>
<p> </p>
<p>If you open <strong>TDMS Advanced - Finite Asynchronously Read.vi</strong> you'll see that it asks to run <strong>TDMS Advanced - Asunchronously Write.vi</strong> first. I ran it and understood that channel 1 was being given the following values: 0,2,4,6,... which is confirmed when the Viewer opens. (and channel 2 takes 1,3,5,7,...)</p>
<p> </p>
<p>However when I then ran the Read example, the values for channel 1 became 0,1,2,3,4,... so it fetched samples from channel 1 and from channel 2.</p>
<p> </p>
<p>So is there a bug, or did I misunderstand how the <strong>Set Next Read Position</strong> works? I thought the <strong>channel name in</strong> input allows me to specify what channel I want to read samples from...</p>
<p> </p>
<p>Your insights would be much appreciated!</p>
]]></description><guid isPermaLink="false">18521</guid><pubDate>Thu, 18 Sep 2014 17:25:44 +0000</pubDate></item><item><title>LVHDF5 1.0</title><link>https://lavag.org/topic/18514-lvhdf5-10/</link><description><![CDATA[<p style="color:rgb(0,0,0);font-family:Arial;font-size:12px;">It's been a long time in coming, but I have completed a new version of the HDF5 Toolkit for LabVIEW that was first released in 2006. The aptly named LVHDF5 Toolkit (version 1.0) is a hefty redesign of the original toolkit (version 0.9) and should solve most of the performance issues with that library while maintaining the flexibility of the the original design.</p>
<br><p style="color:rgb(0,0,0);font-family:Arial;font-size:12px;"> </p>
<br><p style="color:rgb(0,0,0);font-family:Arial;font-size:12px;">The toolkit is free to use but does have restrictions on redistribution.</p>
<br><p style="color:rgb(0,0,0);font-family:Arial;font-size:12px;"> </p>
<br><p style="color:rgb(0,0,0);font-family:Arial;font-size:12px;"><a href="http://www.upvi.net/main/index.php/products/lvhdf5" rel="external nofollow">http://www.upvi.net/main/index.php/products/lvhdf5</a></p>
<br><p style="color:rgb(0,0,0);font-family:Arial;font-size:12px;"> </p>
<br><p style="color:rgb(0,0,0);font-family:Arial;font-size:12px;">In particular, I'd like to thank the members of LAVA who worked on xnodes. I've been lurking on the xnode-related pages pages for the past three or four years while slowly building up this revamped toolkit. It would not have been possible without their efforts.</p>
<br>]]></description><guid isPermaLink="false">18514</guid><pubDate>Tue, 16 Sep 2014 16:41:59 +0000</pubDate></item><item><title>Optimizing Read time of TDMS files</title><link>https://lavag.org/topic/18484-optimizing-read-time-of-tdms-files/</link><description><![CDATA[<p>Hi,</p>
<p> </p>
<p>I am investigating the possibility of using TDMS files as a kind of giant circular buffer that would be too big to fit in a live 2D array of some sort. Of course the other reason is to have those data saved for when the application restarts.</p>
<p> </p>
<p>A single location in the application will be responsible for writing in the file. This would consist of a loop that writes either one or a few samples for all the channels at each iteration. I successfully achieved this with good performance by setting the data layout input of the Write function to Interleaved.</p>
<p> </p>
<p>On the read side, few locations might need to access the files, but only on event, so this won't be a frequent operation. However it should still be fast enough since I don't want the user to wait several seconds before being able to visualize the data. My tests have revealed that this operation is slow when data are interleaved. Here are the details:</p>
<p> </p>
<p># Channels: 500 (all in one group and the file contains only this group)</p>
<p># Samples for each channel contained in the file: 100 000</p>
<p>Data type: SGL floats (I'm not using Waveforms)</p>
<p> </p>
<p>Read operation:</p>
<p># Channel to read: 1</p>
<p># Samples to read: all (count=-1 and offset=0)</p>
<p> </p>
<p>The time to retrieve the data is 1700 ms. (3500 if using DBL, it's quite linear...)</p>
<p> </p>
<p>If I generate the file with just one Write (feeding a 2D array) in Interleave mode, I also get 1700ms, so this doesn't depend on how the file is written at the first place.</p>
<p>If I generate the file with just one Write (feeding a 2D array) in Decimated mode, this time I get 7ms!!</p>
<p> </p>
<p>It makes sense that the operation is faster since all the data to retrieve occupy a contiguous area on the hard drive.</p>
<p> </p>
<p>My 2 questions are:</p>
<p>- Is there a way to keep Interleaved layout while optimizing - significantly - the Read performance?</p>
<p>- If not, i.e. if I need to switch to Decimated, how can I write one or a few samples for all channels at each operation (I haven't managed to achieve this so far).</p>
<p> </p>
<p>I should mention that I did manage to optimize things a little bit by using the advanced API, setting the channels information, and reserving the file size, but this only reduced the read time by 12%.</p>
<p> </p>
<p>Thank you for your help!</p>
<p> </p>
]]></description><guid isPermaLink="false">18484</guid><pubDate>Fri, 05 Sep 2014 22:14:10 +0000</pubDate></item><item><title>Local Historical Cache</title><link>https://lavag.org/topic/18525-local-historical-cache/</link><description><![CDATA[<p>Our company uses SQL servers to log all the data for our test fixtures.  Quality would like me to create a "Data Analysis" tool to monitor daily stats, and have the option of looking at the past 30 days worth of data.</p>
<p> </p>
<p>Currently, I have been asked to start with just one line (3 test fixtures), which can have 1000 entries each day (some days there are none).  In the future this can grow significantly to other fixtures.</p>
<p> </p>
<p>IT has asked that I not run a 30 day query every day to update the rolling 30 day stats, a local cache is desired and only the previous days test data will be queried.</p>
<p> </p>
<p>My current plan:</p>
<p> </p>
<p>Have a folder in which each Date is a unique file.  I can List all the files in the folder, get any dates between the current date and the newest file via SQL query, then delete any files that are past the "# of Days to Store" ini file value.  This will save me from indexing through the date column of a huge file to delete old data.</p>
<p> </p>
<p>In order to prevent running analysis on each date every time the historical view is called, I was thinking I could create sections in each Date file (what Quality has asked for on each date):</p>
<p> </p>
<p>FPY Stats</p>
<p>All Data</p>
<p>Failure Only</p>
<p>SN that were tested more than once</p>
<p> </p>
<p>Then when the Quality Engineer wants the past 30 days FPY, I get the FPY section of each date in the folder.</p>
<p> </p>
<p>Has anyone implemented anything like this before in their application?  I am looking for ideas on how to best approach it or does my current idea seem reasonable.</p>
]]></description><guid isPermaLink="false">18525</guid><pubDate>Fri, 19 Sep 2014 13:29:53 +0000</pubDate></item><item><title>File Dialog Express VI hangs</title><link>https://lavag.org/topic/18471-file-dialog-express-vi-hangs/</link><description><![CDATA[<p>Hi,</p>
<p> </p>
<p>I have problems with the File Dialog Express VI in executibles. It often freezes for 30-60 seconds. This behaviour is more frequent in Windows 8.1. I have found this: <a href="http://lavag.org/topic/16924-built-application-occasionally-freezes-on-windows-opensave-dialog/" rel="">http://lavag.org/topic/16924-built-application-occasionally-freezes-on-windows-opensave-dialog/</a> but there is no solution. </p>
<p> </p>
<p><span style="color:rgb(40,40,40);font-family:helvetica, arial, sans-serif;">Has anyone else noticed this behavior or know how to fix it?</span></p>
]]></description><guid isPermaLink="false">18471</guid><pubDate>Tue, 02 Sep 2014 11:55:29 +0000</pubDate></item><item><title>Problem when try to read Interbase Data on Windows 7</title><link>https://lavag.org/topic/18462-problem-when-try-to-read-interbase-data-on-windows-7/</link><description><![CDATA[<p>Hello,</p>
<p> </p>
<p>My name is Fedly Chan.</p>
<p>Currently, I am facing problem when I try to read Interbase Data on Windows 7 (that act as server).</p>
<p> </p>
<p>I created program to access Interbase data on Server, with Labview Ver.4. The program could display accessed data, and also can manipulate the data (create, delete, update). The server is using Windows XP. The program access the Interbase data also from Computer that run with Windows XP.</p>
<p> </p>
<p>I have plan to change the Server into Windows 7.</p>
<p> </p>
<p>I tried to access the Interbase data from the Server (Windows 7).</p>
<p>But error message appear : "100 CINLoad dll setup error."</p>
<p>It seemed that I need to install the SQL Toolkids on the Server, SQL Toolkids that work under Windows 7. I tried to install SQL Toolkids (the old version that I have with me) on the Windows7, but it did not work, it said that because of the different environment.</p>
<p> </p>
<p>Frankly, when I check the price for this SQL Toolkids, it's quite expensive, can somebody help me with this problem...</p>
<p> </p>
<p>Many thanks,</p>
<p>Fedly Chan.</p>
<p>(jsum0702@gmail.com)</p>
]]></description><guid isPermaLink="false">18462</guid><pubDate>Fri, 29 Aug 2014 04:02:23 +0000</pubDate></item><item><title>Error 505 at DB Tools Close Connection</title><link>https://lavag.org/topic/18456-error-505-at-db-tools-close-connection/</link><description><![CDATA[<p>Hi all, </p>
<p> </p>
<p>I have an error that doesn't affect the functionality of my program, so for the moment I'm just ignoring it, but anyway I would like to know what is its cause and how can I solve it, or if it's safe to ignore it.</p>
<p> </p>
<p>I have a program that makes some tests and stores the data in some clusters, and then when the job is done it writes everything in a database. Then it asks if you want to start another job or end the program. Up to there everything works perfect. But if you choose to start another job without closing the program, after you complete it there's an error at the end of the database writing. The error is this:</p>
<p> </p>
<p><strong><span style="font-size:14px;">Error 505 occurred at NI_Database_API.lvlib:DB Tools Close Connection.vi-&gt;Escritura DB.vi-&gt;Interfaz Principal.vi</span></strong></p>
<p> </p>
<p><strong><span style="font-size:14px;">Possible Reason: Open Command Object.</span></strong></p>
<div> </div>
<div><strong>ADO Error: 0x000001F9</strong></div>
<div> </div>
<p>As you can see in the attached image, in my database writing subVI I only open connection, use two "Insert Data" blocks and then close connection. I don't have any command references to use the Free Object block, so I don't know what's wrong.</p>
<p> </p>
<p>Thanks in advance for any help. </p>
<p> </p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_08_2014/post-51439-0-58583200-1409154427.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_08_2014/post-51439-0-58583200-1409154427_thumb.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=9454" class="ipsImage ipsImage_thumbnailed" alt="post-51439-0-58583200-1409154427_thumb.p"></a></p>
]]></description><guid isPermaLink="false">18456</guid><pubDate>Wed, 27 Aug 2014 16:24:22 +0000</pubDate></item><item><title>Recordset Open method freezes</title><link>https://lavag.org/topic/18388-recordset-open-method-freezes/</link><description><![CDATA[<p>Dear LabVIEW enthusiasts,</p>
<p> </p>
<p>Our application uses .NET methods to access a SQL Server Express LocalDB database. It works, since we do manage to get the records we want. But on a regular basis, the Open method of the Recordset freezes for several seconds instead of executing within a few milliseconds like it usually does.</p>
<p> </p>
<p>I was able to determine that it was the Open method (and not the GetRows or the Close methods) by measuring the elapsed time as shown on the attached screenshot.</p>
<p> </p>
<p>Do you know if there is a known issue? I do have the Database Connectivity Toolkit but I have never used it, is there any chance this would fix my issue?</p>
<p> </p>
<p>Thank you</p>
<p> </p>
<p> </p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://lavag.org/uploads/monthly_07_2014/post-14511-0-19937600-1406757261.png" rel="external nofollow"><img src="https://lavag.org/uploads/monthly_07_2014/post-14511-0-19937600-1406757261_thumb.png" data-fileid="%7B___base_url___%7D/applications/core/interface/file/attachment.php?id=9406" class="ipsImage ipsImage_thumbnailed" alt="post-14511-0-19937600-1406757261_thumb.p"></a></p>
]]></description><guid isPermaLink="false">18388</guid><pubDate>Wed, 30 Jul 2014 21:57:30 +0000</pubDate></item><item><title>windows server 2008 r2 file permission problems</title><link>https://lavag.org/topic/18384-windows-server-2008-r2-file-permission-problems/</link><description><![CDATA[<p>Hi all,</p>
<p> </p>
<p>I am working on a project in which I need to create files dynamically, say text files for each measurement. As these files are created dynamically, these are 'owned' by created user. From the same user I can read, write these files.</p>
<p> </p>
<p>But if I try to access these files from other user accounts, those accounts have only read permissions over the dynamically created files. But I need Write permissions. </p>
<p> </p>
<p><span style="font-size:14px;">Any suggestions to help achieve this functionality is appreciated.</span></p>
<p> </p>
<p>P.S.:This problem doesn't occur in windows 7.</p>
<p> </p>
<p>Thanks in advance,</p>
<p>Prabhakaran. <img src="https://lavag.org/uploads/emoticons/default_shifty.gif" alt=":shifty:"></p>
<p><a href="https://lavag.org/applications/core/interface/file/attachment.php?id=9400" data-fileid="9400" rel="">Main.vi</a></p>
]]></description><guid isPermaLink="false">18384</guid><pubDate>Wed, 30 Jul 2014 06:10:48 +0000</pubDate></item><item><title>cannot free memory after reading data from DB</title><link>https://lavag.org/topic/18331-cannot-free-memory-after-reading-data-from-db/</link><description><![CDATA[<p>Hi guys,</p>
<p> </p>
<p>i have a problem with full a memory after reading data from database. You can see a sql select brom DB, it is very simply select from dateStart to dateTo.</p>
<p> </p>
<p>I was trying use "Request Deallocation" but every time when i am reading data from a mounth or more my RAM memory is full-used and never deallocated. <br>Memory cam be deallocated when i quit from Labview.</p>
<p> </p>
<p>Thanks for helping</p>
<p><a href="https://lavag.org/applications/core/interface/file/attachment.php?id=9351" data-fileid="9351" rel="">Test SQL.vi</a></p>
]]></description><guid isPermaLink="false">18331</guid><pubDate>Fri, 04 Jul 2014 13:22:12 +0000</pubDate></item></channel></rss>
