Best way for LV app to communicate with Database/Website?

Hey all...I'm pretty experienced LabVIEW programmer but I'm in somewhat new territory here with communicating with a server/website.
We are going to have an online SQL database that stores all data that we record for our application.  That database is going to have a web-based front end that will allow users to add/edit records.
On the other end, we are going to have a LabVIEW application running on a PC that will allow its users to acquire/input data, and also add/edit records for the SQL database as well.  So basically a web-based client and a LV application client, which will most likely differ in functionality.
There are going to be multiple PCs running LabVIEW client
applications (let's assume upwards of 20 for now).  The idea would be
that the user could:
Query the SQL database for an existing entry, and then view/edit that entry or add records to it.
Create an entirely new record. 
I have played around with the database connectivity toolkit and was able to communicate with the SQL databases online, no problem.  But, I'm not sure if that is the best way to do this yet because....
Here are our challenges/constraints/specifications:
Well we need this to be as low bandwidth intensive as possible as each LV client will be using a GPRS(cell phone) data connection to the internet which is pay per use.  Here are my thoughts on this so far:
Having local copies of often accessed records on each machine with incremental updates to the server to minimize bandwidth for queries.
Positives/Negatives?
Send data to the server in a tagged format (XML maybe?) and then have a server-side application that parses the data and updates it to the database.
Postives/Negatives?
When updates are made using the website front-end...we would like at a minimum to be able to notify the LV client that an update has been made (like a Push data/notifier service). 
How to implement?
POP3 e-mail for each LV client might be an option but is there something better?
The data types that we are working with include all standard types (numeric, text, timestamps) and also includes images (jpg) and sound files (mp3) and potentially video in the future.
Thanks and I'm looking for any and all feedback.  Let me know if the problem is still fuzzy...I will try to describe in better detail.
-Aaron
Aaron Fleishman
Certified LabVIEW Associate Developer
LabVIEW 2011

MattBradley wrote:
Next question: Can the clients (easily) talk to each other -- if they can make a single file for updating the server, that could help, too.
In any case, my first thought would be to put the different priority data in different directories. Have another labview (or even a different software package) running in the background, looking for new data (more often in the high priority directories). When it sees something, copy it to the server. When the server confirms the file has arrived, delete the original one. On the server side, it would have to let the client know it received the file and then unzip it/translate it/whatever and insert it into the database.
Sound good so far?
-Matt
Matt,
Sounds good so far.  Interesting idea of putting it in different directories, although I'd like to minimize file I/O as much as possible, especially between different VIs.  I'm also intrigued by using .zip files to cut down on file size.
No, the clients won't easily be able to talk to each other.  All messaging between clients will go through the server as well.
I guess I'm really looking for how to practically implement this as well.  Like what VIs (protocol) should I be using to get the data to the server?  TCP/UDP/SMTP/FTP/SQL connection/etc...I have little experience making apps communicate with a website/webserver.
-Aaron
Aaron Fleishman
Certified LabVIEW Associate Developer
LabVIEW 2011

Similar Messages

  • Best way for iOS calendar to /pushsync with PC

    Hi All
    I have a particular request.  My business partner and I both have iphone 4s with iOS 5 installed.  at work, we have PCs running Windows. 
    I would like our office staff to insert events into a calendar on the PC and have it push to our devices seamlessly.  Similarly, if one of us adds/edits an event on an iOS device, it gets synced to all devices including PCs.
    Can someone suggest how this would be possible.  We do NOT have Microsoft Exchange at work

    bump...anyone??

  • An effective way for JSP/servlets to interact with databases

    Hi
    I was wondering if anyone has an effective way of connecting to databases using javabeans and JSP.
    I am new to all this JSP stuff and would appreciate some help
    cheers

    hai,
    it is better if u go for javaBeans
    for connection purpose
    as this is reused many times
    and u can avoid large stuff of code
    in the jsp.Also try connection pooling pooling if
    user name to db for most user is same !!!!
    sample code for database bean
    import java.sql.*;
    import java.io.*;
    * This class determines the database connectivity by defining the database url,
    * database driver and database connection and other functions to prepare & execute
    * sql queries.
    public class DBBean {
    String dbURL; //database url
    String dbDriver = "sun.jdbc.odbc.JdbcOdbcDriver"; //database driver
    private Connection dbCon; //database connection
    private PreparedStatement pre;
    private Statement s ;
    boolean prepareflag=false;
    public IntranetBean() {
    super();
    public boolean connect() throws ClassNotFoundException, SQLException {
    //install the driver
    Class.forName(dbDriver);
    //opens a connection
    dbCon = DriverManager.getConnection("jdbc:odbc:ureodbc");
    return true;
    public void close() throws SQLException {
    //close the statement
    if(prepareflag){pre.close();}
    else{
    s.close();}
    //close the connection
    dbCon.close();
    prepareflag=false;
    public ResultSet execSQL(String sql) throws SQLException {
    //gives a statement object
    s = dbCon.createStatement();
    //execute the sql command
    ResultSet r = s.executeQuery(sql);
    return (r == null) ? null : r;
    public void execUPDATE(String sql) throws SQLException {
    //gives a statement object
    s = dbCon.createStatement();
    //execute the sql command
    s.executeUpdate(sql);
    public boolean prepareSQL(String sql) throws SQLException {
    //gives a prepared statement object
    pre = dbCon.prepareStatement(sql);
    prepareflag=true;
    return true;
    public boolean execpreparedSQL(String sql) throws SQLException {
    //execute the sql command
    pre.execute(sql);
    return true;
    public ResultSet getpreparedResultSet() throws SQLException {
    //get resultset
    ResultSet r = pre.getResultSet();
    return (r == null) ? null : r;
    public void setInt(int i,int no) throws SQLException {
    pre.setInt(i,no);
    public void setDouble(int i,double dbl) throws SQLException {
    pre.setDouble(i,dbl);
    public void setString(int i,String str) throws SQLException {
    pre.setString(i,str);
    public void setDate(int i,Date d) throws SQLException {
    pre.setDate(i,d);
    public void setTime(int i,Time tm) throws SQLException {
    pre.setTime(i,tm);
    public void setNull(int i,int type) throws SQLException {
    pre.setNull(i,type);
    }

  • I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    You will need a Mac, with OS X 10.6+ on it, to be able to develop iOS apps.
    There is some info on these pages :
    developer site : https://developer.apple.com
    developing for iOS 7 : https://developer.apple.com/ios7/
    developer support : https://developer.apple.com/support/
    developer forums : https://devforums.apple.com/index.jspa (you will need to be a registered developer to access them)

  • WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto?

    WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto? thank you.

    ingridlisa,
    I'd suggest to ask them to create Shared PhotoStreams and to invite you to view the streams, see:
    iCloud: Using and troubleshooting Shared Photo Streams
    Regards
    Léonie
    Added:
    that I'll be putting in my iphoto?
    Will you be collecting the photos in iPhoto on your iPhone or on a Mac? On a Mac a Shared PhotoStream requires Mac OS X 10.8.2.

  • What is the best way for sharing an iPad with 2 iPhones using different Apple acount ?

    What is the best way for sharing an iPad with 2 iPhones using different Apple acount ?

    You can't share with other devices if you are using different Apple ID's and iTunes account on them. You can only share if you use the same ID.

  • [Solved] What's the best way for me to help with Arch?

    I've been using Linux for about 10 years and Arch for a little over a year.  I used to do a lot of distro-hopping but I've found that since finding Arch, I haven't been doing much of that.  I don't know why it took me so long to find it.
    Anyway, I'd like to give back a little so what's the best way for me to help?  I'm not a programmer so I'd be no help there.  I have made a couple contributions to the wiki and filed a bug.  I know that kind of stuff is easy and obvious.  Is there anything else I could be doing?
    Last edited by brianhanna (2010-04-07 02:25:34)

    I hear the Arch Linux Magazine could always use some contributions, if you're inclined towards that sort of thing. I've been wanting to write an article for a while, but I've not run into anything in my Arch experience so far that's really inspired an article out of me.

  • What is the best way to "upgrade" a powerbook g4 with a powerpc chip?  it seems that many things don't work or aren't supported these days.  can't update my iphone, download video, etc.  can i get the latest software?  thanks.Ask your question.

    what is the best way to "upgrade" a powerbook g4 with a powerpc chip?  it seems that many things are not supported these days.  can't download software, update my iphone, download video, etc.  can i get the latest software?  thanks for the help!

    Mac OS X 10.5 Leopard installation system requirements
    http://support.apple.com/kb/TA24950
    Leopard is no longer available at the Apple Store but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753).
    If you can't obtain a retail install DVD from Apple, look on eBay or Google the installer part numbers to possibly find at an on-line store. Here's what to look for:
    MB427Z/A  Leopard 10.5.1 install DVD
    MB576Z/A  Leopard 10.5.4 install DVD
    MB021Z/A  Leopard 10.5.6 install DVD (single user)
    MB022Z/A  Leopard 10.5.6 install DVD (5-user family pack)
    Installing Mac OS X 10.5 Leopard
    http://support.apple.com/kb/HT1544
    Mac OS X 10.5 Leopard Installation and Setup Guide
    http://manuals.info.apple.com/en/leopard_install-setup.pdf
    After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
    The DVD should look like this
    Caution - Leopard does not support classic mode. So, if you currently open OS 9 apps in classic mode, you won't be able to do this if you upgrade to Leopard.
     Cheers, Tom

  • What is the best way to control a mac mini with iphone 4s , prefer blue tooth

    Hi
    what is the best way to control a mac mini with iphone 4s , prefer blue tooth, or I can use the syncing cable as well. but no wifi.
    Basically to lanch an app and load a preset for that app.
    Thank you

    As V.K. noted, check out NetRestore's documentation http://www.bombich.com/software/docs/netrestore/English/index.html or visit the fourms at http://forums.bombich.com/

  • I have one apple ID for multiple devices in my family.  I'd like to keep it that way for itunes/app purchases.  I would like a simple step 1, step 2, step 3 response on what I need to do to separate all other features like imessage, contacts, emails, etc.

    I have one apple ID for multiple devices in my family.  I'd like to keep it that way for itunes/app purchases.  I would like a simple step 1, step 2, step 3 response on what I need to do to separate all other features like imessage, contacts, emails, etc.
    I have been reasearching how to do this on the internet, but I haven't found an easy explanation yet.  My family is going crazy over each others imessages being sent to others in the family and not being able to use FaceTime because of conflicting email addresses.  I have read that if each person gets their own iCloud account, this would work.  However, I need to know what to do after I set everyone up with their own iCloud account.  Do I make that the default email address to be contacted or can they still use their hotmail email addresses.  Any help- with easy explanation- would be much appreciated!!

    We do this in my family now.  We have one account for purchases, so it is used to share music and apps (I think that is in Settings/iTunes & App Stores).  Each iDevice has this configured.
    Then, each of us has our own iCloud account that is configured under Settings/iCloud.  That then allows us to have our own Mail/Contacts/Calendars/Reminders/Safari Bookmarks/Notes/Passbook/Photo Stream/Documents & Data/Find My iPhone/and Backup.  That Backup piece is pretty sweet and comes in handly if you replace your iDevice.  You can just restore from it.
    So we all share the Apple Store account but we all have our own iCloud accounts to keep the rest seperate or things like you mentioned are a nightmare.
    In answer to what iCloud does for you: http://www.apple.com/icloud/features/
    Think of it as an internet based ("cloud") area for all of those items listed in my response.  What you need to remember is photo stream only maintans the last 1000 pictures so don't count it as a complete backup solution for your pictures.  Even though I rarely sync with a computer these days, I do still try to sync my phone with iPhoto (I have an iMac) so that I have copies of all of my pictures.  1000 may not stretch as far as it sounds.
    Message was edited by: Michael Pardee

  • Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Hi ron1098,
    Try my application Dates to iCal. it runs on the Mac, but you can sync the calendar to your iOS device.
    See more about Dates to iCal here. It is £4 shareware with a 2 week demo.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?

    What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?
    Thanks for any help

    Hi Donavan,
    There are two options for zeroing with the NI-9237.  You can perform offset nulling and shunt calibration with a strain task, or if you use custom excitation you can use software compensation.
    See the Bridge Balancing, Offset Nulling section in  the Load, Force, and Torque Measurements tutorial. Take a measurement before the strain is applied and subtract this from all subsequent measurements.  See the above tutorial to consider the tradeoff in accuracy between these two options.
    Hope this helps,
    Jennifer O.
    Applications Engineer
    National Instruments

  • Best way for building an application main frame

    I'm about to program a desktop application.
    The main frame will have menus, toolbar, status bar etc.
    There will be a lot of interaction between the menus, toolbar buttons and other custom gui components (such as an editor).
    My question is which is the best way for building it.
    Cramming all the code in one class file is out of the question.
    I thought about making my own custom JFrame and add API functions like for it so different GUI elements can be accessed.
    Each component which will be manipulated will be in its own class file with the constructor accepting a reference to my custom JFrame object which it is contained in.
    Any suggestions on the matter would be of great help since I've never done extensive Swing programming before.
    P.S.
    The application makes extensive use of RMI.
    What considerations should I take into account (except using SwingUtilities.invokeLater()) ?

    Hi,
    I have replied on this subject somewhere else today but what I do is have one simple entry point where I just instanciate a JFrame.
    On that frame I have a main JPanel. On that panel I add new objects like JPanels, tabs etc.
    I keep each new panel in a separate source as it is easier when the application grows, and it will. That also means that several programers can work with the same application without interfearing each other.
    I hope you understand what I mean the the thing is to split up the code into several sources.
    It may not suit everyone but I found this approach to be the best for me.
    Klint

  • HT4914 I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    Is/was failing or has failed?
    If the old computer still runs one of these methods may be best.
    Method 1
    Backup the library with this User Tip.
    Restore the backup to your new computer using the same tool used to back it up.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    I don't have personal experience with iTunes Match, but in principle you should be able to download all the tracks currently registered to your iTunes Match account. This isn't quite the same as restoring your previous library exactly as it was. There is always the potential for iTunes match to provide the wrong version of a song and could be content such as movies, podcasts, audiobooks etc. that would have been excluded.
    tt2

  • Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC

    Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC. I would appreciate any help with this.

    Thanks for the quick help. I do have to leave for work. When I try to
    download the images from the camera they seem to only be in jpeg (I don't
    see any rw2 or raw files to download). If I select the jpeg file it seems
    to only download a jpeg file. I do understand that I do have the option to
    open the jpeg in RAW. In doing this, is all the extra information included
    in the RAW file there or is it lost coming from the camera
    Once again thank you for trying to make me understand how this works.
    Have a great day.
    On Sat, Sep 13, 2014 at 12:14 PM, ssprengel <[email protected]>

Maybe you are looking for