<?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: access MS SQL Database from cRIO in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3094429#M885271</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/306118"&gt;@tshelleyamrc&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;smithd, some excellent suggestions i will take a look at your links.. My thoughts for the mysql database connection was not to push the cRIO data into the database in realtime but have some local memory on the cRIO and periodically push data into the database at arrbitary points. What would consider as a better option push data or pulling the data from a stored procedure in the database? I had intended to try and creat a standard tdms template that all the data would be stored in on the cRio (which contained raw information and appropriate meta data).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think what you're thinking of and what I'm describing are the same. Basically the cRIO logs locally and puts the files in some known location. If you look at the vibration logger I believe you'll find code which "rotates" the file -- meaning when it gets to some predefined size like 50 MB it closes that file, renames it to blah.tmds_45 and then opens blah.tdms_46 and starts logging to that file instead. By specifying what your file name is and what folder to pull from, your host (whatever that may be) should be able to pull all the stored files off the controller and put them into the database. Since the cRIO probably doesn't need to read those files, the simplest way would be to have a small program on your host responsible for interfacing with the database.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2015 01:04:10 GMT</pubDate>
    <dc:creator>smithd</dc:creator>
    <dc:date>2015-02-25T01:04:10Z</dc:date>
    <item>
      <title>access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2208154#M705834</link>
      <description>&lt;P&gt;i want to log the data from cRIO into MS SQL instead of MySQL. Any others experience on doing this? I've tried to log the data into MS SQL from cRIO, but failed. Is there any available MS SQL driver for cRIO? I've successfully log the data from Windows by using Database Connectivity Toolkit, however ideally i want to log data straightaway from cRIO. I already using TCP/IP communication but its meanly use for mysql (&lt;A href="https://decibel.ni.com/content/docs/DOC-17093)." target="_blank"&gt;https://decibel.ni.com/content/docs/DOC-17093).&lt;/A&gt; I also have go through the "SQLite" but facing problem how to make sure this vi connect to my ms sql server because there is no "IP" input.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 10:35:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2208154#M705834</guid>
      <dc:creator>amatz11</dc:creator>
      <dc:date>2012-11-05T10:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210450#M706274</link>
      <description>&lt;P&gt;there is no server/client with SQLite, thats the beauty of it.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 22:40:21 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210450#M706274</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-06T22:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210454#M706276</link>
      <description>&lt;P&gt;I ran into this same issue on a a project a little while ago and was trying to find a solution. &amp;nbsp;Im not sure if we couldnt find something or we did find something and it was pricey. &amp;nbsp;Try searching the NI tools network. &amp;nbsp;We did end up having a host application that ran on Windows that the CRIO would send info to and it logged to an SQL server.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 22:42:29 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210454#M706276</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-06T22:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210550#M706299</link>
      <description>&lt;P&gt;&lt;SPAN&gt;as i know cRIO writing to SQLite which can be stored in cRIO. However, I still need to send the data back to server using tcp/ip. SQLite is used as a temporary buffer to move data between cRIO to server. so it totally not my choice..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:20:25 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210550#M706299</guid>
      <dc:creator>amatz11</dc:creator>
      <dc:date>2012-11-07T00:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210554#M706300</link>
      <description>&lt;P&gt;Ok. So what you probably should do is have your CRIO send data via TCP to a host application, and then in that host application write data to the SQL database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it will look like&lt;/P&gt;
&lt;P&gt;CRIO-&amp;gt;(TCP)Host Application-&amp;gt;(Database connectivty toolkit)SQL Server&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:27:59 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210554#M706300</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-07T00:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210556#M706301</link>
      <description>&lt;P&gt;my concern why i want to access MS SQL directly from crio:&lt;/P&gt;
&lt;P&gt;I got 4 station (will expand in future), each station got 1 crio to collecting data and manage system.&lt;/P&gt;
&lt;P&gt;if i need to run a deamon at host that runs windows, im afraid the system will collapse or 'hang'. else i need to buy the industrial or high end spec PC to only manage the Database which is not applicable.&lt;/P&gt;
&lt;P&gt;please advice..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:28:57 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210556#M706301</guid>
      <dc:creator>amatz11</dc:creator>
      <dc:date>2012-11-07T00:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210566#M706303</link>
      <description>&lt;P&gt;Why would the system hang? You just need to design the system to service each connection independently so it can scale nicely.Ive done application that connects to multiple CRIOs at a time. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; The trick would be designing your architecture to be scalable.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:31:59 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210566#M706303</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-07T00:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210570#M706304</link>
      <description>&lt;P&gt;thats why im asking here... scalable architecture, hmmm... how to make it done? huhu&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.ni.com/i/smilies/16x16_smiley-embarrassed.gif" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/P&gt;
&lt;P&gt;sorry i just a CLAD (expired already 2 month ago)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:45:01 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210570#M706304</guid>
      <dc:creator>amatz11</dc:creator>
      <dc:date>2012-11-07T00:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210572#M706305</link>
      <description>&lt;P&gt;That my friend is the ultimate question. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:48:25 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210572#M706305</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-07T00:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210574#M706306</link>
      <description>&lt;P&gt;ok let me rephrase my question... are there any scalable architecture example or program that u have done before? maybe can share with me...&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:53:34 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210574#M706306</guid>
      <dc:creator>amatz11</dc:creator>
      <dc:date>2012-11-07T00:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210578#M706307</link>
      <description>&lt;P&gt;You have some options. &amp;nbsp;You can go down the Actor framework route or you can develop a "typical" architecture that you would develop for the CLA exam. &amp;nbsp;So without having full details on the application, the first thing you need to do is break things down into individual processes or "modules". &amp;nbsp;From what I have gleaned from this short conversation you would need the following Modules:&lt;/P&gt;
&lt;P&gt;1. TCP Module: (This module would be responsible for reading TCP messages from the CRIO(s) and then passing it on to whoever needs it. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. SQL Module (This module would be resopnosible for writing data to the SQL Server)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you would need to define the messaging mechanism. &amp;nbsp;The best thing in my opinion to use are dynamic events. &amp;nbsp;Then the structure of the messages or data that is passed would be a Cluster containing a string/enum and variant. (String/Enum to denote the message name or state to go to and the variant will be the data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:56:28 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210578#M706307</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-07T00:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210584#M706308</link>
      <description>&lt;P&gt;ok i think i know what should i do but if u have simple program it will more helpful for me to understand...&lt;/P&gt;
&lt;P&gt;anyway thank you for your advice...&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 01:06:06 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210584#M706308</guid>
      <dc:creator>amatz11</dc:creator>
      <dc:date>2012-11-07T01:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210588#M706310</link>
      <description>&lt;P&gt;Its very difficult to explain over a forum.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 01:20:28 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210588#M706310</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-07T01:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210590#M706311</link>
      <description>&lt;P&gt;maybe u can make simple block diagram for me?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 01:22:13 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210590#M706311</guid>
      <dc:creator>amatz11</dc:creator>
      <dc:date>2012-11-07T01:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210592#M706312</link>
      <description>&lt;P&gt;The challenge is its multiple Block diagrams. &amp;nbsp;I think a good starting point would be looking at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blog.jki.net/events/niweek-2011-beyond-state-machines-slides-and-code-now-available/" target="_blank"&gt;http://blog.jki.net/events/niweek-2011-beyond-state-machines-slides-and-code-now-available/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 01:25:47 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/2210592#M706312</guid>
      <dc:creator>Brandyn</dc:creator>
      <dc:date>2012-11-07T01:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3091704#M884190</link>
      <description>&lt;P&gt;I have just read this thread with great interest. I am also trying to implement a similar type of system with multiple cRIOs to a MS SQL database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you progress with finding a solution to your proplem? and are you able to share you findings?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 09:31:52 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3091704#M884190</guid>
      <dc:creator>tshelleyamrc</dc:creator>
      <dc:date>2015-02-19T09:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092280#M884408</link>
      <description>There are an awful lot of variables in play here:&lt;BR /&gt;How many crios? How much data is each one generating? How often is data being transfered? What does the data look like? What is the table structure you're inserting into? What version of SQL Server? Who else is on the network?&lt;BR /&gt;&lt;BR /&gt;Having an in between computer, as was advised, it an excellent approach, but there are details to be sorted out.&lt;BR /&gt;&lt;BR /&gt;Mike..</description>
      <pubDate>Fri, 20 Feb 2015 05:43:27 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092280#M884408</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2015-02-20T05:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092350#M884430</link>
      <description>&lt;P&gt;Hi Mike,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would just like to give some context to the problem. I work in the High value manufacturing &amp;amp; machining, my team and i (with support from NI) have a research project which looking into Machine Health monitoring anything from power, spindle power, ambient temperature, vibration and acqustics. The aim is to produce a "black box" (as decsribed my mechanical engineers, potentially a cRIO or SoM), which selects 2/3 data types (temp, vibration, power) and creates a tool capable of capturing this data, what ever it maybe and pushing it into a custom database with relevant meta information, which can then be used for post-prosing via something like diadem/matlab etc.. I would also note sometimes it is not feasible to have a windows computer between the cRIO and database because these devices could be located inside machines..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I fully understand there are several your comments and have already asked several myself, however the aim is to produce a flexible arcitechure&amp;nbsp;which can cope with 90% of the requirements, and we will accept that sometimes the system will not be capbable of the 10%. Intially there will be 2 cRIO of the network which will talk to a mySQL database located on the companies virtual machine. We need to look into the local security and create a password to stop direct access to the cRIOs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With respect to data rate i can envisgae anything from 1s per minute to 10000 per/s. However for this project we can determine this for this project, based on the sensors we select. The mySQL tables will be design to recieve the relevant data from the cRIOs and most importantly contain the meta data about when, where and how.. which makes the information very useful in post processing, we're currently thinking about what the tables will look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any further comments please let me know, we are at the early stages on concept and i would appreacte and comments and questions on our approach and stratergy. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 08:54:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092350#M884430</guid>
      <dc:creator>tshelleyamrc</dc:creator>
      <dc:date>2015-02-20T08:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092694#M884558</link>
      <description>What I think I would do is look at creating a separate box (you can call it something like a data concentrator). This box would be a small rugged industrial PC running LabVIEW. It could connect to 4 to 8 crio systems via Ethernet and the server on the other side. Communication with the crio would be via something reliable like TCP/IP or VI Server. Do not let NI sucker you into using shared variables -- you need reliability.&lt;BR /&gt;&lt;BR /&gt;The connection to the server could be wired or wireless, your choice.&lt;BR /&gt;&lt;BR /&gt;The box's job is to gather data from the attached crio systems and transfer it to the database server. This data concentrator box could even become a separate product in its own right.&lt;BR /&gt;&lt;BR /&gt;Mike...</description>
      <pubDate>Fri, 20 Feb 2015 19:00:00 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092694#M884558</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2015-02-20T19:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: access MS SQL Database from cRIO</title>
      <link>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092840#M884605</link>
      <description>&lt;P&gt;I don't know for sure what sort of rates you'd be able to get out of a mySQL database on a cRIO (or even across the network, as the data transfer may also be a bottleneck), &amp;nbsp;but I'd highly recommend proving that out first.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I've seen elsewhere is people logging to a file system designed for streaming (like a tdms file or binary file) and then pulling that data on occasion across the network where it is processed.&amp;nbsp;A good starting point is this:&amp;nbsp;&lt;A href="http://www.ni.com/example/31388/en/" target="_blank"&gt;http://www.ni.com/example/31388/en/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It doesn't implement what I described (it only logs the data, it doesn't handle transferring it) but its pretty close and we've used it a ton for logging applications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how many of these you're making and what this is being plugged in to, you might take a look at this:&amp;nbsp;&lt;A href="http://www.ni.com/white-paper/52454/en/" target="_blank"&gt;http://www.ni.com/white-paper/52454/en/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't honestly know too much about it, but if you're doing health monitoring its worth looking in to.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 01:22:30 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/access-MS-SQL-Database-from-cRIO/m-p/3092840#M884605</guid>
      <dc:creator>smithd</dc:creator>
      <dc:date>2015-02-21T01:22:30Z</dc:date>
    </item>
  </channel>
</rss>

