Advices for database application

hello,
We looked for exising solution to manage mesuremens and devices park without finding one that fit
maybe one of you know/use a good one !
so we are thinking about creating our own
in few month  i will have to develop a database application with postgre, this database will be used
to store devices mesurements, accuracy, drift , create alerts regarding calibration date,
printing calibration , verification certificates also stickers ....
Creating the dabase sould be ok, my question  is more regarding the langage to use to create interfaces
things to know:
- that i will not have any specifications or so few, this will be incrementals propositions
- I ' now quite comfortable with labview        
- php it surely the best way but i don't know any about it nether html ,css ...
- i could have a one week php course
- php is distributed application
- how to manage network shutdown with labview or php
- i will need to access an existing database an creating link with the new one 
- about 10 users can use the application 
- i don't have conection with web developper in my work circle
project is interesting , my anxiety with php could be to re write again and again , each time i will progress on this language
with labview i'm not sure that is the best way to create this type of application and to be forced a day or another to switch to php
If any advices don't hesitate
Tinnitus
CLAD / Labview 2011, Win Xp
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte

I have been doing something like this for a while. I really do not like php but in all fairness I have not looked at it for several years. What I use is Python on the server through the Django web application framework running on Apache. It is very simple and easy to use.
The LabVIEW code writes data through http POST requests and the server inserts this data into the database. I do not use the Django object relational mapper. Instead I build the SQL inserts manually. I do this mostly because the database already exists and I just find it more natural.
I also do not make use of the Django template engine. The server returns XML to LabVIEW which looks something like this:
<Response>
 <Error>
  <Cluster>
   <Name>error in (no error)</Name>
   <NumElts>3</NumElts>
   <Boolean>
    <Name>status</Name>
    <Val>0</Val>
   </Boolean>
   <I32>
    <Name>code</Name>
    <Val>0</Val>
   </I32>
   <String>
    <Name>source</Name>
    <Val></Val>
   </String>
  </Cluster>
 </Error>
 <Data>
  <Cluster>
   <Name>Hello from server</Name>
   <NumElts>3</NumElts>
   <String>
    <Name>String</Name>
    <Val>Hello</Val>
   </String>
   <Boolean>
    <Name>Boolean</Name>
    <Val>1</Val>
   </Boolean>
   <DBL>
    <Name>Numeric</Name>
    <Val>42.00000000000000</Val>
   </DBL>
  </Cluster>
 </Data>
</Response>
Can you see what I am doing? I am returning an error and a cluster which can be unflattened using Unflatten From XML. I can set LabVIEW errors from Python for things like a request without the required parameters or whatever. I have a Python class that builds the XML Response which contains exactly two children - Error and Data. It has methods including createCluster, addLVObject, createLVArray, insertLVArrayElement, setError, etc. Finally it has a getXMLResponse method which returns the above XML string.
I return that using the Django HTTPResponse object and get at the data in LabVIEW like this
The returned cluster can be as complex as you want such as cluster of cluster of array of cluster. It always returns a cluster so if you want the server to return say an array then you will get a cluster containing an array that you simply unbundle. It supports strings, all the numeric representations, paths, visa resources, boolean and something i am forgetting at the moment.
Also my URL configuration is very simple since I only POST and do not send GET requests. This means I can map the URL directly to the Django view method of the same name. I get the parameters with request.POST.get('Parameter Name')
I know for a fact that you can do all of this with php but I just prefer Python. If none of the above makes sense then come back to it after you read about Django.
Good choice if it was a choice to use PostgreSQL or a stroke of good luck if it was not a choice. This is what I use and it has been rock solid for years. I really want to upgrade because the NOTIFY now supports data payloads. I have had to do some crazy things to get around the fact that the older versions do not support this.
I am thinking seriously about putting together a tutorial on this whole thing.
=====================
LabVIEW 2012

