<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: checking the matching text in the database in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709482#M324924</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;
&lt;HR /&gt;
jeyanthi wrote:&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;...is it can be dono using queries only.&lt;BR /&gt;
&lt;HR /&gt;
&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;Hi jeyanthi,&lt;/DIV&gt;
&lt;DIV&gt;i don´t understand it.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If you use the textfile method, you can for example store the last automatic used number. And if you need it you increase it and create the new number. Write the last used number at the end of your program to the file, so that you can read it the next time you start. Another soultion could be to scan the file for the last automatic used number.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Mike&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 20 May 2008 07:23:56 GMT</pubDate>
    <dc:creator>MikeS81</dc:creator>
    <dc:date>2008-05-20T07:23:56Z</dc:date>
    <item>
      <title>checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709359#M324866</link>
      <description>&lt;DIV&gt;hi need help..&lt;/DIV&gt;
&lt;DIV&gt;I have stnid=SED001,SED002,...&lt;/DIV&gt;
&lt;DIV&gt;sometimes let say there is no stnid it must store as SED9999/SED9998/...&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1)&lt;/DIV&gt;
&lt;DIV&gt;its like this if true i pass the stnid to the database.&lt;/DIV&gt;
&lt;DIV&gt;if false i must pass SED9999, if the database already have SED9999 it should store SED9999-1,...and so on&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;or i can use this &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2)&lt;/DIV&gt;
&lt;DIV&gt;let say the stnid is false ..i create a vi and ask the user to insert a stnid...and check the database the number is already stored or not.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;which one is better and how to that?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;plz help&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 May 2008 02:29:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709359#M324866</guid>
      <dc:creator>jeyanthi</dc:creator>
      <dc:date>2008-05-20T02:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709413#M324892</link>
      <description>Hi jeyanthi,&lt;BR /&gt;i think the solution depend on what you want to do. Is it an automatic process where you have less as possible user interactions, then i would prefer the first solution. If it is important that stnid correct, nobody has to change it later, then i would prefer the second solution.&lt;BR /&gt;Can you explain more about the background?&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Tue, 20 May 2008 05:06:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709413#M324892</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-20T05:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709435#M324900</link>
      <description>&lt;DIV&gt;hi mike i'm goin for the second option.&lt;/DIV&gt;
&lt;DIV&gt;let say the user insert&amp;nbsp;the stnid. &lt;/DIV&gt;
&lt;DIV&gt;now i have to check the database is the stnid is already stored or not stored. &lt;/DIV&gt;
&lt;DIV&gt;if stored i must pop up a message tell tht the number is already in use and user have to insert another stnid.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 May 2008 06:05:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709435#M324900</guid>
      <dc:creator>jeyanthi</dc:creator>
      <dc:date>2008-05-20T06:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709441#M324904</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi jeyanthi,&lt;/P&gt;
&lt;P&gt;is it a "real" database or a text file? If you have a database you can send an SQL command to it which search for your string. If you have a text file, then you can read in the data, and use for example the match pattern function.&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by MikeS81 on &lt;SPAN class="date_text"&gt;05-20-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:17 AM&lt;/SPAN&gt;</description>
      <pubDate>Tue, 20 May 2008 06:17:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709441#M324904</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-20T06:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709468#M324919</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi again.. sry to disturb if i use the 1st method without the user not doin anythg wen the data from text file convert to text file...is it can be dono using queries only.</description>
      <pubDate>Tue, 20 May 2008 06:59:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709468#M324919</guid>
      <dc:creator>jeyanthi</dc:creator>
      <dc:date>2008-05-20T06:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709482#M324924</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;
