continious streaming to the mysql database

Hello

I have LabvVIEW and LV Database Connectivity Toolkit. I'm creating a test sequence and I need to log the results and data to a mysql database. I want to ask you your opinion on what will be the most effective approach to connect to the database. I'll open connection once and then permanently in the stream of data to the database and then once I am finished, I've just will close the connection (similar to the concept of IO file in LabVIEW. Or will I open connection every time I need to connect to the database and immediately close and then open it again once I need to save the data again. SO basically, my program flow will be:

1. opening (operator or engineer)---> this information must be connected.

2. Select the test---> name sequence selected sequence must be connected

3. start Test---> uut data number of series, and the result must be connected

and so on.

so the cycle just repeats, it may be that the operator will continue to another sequence of test, or switch to another object to measure. But all the information will be saved to the database.

So, what will be the most effective approach of data communication? It is best to open the connection before, connect and then log the data on the fly, and then after the operator made with test, to stop the program, the connection will also be closed.

or

Whenever I need to connect to the database, I'll open the connection, and then close the log data (i.e. for the Login of the operator, the database connection will be opened, save the id of the operator, then closes the connection, then when a test sequence is selected, the database connection is open again and then save the name of the test sequence) and then close the connection, etc.)

This will be my first to deal with the database and I don't know if the approach to database is the same as the approach to connect to the file using binary or text. I know that for the binary or text, it is recommended that we make data streaming, but for the database, it will follow the same concept? My concern is that these tests can last for hours. I'm not sure how stable it is to keep in now open database connection.

Any help or opnion anywone, will be very happy. Thanks a lot in advcance!

I think both architectures are good. Choose the best one depends on too many factors. How many connection you have simultaneously to this base? How is the load of your LAN network? How long can happen that you lost the connection with the database? The amount of data you want to transfer for each transaction?

According to me, a third approach now is to connect the the test data for the local machine and transfer the data at the end of the trial. It is an approach to security that it is also proposed by Microsoft using the ADO SqlServer 8.Lorsque. The data group are indeed a copy of the data on the local, but I think that it is better to save data to a log file and once the acquisition is completed, transfer them to SQLServer and then kill the file.

Tags: NI Software

