Write to Citadel database from LabVIEW?

Hi. I'm a newbie when it comes to Lookout and the Citadel database... so here's my question for you all:
We have various labview applications that log data from instruments. We would like to be able to take this data and store it as "tags" in a Citadel database.
What do you think is the best way to do this?
There are ODBC drivers for the Citadel database, but they appear to only allow you to query the database to retrieve values... you can't write data to the database (so its read-only).
Are they any "Lookout VIs" or Citadel VIs that can write to the Citadel DB from LabVIEW? Or a DLL or something?
Any ideas?
regards,
John Paul

Very nice question John Paul. I take it you already have Lookout and LabVIEW. In this case, with the latest versions of either, simply use the LabVIEW datasocket to publish the items on your front panel. Lookout then can subscribe to these once you register the LabVIEW computer. Once you have subscribed to them in Lookout, you are then able to set up logging. You may need to create an expression object to route the data to citadel.
If you just want to use LabVIEW and the Citadel database, you might try VI Logger. This works in our configuration utility - MAX, and also comes with a set of VIs for LabVIEW. One caveot, the Citadel database in VI logger is newer (and faster) than the Citadel database in Lookout. I believe NI is working to synchronize
the version in the future, and its hard to say when. So till then, you would not be able to merge data in the dislike citadel databases. However, you can always use and ODBC call set to extract from both and store in a more permanent SQL database such as access, oracle, ms back office, etc.
Good Luck,
Preston Johnson
Business Development Manager
Industrial Applications
National Instruments
Preston Johnson
Principal Sales Engineer
Condition Monitoring Systems
Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
National Instruments
[email protected]
www.ni.com/mcm
www.ni.com/soundandvibration
www.ni.com/biganalogdata
512-683-5444