&lt;HR /&gt;
jeyanthi wrote:&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;...is it can be dono using queries only.&lt;BR /&gt;
&lt;HR /&gt;
&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;Hi jeyanthi,&lt;/DIV&gt;
&lt;DIV&gt;i don´t understand it.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If you use the textfile method, you can for example store the last automatic used number. And if you need it you increase it and create the new number. Write the last used number at the end of your program to the file, so that you can read it the next time you start. Another soultion could be to scan the file for the last automatic used number.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Mike&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 May 2008 07:23:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/709482#M324924</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-20T07:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/710376#M325284</link>
      <description>&lt;DIV&gt;let say i have stnid as unique key in database...how to check tht the station number already inserted to the database.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;i have attach the text file and the vi. i use&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;in the vi i pass the data to two tables one is stationlogews and stationinfoews.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;for stationlogews i dont have any problem currently.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;for stationinfoews it has to stationnumber as unique let say sed001 is inserted it not should insert again the same number..&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;how to do tht?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;and let say all the data is inserted to the database.. how to stop it from inserting for the second time running..&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 May 2008 10:31:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/710376#M325284</guid>
      <dc:creator>jeyanthi</dc:creator>
      <dc:date>2008-05-21T10:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/710380#M325286</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi jeyanthi,&lt;/P&gt;
&lt;P&gt;as a first step read your data. Than use the spreadsheet string to array function, you can use ";" as seperator. Delete all empty lines (onyl before and after a text block)&amp;nbsp;and read your specified position where you expect the sed00x entry and create an array of them. Then you can may be sort this array and check if an entry is already there.&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2008 10:48:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/710380#M325286</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-21T10:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/710396#M325292</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi jeyanthi,&lt;/P&gt;
&lt;P&gt;it´s a little bit different&amp;nbsp;as my description, but here is an example, which shows how you can read your sed elements.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;BR /&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2008 11:55:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/710396#M325292</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-21T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711062#M325576</link>
      <description>&lt;DIV&gt;thk u ..it look better than mine...&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/DIV&gt;
&lt;DIV&gt;i have another doubt let say i have empty field in the sed element,&lt;/DIV&gt;
&lt;DIV&gt;how i can store it as SED9999, SED9999-1,...how to do tht????&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 May 2008 04:03:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711062#M325576</guid>
      <dc:creator>jeyanthi</dc:creator>
      <dc:date>2008-05-22T04:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: checking the matching text in the database</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711096#M325595</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi jeyanthi,&lt;/P&gt;
&lt;P&gt;connect your data to a for loop and check for an empty element. If it is empty, use the "Format into String" function to create your new value.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/170/325595/1/Unbenannt1.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by MikeS81 on &lt;SPAN class="date_text"&gt;05-22-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:06 AM&lt;/SPAN&gt;</description>
      <pubDate>Thu, 22 May 2008 06:06:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711096#M325595</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-22T06:06:19Z</dc:date>
    </item>
    <item>
      <title>Calling the same function after one button dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711811#M325862</link>
      <description>&lt;DIV&gt;hi need help ..how to call the same function if i use&amp;nbsp; one button dialog .&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;need help plz.thk u&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 May 2008 02:27:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711811#M325862</guid>
      <dc:creator>jeyanthi</dc:creator>
      <dc:date>2008-05-23T02:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calling the same function after one button dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711885#M325903</link>
      <description>Hi jeyanthi,&lt;BR /&gt;when do you call this dialog? Why do you now speak about a database, i thought your data is from a text file? Can you please explain the relation between your text file and the database?&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Fri, 23 May 2008 06:55:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711885#M325903</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-23T06:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calling the same function after one button dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711946#M325918</link>
      <description>&lt;DIV&gt;hi Mike ..i have been ask to replace the auto inserting sed num to manual..&lt;/DIV&gt;
&lt;DIV&gt;example user have to insert a number by himself and aftr he insert i have ti check whethr the number already inserted or not.. tht y i called the function and dont knw how to call the same vi recursively...&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 May 2008 09:30:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/711946#M325918</guid>
      <dc:creator>jeyanthi</dc:creator>
      <dc:date>2008-05-23T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling the same function after one button dialog</title>
      <link>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/712018#M325948</link>
      <description>Hi jeyanthi,&lt;BR /&gt;here is a simple solution for you. I use the express vi to prompt for input, for a quick example, you can change it with your customized input vi.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Mike</description>
      <pubDate>Fri, 23 May 2008 12:16:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/checking-the-matching-text-in-the-database/m-p/712018#M325948</guid>
      <dc:creator>MikeS81</dc:creator>
      <dc:date>2008-05-23T12:16:37Z</dc:date>
    </item>
  </channel>
</rss>