Similar Questions

  • Can I change the MySQL database records?

    Hello

    As the title says, can I change the MySQL database records from the database window or can I only browse the structure?

    Thanks for your time, Steve

    No, you will need to use a front-end such as PHPMyAdmin, MS Access, tool or any tool SQL front end.

  • Created a site in dreamweaver, want to now set up the MySql database and username / password to access

    I created a site in dreamweaver, now you want to set up the MySql database and username / password to access a part of it. Dreamweaver's tools?

    I guess I need to learn PHP?

    Guidance gratefully received!

    Bob

    If you simply need to restrict access to your site, or a part of your site, there is an easier way to do it, using Apache htpasswd, but this solution is very limited and not suitable for use with clients, there is no interesting features people expect, as the ability to reset a lost password.

    Otherwise, Yes, you will need to learn some PHP and SQL.

    You will start by setting up your development computer with an Apache web server, which comes with PHP and possibly also MySQL. There are free versions, such as XAMPP, but I prefer Zend Server, which costs $195.

    Dreamweaver includes data 'tools' to the CS 5.5 version and there are third-party plugins available that will handle the data functions, but to really make things right you need to learn how to write your own code and don't mess with the tools who write code for you that you can not understand and are difficult to change.

    I think that David Powers PHP Solutions book is a good introduction and also includes a tutorial on building a password access system that is fine.

  • Insert XML data into the MySQL database

    Hi all, I'm new with XML and I need help with the insertion of XML data in the mysql database using coldfusion. I looked on the Coldfusion Documentation and saw how to convert XML to a Coldfusion query... but there was no example of how to do an insert. If anyone can give me a good example or point me towards a good direction on how to do it, I would really appreciate it.

    Thank you very much in advance
    Alfie

    Nevermind, I finally managed to do work!

  • How to set up the MySQL database to connect from another computer?

    Hello

    I have a huge problem with that.

    What I want to do is:

    I want to create a system (in LabWindows/CVI) this will (among others) allow users to send simple messages to each other. So I want to create a MySQL database , which will be based on a server. Other computers running the system then is able to remotely connect to this database and read a certain table to see if they have new messages. I want that the client computer to connect through the LAN to the database on the server.

    But how can I do this?

    1. How to create a database that can be connected through the LAN?

    2. How my connection string should look like not on the client computer?

    3. What configurations on the client and server computers can I do?

    Any help is appreciated, and if you could suggest how can I do to reach my goal. I'm a very competent programmer, but HATE those network things.

    Thank you

    Umer

    Nothing really associated with LabWindows. Try http://dev.mysql.com/doc/refman/5.7/en/tutorial.html for the database installed and running on a server.

  • PDF to the MySQL database

    So here's the riddle. I've set up a PDF form with related fields are correctly in the database from MySQL backend - that is the work of connections, I see and you can choose the values in table OK, all seems well. Sending (add), updated buttons seem to work fine (i.e. the code of xfa is correct) since all disappears them from data of the shape, but when I query the database, no data?

    So, where is the error? I get no error message at all.

    The advice is always appreciated. Not sure whether it is a question of end of MySQL.

    Shai

    You try to add a record that refers to a practitioner who is ID is 1, but there is no entry in the table of practitioner with this ID.

    Your table of emr has a constraint that any practitioner that you refer (via practitioner_idPractitioner) must exist in the table of practitioner.  If there are already guidelines in the table of practitioner, choose one of the existing IDS for your insert of emr.  Otherwise, add a line to the table the practitioner, first, then uses this id to your emr insert.

    Try to get all of your SQL queries work by using the mySQL tools before working on the form, it will make things much easier if you have less unknowns.

  • change the port connection to the mysql database settings

    Hello

    I created a mysql database on my hosting server, very basic, and I'm trying to connect to it. However receive a 404 error trying to test the connection. checked the settings with the hosting provider and all correct, they said to check that it does not try to connect on port 80 and should be the port 3306.

    How can I change this in the settings in dreamweaver cs4?

    Thank you very much

    Andy

    What happens if you try to create the connection to database from the server, rather than the site manager behaviors panel?

  • The MySQL database text formatting

    I'm (several paragraphs) text to a Memo field in a MySQL database on a PHP page.

    When I look at the text in the table, the text has points and dashes.

    When it is displayed on the PHP page, everything works with no dashes or paragraph breaks.

    Y at - it shaped a way to put this text (or add tags any) in the table (or the form of PHP) so that it displays correctly on the PHP page?

    I use Dreamweaver CS3.

    This question is answered in the FAQ of Dreamweaver.

  • connection to the MySQL database on the server

    I use Dreamweaver CS3. I am trying to connect to the database on a hosting server. I did in the past, but on a different computer. When I get to the mySQL login window and I get the informaiton I get this error:

    HTTP 404 File not found error code. Here are a few possible reasons for the problem:

    (1) there is no server running on the server test.
    (2) the testing server specified for this site is not mapped to the URL http://207.45.187.42/_mmServerScripts/MMHTTPDB.asp . Check that the URL prefix corresponds to the root of the site.

    Website hosting said it's the path correct http://207.45.187.42/~denise/_mmServerScripts/MMHTTPDB.php, but I get the same error from him.

    When I configured the test server I've filled in the host field, but have you tried /public_html/ which is the directory of the host for the rest of the site. I get the same error as above.

    A thread in the forum suggested that you need to install MySQL in the IIS directory. My new computer does not have the version of Vist to do.

    Lost and confused.

    It took a while, but I finally thought to it. Under Server site/tests definitions in the prefix of the url I put the ip address of the Web site as well as the root folder. I had to ask the server what it was because it was different from what they use me to load up my documents. In my case, it is the ip address / ~ denise.

    After that everything worked fine.

  • Insert a date in the MySQL database

    I have a problem to enter a date in my database using Dreamweaver.
    I enter the current date in a session variable. It seems OK; When I echo the date, is correct.
    Then I get the date in the database (see attached programme).
    At run time, there is no error message.
    But when I display the date using PHPMyAdmin, the date is set to zero.
    I don't understand.
    Could someone help me?
    Thank you.

    Thank you.
    I found the solution.
    To be inserted into a MySQL database, the date format must be A-m-j.
    It was my mistake.
    Kind regards.

  • Y or N assigned to the MySQL database of box instead of the set value

    I'm trying to display a value checkbox to a database using Dreamweaver8/PHP/MySQL. However, a Y or a N goes into the database instead of the value set for the checkbox control.

    The definition of type at the beginning of the code in Dreamweaver says:
    Switch ($theType) {}
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    The Dreamweaver insert says:
    GetSQLValueString (isset($_POST['Kitchen'])? ('true': ' ', 'set', '' Y' ",""n" ").

    The code of the box says:
    < input name = "Kitchen" type = "checkbox" id = 'Kitchen' value = 'Kitchen' / >

    The MySQL is a CHAR field.

    Should I just remove the ',' 'Y' ",""n" "from the end of the Insert statement. Or should I change the Insert for GetSQLValueString (isset($_POST['Kitchen'])? ('true': ' ', 'text');

    Thank you in advance.

    I have it. I have the backup file, done as you suggested and got this. Thanks again.

    GetSQLValueString ($_POST ['kitchen'], "text").

  • connection to the MySQL database

    Hello
    I have a Mysql database and I am trying to connect using DW. I set up a connection and filled in all the fields by following the instructions in the help section.

    The connection seems to be fine (and the connection seems to be the case) to the stage of "connect to the test database" when I get the following message is displayed. "an unidentified error has accurred.

    On the connection of database in the field "mySQL server", I put the following " http://64.151.210.1/localhost'. "
    The same thing happens if I just "localhost".
    The rest of the details are my standard remote connection information
    Any help gratefully received
    m

    Thanks for getting back to me so fast
    I tried, but I still get the "unidentified error".
    It is an online database that comes as part of my Web space.
    I have MySQL installed on my local computer to connect successfully, see tables etc.?
    m

  • Flag assigned in the MySQL database

    Hi all

    In the FMS database, how can we check if the server is running. This flag is attributed in the database which reflects the active State in console FMS?

    I'd start probably with "select count (*) from alarm_alarm" as a direction for study.  This isn't a solution tested, a hint.

    This is the extract 'Check number alarm Rows', useful to solve certain types of performance issues.

    Given that the alarms are always being added, if none are added in the cycle of 1 (usually 5-10 min) data collection, there is something wrong.  Could be something simple like all the rules that are disabled, but in a production environment, the most likely cause would be that the FMS is down.

    Stored in the base of most things are unusable from the outside of the FMS, but it could be relatively safe to use.  I can't emphasize enough the extreme danger in allowing anyone to access the FMS database directly from the outside of the FMS.

    For those of you who have not seen this script (which I wrote no-WARNING):

    Import groovy.sql.Sql;

    import com.quest.nitro.service.util.JDBCHelper;

    msg = new StringBuilder();

    try {}

    SQL = new Sql (JDBCHelper.getDataSource ());

    Msg. Append ("alarms table Count: \n")

    Msg. Append (sql.rows ("select count (*) from alarm_alarm"));

    } catch (Exception ex) {}

    Msg. Append ("exception" + ex);

    }

    Return msg.toString ();

  • DW connection to the mysql database: "databases" and "bindings" Panel disappeared

    I have a new website and a new PHP page, but why can't I find the "databases" or the "bindings panel" linking DW to the database? How can I fix?

    Moved to the main Dreamweaver Support Forum.

    You don't say which version of Dreamweaver that you use, but the screenshot indicates that it is an older version that has always installed obsolete server behaviors. If you have set the site properly, panels should normally appear in a PHP page. Your screenshot shows the missing. Have you tried opening the panels in the window menu? I don't have an old version of DW installed, but it should be something like window > PHP > just window or databases > databases.

    You should be aware of the fact that the code generated by Dreamweaver server behaviors relies on functions that have been removed from the PHP 7. Your sites will stop working as soon as your host upgrades the version of PHP on your server.

  • The difficulty to display an image/filename.jpg via a link in the mysql database

    I set up a column of database msql for a link to my sense of images on my site. I created this as a text without character length field. In this area, I put only the name of the image file, example: TestPic.jpg.

    in my code, I put the following:

    < img src = "images /" <? PHP echo $row_DisplayDetails ["PicLink'];? > width = "530" height = "310" alt = "" / >

    I tried several modified versions of this statement, but get only a picture frame, square with an icon tiny generic photo. If I directly reference the name of the file, the image appears.

    Can someone help me please.

    Thank you, not only were my quotes not in the right place, I made simple by including the 'image/picname.jpg"in my field of database and by excluding it in my code.

    Thanks for responding!

Maybe you are looking for

  • Apple education discount

    I'm confused on this discount. According to me, it says you can save $ 200 on any MacBook and you get Beats for free when you buy one. I want the MacBook 13 inch, so I can't the 200 on a 13-inch MacBook Air, Beats or just the beats is the discount be

  • failure configuring windows update

    configuration windows updated sometimes twice a day, updates download scussful then restart configure up to 15% then failure, to seniors revertingback, then works fine, til reappers message every day.

  • SharePoint allows you to add a link to a folder in a library?

    SharePoint allows you to add a link to a folder in a library? For example, if the Doc A initially occupies in the file 1. Can I add a link to Doc A 2 folder?  If Yes, what version received this ability?

  • My computer is starting & stopping down in safe mode... What can I do to fix it?

    My operating system is windows xp sp2... It is protected with bitdefender internet security 2011.but all of a sudden when I shut down my computer that he would shut down in safe mode... & then it starts and close in safety mode.what do I do to take b

  • Inspiron 1525 does not detect HD in the Bios

    Hello everyone, I'm new to this so if I do something wrong with this announcement, please accept my apologies! My main question is this, I was given an inspiron 1525 in soft state by a friend who was ready to crush the frustration. Now I begin to und