Similar Messages

  • Accessing mySQL database from Labview PDA

    Hi,
    Has anyone tried writing data to a mySQL database or any other database for that matter using the Labview PDA module?  I know it's easy to do from Labview and you have to download the ODBC drivers to get it working but I don't think these drivers are available for Windows Mobile (I've seen XP and Linux drivers only).  Any help would be appreciated.
    Thanks

    Hello,
    I don't have experience with this, but you might look into the following:
    1. remote connections: http://www.geekzone.co.nz/content.asp?contentid=2656
    2. this thread seems to indicate .NET doesn't support it yet (but it's over a year old...): http://forums.mysql.com/read.php?38,73109,73109
    3. Another option - you can use VI Server to have your PDA VI call a VI on your host machine if they are networked... there is an example of this that ships with LabVIEW PDA I think - check it out!  Thus, if the db is on your host machine, you could write your host VI, and have your PDA VI call it etc.
    I hope this helps!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Recover Citadel Database from Corrupt Hard Drvie

    Hey All,
    I recently suffered a hard drive failure / corrupted hard drive.  However, I was able to recover several Citadel 5 database files from the corrupted drive.  For example, I have 16 GB of CDPG files that I was able to recover.  I might be able to recover other file types too, if I knew what I needed.
    Is there anyway to recover these data and put them back in Citadel?  Anway to view the data at all?
    Thanks in advance for any advice / help!
    Mike

    Hi,
    The link bellow shows the extension files used by Citadel databases. If you can perform a search by the extension of the file (*.thd) you will be able to recover your files.
    http://digital.ni.com/public.nsf/allkb/A9A702342A4E332C86257807006D3D5D
    Regards,
    MCOTO

  • Write to the database from a BI Publisher report

    I have a requirement to setup a BI Publisher report that writes a snapshot of data to a database table whenever the report is run.
    Putting aside whether doing this is a good idea or not (I'd prefer not to do it for security reasons) if I were to do it in SQL server (that i'm more familiar with) I'd write a stored procedure that does this and enter "exec storedprocedurename" as the report query.
    From searching through this board I see that I'm supposed to use a pipelined function instead of a stored procedure but I'm unclear if once I have setup the pipelined function that I'll be able to achieve my objective of both returning the data to the report as well as writing it to a snapshot table, is this possible? If so then I have some questions as I don't really understand the syntax with my limited pl/sql knowledge.
    create type numset_t as table of number; --where does this go, it doesn't appear to be part of the function?
    create function f1(x number) return numset_t pipelined is
    begin
    for i in 1..x loop
    pipe row(i);
    end loop; -- do I need to do a looP? i just want to do select *...
    return;
    end;
    select * from table(f1(3)); -- again this appears to be outside the function, where does it go?
    Thanks
    Bruce

    Jorge:
    I was looking into something similar some time ago. The suggested solution may or may not work for you, depending on what it is you want to write to the tables. I was trying to write audit information - who ran what report when. Through BI Publisher template variables I could get the who and the when, but not what report was being run, so the report trigger option wasn't of any use to me.
    In the end, I opted to change the attributes of the report so that the "show controls" checkbox is unchecked and make users run all reports through BI Publisher Scheduler. It turns out that reports run via the scheduler have all of that data saved off and you can see it from the Schedules/History display.
    Good luck,
    Gaff

  • I want to add record to database from labview thanks to ActiveX

    I want to know how I can access to records which are in a field of a table of My database ACCESS ???
    I've begun to open a database with an ActiveX, then I've opened a recordset, but I don't know how I can access to records of any field...
    Could someone help me ???
    Thanks in advance
    hasna
    PS: I send you my VI and I have no database toolkit and I work with labview5.
    Attachments:
    écriture_de_la_base.vi ‏37 KB

    Find attached example. It was converted from 6 to 5. Therefore, let me know if it's not working and I'll post a screen capture of its block diagram. The example replaces the last entry in one table containing one string column.
    Hope this helps
    Attachments:
    Editdatabase_Me.vi ‏50 KB
    MyExample.mdb ‏74 KB

  • Write data on database ACCESS from labview

    Hi!
    I want to write on a table of database from labview... I have already succeeded in opening the base and the table but I don't know how write on it... I know that I must use
    with Table
    .Addnew
    Table.Fields(0)=what I want to write
    .update
    end with
    But how do it with labview ???
    Thanks in advance
    hasna
    Attachments:
    lecture_de_la_base.vi ‏35 KB

    Hi Kiki,
    I believe you have another Developer Exchange Forum open for this issue. To keep them similar, I am attaching an updated version of your VI. It is wired to read any errors which occur in the VI. I received error -2147221164. This does not help too much, because the meaning of this error depends upon the ActiveX server. You will want to run this VI yourself, see which error you get, and then consult the ActiveX Server documentation to find the meaning of the error.
    J.R. Allen
    Attachments:
    criture_de_la_base.vi ‏37 KB

  • Editing tag values logged in tag history / citadel database

    Hi,
    I having been logging data from input/output tags and memory tags to my citadel database over the past week and due to some errors in my vi (my fault) some values are showing on my trends that are incorrect. These values are affecting my calculations (e.g. zeros, infinite numbers etc) and I would really like to delete them if possible.
    Does anyone know a way of going in to the database/tag history and selecting and deleting values whilst still leaving other data in tact?
    Many thanks,
    Stuart

    You can remove the data from a Citadel database using LabVIEW, Lookout or Measurement and Automation Explorer (MAX). This is a two step process:
    First you archive the data that you want to delete. When archiving, choose to delete this data from the original database. The archiving operation will move the data from your database to new database.
    The second step is to delete the new archived database. This removes the extra database that was created by the archive operation. Once the data has been archived you can remove the archived data by either deleting the database manually or by using file VIs from LabVIEW.
    The document elaborates this process for MAX, LabVIEW and Lookout separately
    Measurement and Automation Explorer (MAX) You must have Historical Data Viewer installed. It comes with Lookout 5.0 and LabVIEW DSC 6.1.
    To remove the historical data in MAX, follow these steps:
    Under the Historical Data folder in MAX, select the database that you want to remove data from.
    Right-click the database and select New View»Trace. This creates a trace view with the default name of New View under the database folder.
    On the Trace Attributes page, click on Add new traces. Select the traces you want to archive.
    Select a starting and stopping time.
    Right-click New View and select Archive.
    Enter a directory path to store the archived data.
    Check the Delete data from source database checkbox to delete the data from the source database.
    Click Start.
    Once it is complete, click Close.

  • How can I control a base ACCESS from labview ?

    Hi,
    I'm working on a projet on labview and ACCESS and I want to say how can I do to control a database from labview ???
    Thanks in advance
    Cordially,
    Hasna

    On Tue, 9 Jul 2002 02:50:12 -0700 (PDT), kiki wrote:
    >could you give me more informations about Database Connectivity
    >Toolset ???
    >
    >I notice that we can write data in excel file thanks to an ActiveX but
    >is it possible with a table ACCESS ??
    DCT it's a suite of VIs (I think Optionals) the contains anything you
    need to connect to to a DB.
    I used them with access... since I'm not really happy with performance
    (read/write max 50 records/sec) it's quite quick to develop
    applications that read/write DB.
    (Write a Cluster it's trivial.... plug the cluster, prepare a table
    with fields of the same type and the same order, yo've did it)
    I think you can also use ActiveX, but I've never did.

  • Can i insert data in my database from a web intelligence report?

    if that's not possible,can I do it from a stored procedure based Universe or with a derived table? Does BusinessObjects in general allow me to execute statements to insert data in my database?

    Hi Erika,
    afaik it is not possible write back to database from web intelligence .
    from dashboards with web services you can achieve this.

  • Multiple writes possible in DS in labview but not in CVI?

    Hi
    Am using Datasocket to communicate between to VI's, In one of the VI's am opening a new dataitem in "readwrite" mode and doing both read and write operation, and in the other VI am just writing on the dataitem by supplying the URL to the write function, surprisingly this is possible even though i havent created the dataitem from DS manager and have not selected the option of "allow multiple writes".
    But if am creating a CVI application, which opens the dataitem in "readwrite" mode, and if i write on that dataitem from labview, it gives me an error, i even tried selecting the "allow multiple write" on this dataitem.
    Please suggest some solution. Also if i open a lot of Dataitems will it cause any problems?, i guess our project needs atleast 100 dataitems if i will have to use command and response in different dataitems.
    thanx for the help
    Arun

    Hello,
    The following Knowledge Base describes two possible soltions for this issue.
    Why Does My DataSocket Connection in LabVIEW Fail with "Error: Can't connect to data item, another w...
    The second solution is what you have already described with checking the box to Allow Multiple Writers. I am not sure why that is not working in your case, but I would suggest trying the first soltuion suggested in the KB. It involves creating the datasocket item a certain way in LabVIEW, and more details are available in the KB.
    Scott Y
    NI

  • Query SQL from LabVIEW

    I would like to get the serial number of a part just being tested. This info is stored in a SQL database. The info I got from the database administrator is as follows.  
    Host: partdb.mlp.abcd.comPort: 1433 Database Name: part
    Read Only User Id: yyyy
    Password: xxxx
     Example query for engine serial number between certain time period:  select *from tdheader h inner join tdstage son h.s_sno = s.s_snowhere h.testCellNo = 5and h.endTime between '3-15-2010 7:00:00' and '3-15-2010 8:00:00'  
    How do I query the database from LabVIEW? Thanks.
    Ian

    Example query for engine serial number between certain time period:  
    select *
    from tdheader h inner join tdstage s
    on h.s_sno = s.s_sno
    where h.testCellNo = 5
    and h.endTime between '3-15-2010 7:00:00' and '3-15-2010 8:00:00'

  • Send serial from LabVIEW to 8051 mc

    Actually wat i need is. My project is online temperature control. I'm receiving my dac value tat means temperature from rtd is getting in LabVIEW using 8051 board. But now I need feedback error voltage to send mc from LabVIEW. Tat means if my condition is true I have to send port on tat means 5v if my condition false I have to send 0v tat means port off

    Your question does not seem directly related to LabVIEW or serial communication. You program the micro to send 0/5 volts. What you write to the micro from LabVIEW is up to you and how you write the micro code. Send ascii text (i.e. ON/OFF) that your micro decodes or a single character (i.e 0/1). What have you tried and where are you stuck?

  • ODBC from LabVIEW 4.1

    Hi.
    I need to access to odbc database from LabVIEW 4.1. I looked through
    the online reference and found that it looks like that the only way to
    do it is to buy additional pack for accessing the DBases. For me it is
    not the best case, though.
    Is there any other way to work with odbc databases than that?
    Thank you.
    ---Dmitry Rozmanov.

    This was already taken care of here: http://forums.ni.com/t5/Version-Conversion/convert-vi-from-LabVIEW-4-1-to-LabVIEW-2013/td-p/2735335
    For future reference place all of these type of requests in the Version Conversion subforum.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • How to import measurment data from a Excel File to Citadel DataBase?

    A Microsoft Excel File is being created in a PC and I want to include that flie´s data into my citadel Database wich is in another PC.

    I give a example "Importing Spreadsheet Data to the Citadel Database" in the LabVIEW Version 6.1 and LV-DSC 6.1.
    LabVIEW 7.0 with LV-DSC you must in the ini file "DSCEngine.ini"
    set NoShutdownLog=1 and UseServerTimestamps=TRUE.
    kind regards
    amcholger
    Attachments:
    Write_File_to_Citadel_Example.zip ‏139 KB
    Write_File_to_Citadel_VI_Server.zip ‏289 KB

  • How to read files from MIT-BIH arrhythmia database using labview

    hello friends,
    How can i read the files from MIT-BIH arrhythmia database using labview 8.6. These file extensions are in different format ie is .atr, .dat and .hea
     The link for the following database is below, any example vi for reading this data in labview would be very useful.
    http://www.physionet.org/physiobank/database/mitdb​/
    Message Edited by infra444 on 01-27-2009 07:01 AM

    You will find some help here.
    http://www.physionet.org/physiotools/matlab/#wfdb
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

Maybe you are looking for