Similar Messages

  • How to create web service for database application

    Hi everyone
    Is it possible to create a web service for an apex database application page which has reports and radio fields and dialog boxes and validations in it. IF it is possible to create, pls help me with example or step by step procedure. I have seen all oracle docs of implementation of Web services in apex but unable to figure out how to get that link of wsdl for an application.
    Thanks in advance.
    Regards
    Sandeep Artham

    Hi,
    I guess there are other ways. But this is an easy way, if you find the right wizards.
    Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
    In this approach you will need 3 projects:
    An enterprise application project (will contain EJB Module)
    An EJB Module project (will contain session bean)
    A Java project (contains code that implements the session bean methods)
    In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
    But it should be possible to do it in another way. It is up to you.
    Good luck, Roelof

  • Book recommendation for database applications

    I'm a LabView newbie.  My primary work will be file and data manipulation using the database connectivity toolset.  Are there any books available to help with database applications?
    Thanks

    Hello Paul,
    I cannot offer much recommendation on books about development of database
    applications from the database end (though user ratings through places like
    Amazon have usually treated me right).   If you are interested in
    learning more about how the Database Toolkit for LabVIEW can be used, the Database Connectivity Toolkit
    Manual is a great (and comprehensive) resource.
    Hope this helps!
    Travis M
    LabVIEW R&D
    National Instruments

  • Need advice for an application that restricts access to other applications using a smart card

    Hello everybody,
    I am developing a system that uses a smart card reader attached to a USB port of a PC.
    What the system should provide is:
    When computer boots up and shows the users login screen, a user, previously registered, can use his smart card to access the system, instead of entering his password
    Once the user is logged in, when he tries to launch an application, which has previously marked as "secured", a dialog box is shown indicating that the user has to present his smart card. If the smart card has access to the application, the application
    is launched, otherwise an error message is shown to the user and the application is not executed.
    I develop in C++ and C#. I have already created a library (in Visual C++) that manages the smart card reader and provides the card presented to it.
    Now I am developing the applicastion (in C#) that will configure the security (assigning cards to users and applications).
    Concerning this, I have 2 questions regarding each point above:
    Is it possible to create the centralized application that lists all users and allows to assign cards to them? Then, when the users login screen is shown, the system must access that data before logging in, so that it can check which card was presented and
    what user it corresponds to. I have seen in laptops, that have embedded fingerprint readers, a user must login to his account first and then he can register his fingerprints. In fact, what I need to do is something similar but with smart card reader instead
    of fingerprint reader. So, perhaps, user must login into his account first and then he will be able to add his card and store that information somewhere (in windows registry maybe).
    How can I launch my application when other application is executed but before its interface is actually shown? this is similar to what antivirus programs do, because they check the executable before it is actually ran. What is the best method to address
    the application? by executable file name? process name? or other? if the best is by process name, how can I know the process name without actually running the application?
    Well, that is all what I need to do. Please advice regarding this subject.
    I look forward to hearing from you,
    Best regards,
    Jaime
    Powered by C++

    > what was the guidance?
    1. Research other software that does similar things (not just exactly the same) as you need. If you like something in their solutions, copy it :)
    The only software I know that does that is an antivirus, but I am unlucky to find some code in c++ that allows to intercept the program execution before actually executing it.
    2. If a kernel driver would fit in your solution, go for it (google for what is available for free, or find a consultant to write it for you).
    There are a lot of information about kernel drivers, but the question is, is that really the solution?
    Otherwise, you can just hide the application from user's reach and substitute the executable in shortcuts, etc. to run your program instead.
    Definetly this is not the way to go
    What is the best method to address the application? by executable file name? process name? or other?
    By executable file name, like in the Windows Applocker, I think. Processes do not have names (they are artifact of Task manager and debugging tools, to represent the processes for user somehow). Or, only by the filename part of the full path.
    I agree with that
    if the best is by process name, how can I know the process name without actually running the application?
    When the user runs the application, the driver will detect this and do its magic.
    I have found this page: http://stackoverflow.com/questions/3556048/how-to-detect-win32-process-creation-termination-in-c. They mention WMI, but I will study it tommorow... it is so late for today :-)
    Regards,
    -- pa
    Regards
    Jaime
    Powered by C++

  • Requirements for database applications

    Hey all,
    I have a couple of questions:
    Is it possible to create applications with databases in a standalone way?
    If I made an application that uses JDBC what would any users of the application require to use it? (if they could install it on their own computers) would they need database software installed?
    Is there any alternative methods you would recommend using rather than a database? for example if I were to store family tree data, a database seems logical, but would you use an alternative storage method?
    Thank you!

    If I made an application that uses JDBC what would any users of the application require to use it? (if they could install it on their own computers) would they need database software installed?Usually you'll need a JDBC driver, which is a single jar file. No other DB software is usually needed on a DB client.
    (Fine print: there are types of drivers that need e.g. .dll files installed, or other cruft like that. But mainstream DBs usually do it the easy way: one .jar file. The driver jar connects to the DB server over the network, sends SQL commands to it, and receives results.)
    You'll need a DB server program. It can run on the same computer as the client, or a different one. The DB vendor will have an install procedure for the server. There are small ("embedded") DB servers, and big ("Oracle" :-) ones. The smallest DBs can even be a single jar file that contains the JDBC API and the code that stores the data in files - no other components needed.
    Is there any alternative methods you would recommend using rather than a database? for example if I were to store family tree data, a database seems logical, but would you use an alternative storage method?There are a number of different ways to store data. Files come to mind. For the example of a family tree, a relational database seems a pretty good fit. The devil is in the details.

  • Airport Extreme & Remote Access for database application

    Hi There,
    I have spent an entire week of my time between apple, apple consultants and networking experts trying to get a access remotely to a simple database program inside an wireless network. I have read the discussions on remote access thru the AEBS and port mapping.
    I'm hoping an user here can help me with a foolproof solution that the 'apple experts' can seem to design?
    All that is required to get this program up and running remotely is the ip address of my computer inside my wireless network. I have set that this computer to a static address but since my dsl provider uses dynamic IP's this doesn't seem to work (or it does for about 12 hours until the IP address of my AEBS is changed). Will port mapping work for me or is my only solution an up-charged static IP?
    Thanks in advance for any suggestions......the thought of spending another week on this is frightening!

    If your ISP is refreshing the dynamic host configuration of the public ip address assigned to the ISP provided router you will need to request a static ip address from your service provider.
    The addresses that are used "inside of your network" are private ip addresses. If you are using the (1) public address for your router (APE)(Apple airport extreme) from the ISP what you are trying to do will not work very well since your router (APE) will use the Public IP address to provide access to the public internet for your private network using the private ip addresses you have used to create your subnet and told your router (APE) about. Three private IP address schemes can be used for a private internet. One for each class. Class A 10.x.x.x/8, Class B 172.16.0.0/12 and Class C 192.168.0.0/24. Translated using dynamic NAT (network address translation with overload) making your LAN hosts using private IP addresses to seem as if they are using a public ip address allowing access to the public internet where only public ip addresses can be used.
    PAT (port address translation) is what you are trying to accomplish. For PAT you must have a valid public ip address from your ISP and a private address from your network assigned to interesting host. Use the private ip assigned to the interesting host in the port mapping panel of airport admin that you wish to allow access to via the global internet as well as the tcp or udp port number for the traffic to be directed. For example port 5003 for FileMakerPro or port 20 and 21 for ftp. You should also implement security policies to protect your network and hosts.
    Since you said that it works for 12 hours you must have the basics set up correctly. All you need now is to get a static ip address assigned to you from your ISP or use a service such as http://www.dyndns.com/
    Hope I didn't ramble on too much

  • How to manage a Database Application with more than two tables

    Hello All,
    I need to manage (reconciliation and provisioning) a database application where user attributes are strored in seven tables.
    Reference guide for Database Applications Table connector says that only two tables can be managed using this connector.
    Which is the best way to solve this problem? Could I create a view in my database ? are database views supported? Must I create a new conector?
    Thanks in advance.

    Hi ,
    I developed it from scratch due to complex requirements for accessing tables and their relationship. You can use current connector for your reference.at higher level you need to do only two change (1) build query from xml files to add,update,delete* record across seven tables - (2) changing oim elememnt ( use connector guide for changing element to match your needs)
    To develop new connector :
    (1) study relationship between these tables (1:*) and fields of interest and also ,as earlier mentioned timestamps for fetching changed record. based on your requirement.
    (2) create OIM elements , something you have when you deployed DB app. connector. modify it for requirement. i.e fields .. trusted , non trusted. process task,adapter
    (3) Develop classes to get execute query on database. create adapters to perform add/update/delete operation on 7 tables.

  • Oracle database application table connector no logs

    How do I enable the loggin level to DEBUG for Database Application table (9.0.4.1 with patch p7306669_90410_Generic )
    I am using JBOSS403SP1
    I have set this <category name="ADAPTER.DBADAPTERLOGGER"><priority value="DEBUG" /></category>
    int the log4j.xml

    Hi,
    Try this one.
    <category name="DBAdapterLogger">
    <priority value="log_level"/>
    </category>
    It may be case sensitive.
    If that didn't work try this:
    <category name="DATABASE_ADAPTER">
    <priority value="log_level"/>
    </category>
    Regards
    Nitesh
    Edited by: kunwar.nitesh on Sep 26, 2008 12:46 PM

  • Looking for a database application with report-writing capabilities for my iMac.

    Does anyone know of an iMac-compatible database application (small business type) with report-writing capabilities?

    That's easy, you are looking for FileMaker Pro. You can find it at:
    http://www.filemaker.com

  • Require technical advice for designing XML database

    Dear Fellows
    I need your technical advice for the way storing the XML files into the database. We have experiments that produces more than 300 XML files. I want to store them in the database. There should be a mechanism (way) to store XML files related to one experiments. I can not change or update anything in the XML files to put something like counter or anything.
    Can you please advice me or give any hint that how should i store experiments with their XML files with their unique key. Another thing when i have new experiment XML files to store how to store them
    any help and any hint will help in a great manner
    regards
    Imran Sabir

    Google http://www.oradev.com/xml.jsp
    http://articles.techrepublic.com.com/5100-22-5075453.html

  • Opensource database for Mobile application development

    hi.
    1. SQL CE is a database for mobile applications. Is there a similar opensource implementation available , i.e a database that i can port on my mobile application.
    2.If this is not the forum in which i must post such question ..pls let me know the link where in i should make such posts..
    Ur suggestions will be valuable..
    regards
    KARTIK

    hi.
    1. SQL CE is a database for mobile applications. Is
    there a similar opensource implementation available ,
    i.e a database that i can port on my mobile
    application.
    2.If this is not the forum in which i must post such
    question ..pls let me know the link where in i should
    make such posts..
    Ur suggestions will be valuable..
    regards
    KARTIKhttp://hsqldb.sourceforge.net/

  • Error deploying data tier application to SQL Azure at "Registering metadata for database" step ... should I care?

    I'd like to move an on-premesis SQL Server Database to SQL Azure. I've used SQL Mgmt Studio to Extract Data Tier Application and save my db as a dacpac file. Now I'm connected to my Azure server and I've chosen to Deploy Data Tier Application. I select my
    dacpac and the deploy starts but then on the last step "Registering metadata for database" it times out. I've tried it a couple of times and each time the deployed database is there and appears to be fully populated, but I'm not sure if I can ignore
    that error and continue. What is supposed to happen in that step, and should I expect it to fail when deploying to SQL Azure? 
    I'm following the steps here http://msdn.microsoft.com/en-us/library/hh694043.aspx in the Using Migration Tools > Data-tier Application DAC Package section, except that to deploy there's no SQL Mgmt Studio > Object Explorer [server]
    > Management >"Data Tier Applications" node, so I'm deploying by right-clicking on the server name and choosing "Deploy Data-tier Application". 
    My (total) guess here is that it's deployed the database fine and it's doing whatever magic happens when you register a data tier application, except that it's not working for SQL Azure. 
    I'm running against a server created for the new Azure service tiers, not against a Web/Business edition server. 
    The full details of error I get are below. 
    thanks, 
    Rory
    TITLE: Microsoft SQL Server Management Studio
    Could not deploy package.
    Warning SQL0: A project which specifies SQL Server 2008 as the target platform may experience compatibility issues with SQL Azure.
     (Microsoft.SqlServer.Dac)
    ADDITIONAL INFORMATION:
    Unable to register data-tier application: Unable to reconnect to database: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft.Data.Tools.Schema.Sql)
    Unable to reconnect to database: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft.Data.Tools.Schema.Sql)
    Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server, Error: -2)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.9213&EvtSrc=MSSQLServer&EvtID=-2&LinkId=20476
    The wait operation timed out
    BUTTONS:
    OK

    Hello,
    The registration process creates a DAC definition that defines the objects in the database, and register the DAC definition in the master system database in Windows Azure SQL Database.
    Based on the error message, there is timeout error when connect to SQL Database. Did you deploy a large database? When move large data to Azure SQL Database, it is recommended to use SQL Server Integration Services (SSIS) and BCP utility.
    Or you can try to create a client application with the Data-Tier Application Framework (DACFx) client tool to import database and handle connection loss it by re-establish the connection.
    Reference: http://sqldacexamples.codeplex.com/
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Database applications for schools

    am trying to build a database application for a school wit application express. i want to know the steps on how students can be able to print out their result

    Of what exactly? Before you decide HOW they are to print what they have done, you MIGHT want to look at the how and such.. Before the horse gets in front of the cart, you might want to decide on HOW to build the cart..
    Thank you,
    Tony Miller
    LuvMuffin Software
    Ruckersville, VA

  • Minimun database version required for oracle application 12.1.3

    We are palnning to upgrade from our current applications version 12.0.4 to 12.1.3
    We understand it will done in 2 phases ie 12.0.4 - 12.1.1 and 12.1.1 to 12.1.3
    but our current database version is 10.2.0.4
    My question here is can we upgrade applications to 12.1.3 without upgrading database?
    or shall we upgarde atleast to 10.2.0.5 first and then proceed with applications upgrade and then plan for database upgrade to 11g release 2 later.
    Please suggest me with proper approach.To upgrade my current environment with oracle application 12.0.4 with database 10.2.0.4 to oracle apllications 12.1.3
    Thanks in advance
    pavan

    We infact are upgrading even our database to 11.2.0.3, but database upgrade will be done by other organisation as our client has outsoursed database support to other organisation.
    We have to do only application upgrade from 12.0.4 to 12.1.3, however we have access to database to upgrade it to 10.2.0.5 if required, So my question here is can we proceed upgrading application to 12.1.3 without upgrading the database. (can i use 10.2.0.4 database with 12.1.3)Please see your other thread, I have already answered you.
    Thanks,
    Hussein

  • Agents for database and application servers

    hi all,
    I have to go to a client site this week to install Gagents onto some database servers, some will be RAC and some application servers. it is on AIX. are there different agents for database and applications? In a RAC cluster do I need an agent per node?
    rgds
    alan

    When installing agents in a cluster (read - RAC), during the installation, on one of the screens, you will have the option of picking up all the nodes in the cluster. Else, if you are using a push or agent deploy method, you just have to pass the correct flag (can't remember) and then list all the nodes in the cluster.
    To your other questions, you do not need different agents for database, and app servers etc. The only time you would need different agents is when you are installing on different platforms.

Maybe you are looking for

  • Need to input a value in a Property Node that doesn't have "Change All to Read" property.

    Hi, I am developing an remote panel application that have 3 vi's. 1 - Login vi => If username and password is OK, then the login vi add the Main vi to access list, and the user can access it. 2 - Main vi => Is the main code 3 - Supervisory Panel => H

  • Mac issues with iSync and N95

    I have just upgraded to an N95. I run an iMac with OSX 10.4.11 & iSync 2.4 and have installed the Nokia iSync plugin (and the Multimedia Transfer software. I have no SD or SDHC card installed in the N95. I connect the N95 in PC Suite mode as recommen

  • Trash problems

    Hi, i deleted an old copy of Iphoto and moved to the trash. When trying to erase from the trash...it states that certain items are in use and will not delete. I have tried from finder to secure delete and this does not work either. Any suggestions pl

  • Tracks skipping within the track in iTunes 11.1.5, Windows 7

    I am currently having trouble with the tracks in my iTunes library skipping within the track as it streams, is there something I can do to resolve this? Initially I thought it was just the songs that I bought through iTunes that were having issues bu

  • ASE Sybase Client 12.5.1 VS EncryptPassword

    When using client 12.5.1 and attempting to connect to a server that requires EncryptPassword, setting the EncryptPassword to 1 in the connection string doesn't help. But if to set connection from ODBC Administrator with Password Encryption enabled, c