Citadel data to LV vi to Diadem

I need to get a histogram into a report in Diadem. Unfortunately I cannot create a histogram directly in Diadem so I need to get data from my citadel database into a vi and from the that vi into a histogram vi then send it to Diadem from Labview. Has any one done this before? I need an example to go by.
Roy L. Costa
Email: [email protected]
Catalyst Test Engineer
General Motors Warren Tech Center (R & D)

Hello,
If I understood correctly, your problem is the data transfer from LabVIEW to DIAdem. In Principle, there are two possibilities to share data between those applications. Fist, via a measurement file, and second, via the OLE Interface of DIAdem.
On our homepage you can download a free toolkit containing VIs and examples for this kind of applications.
The easiest method which does not require additional programming is to save the data into a LabVIEW Measurement file (.LVM) and load it in DIAdem. This requires at least LabVIEW 7 and DIAdem 8.1.
Regards
Ingo Schumacher
Applications Engineering
National Instruments

Similar Messages

  • Need help opening a Citadel data store from DIAdem.

    Hi,
    I was wondering if anyone can help me connect to a Citadel data store from DIAdem. I have read all the online help and can't get it to work.
    On my PC, I am using DIAdem v11.1 and have Lookout v6.1 installed as a plugin. I am trying to connect to a Citadel 5 data store on a server shown in the image below, specifically the default database on HPSERVER1. The installation of MAX on HPSERVER1 tells me it has 2 versions of LabVIEW Run-Time installed, being 8.2.1 and 9.0.1 (I'm not sure if this is relevant).
    When I select \\hpserver1\default_database, I then set the properties as follows:
    In the Advanced section, I have the timeout set to 90 s. When I hit OK, I then get the following message, which then takes me back to the previous screen.
    Any help is much appreciated,
    David.
    Solved!
    Go to Solution.

    Hi Brad,
    Thanks for replying. I had a thought that maybe my Windows firewall was the problem and that turned out to be true. As in I turned it off and suddenly I could see data.
    Regarding upgrading to Lookout 6.2 (which I haven't yet done), the Lookout Release Notes recommend uninstalling previous versions first. Do you know how to do this? I tried the NI License Manager, but Lookout doesn't even register (see image below). Is this normal? Neither does Lookout appear in Windows Add/Remove Programs. Yet I know it is on my PC, there is a folder <C:\Program Files\National Instruments\Lookout 6.1> full of .dll and .exe files.
    By the way, what is the difference between using Lookout 6.2 and using the DIAdem Development System available at the link below. Is either one preferable?
    http://joule.ni.com/nidu/cds/view/p/id/563/lang/en
    Regards,
    David.

  • Date and Time channels in Diadem files

    I'm developing a tool to convert data files from or own format to Diadem data files format, producing a header (.dat) and a binary file (.r64).
    From my source data files, I have to convert a date channel and a time channel. Is there a way to store such channels in binary format (in the .r64 file) ?
    I got the GFS's pdf "Description of the Data formats and File set properties", but I didn't find any info about binary date or time channels.
    Thanks for help.

    Michel,
    The starting point is 01.01.0000 at 00:00:00. This time/date is the value '0'. The DIAdem time channels will be accurate until at least 12/31/2078, starting at 10/15/1582. This is due to changes made to the Gregorian calendar made back in 1582 concerning leap years.
    Today (04/18/2202) at 1:00:00 PM (13:00:00 military time) would be the value 6.31862676E+10. This number represents the number of seconds that have passed since 01.01.0000 at 00:00:00.
    DIAdem provides two functions to convert numbers into time data and time data into numerical data. They are TTR (time to real) and RTT (real to time). The DIAdem help system contains additional information on how to use these functions.
    Let me know if there is any additional information I ca
    n help you with.
    Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • I'm trying to import raw data from excel file to diadem, how can i do that, and also i want to know if i can put header for it or not?

    i'm using diadem version 8.1, and my operating system is windows Me.
    i'm also want to know if the diadem hae an "undo button" or not??
    Thansk.

    Hi,
    To import EXCEL files you can open the device DATA and then go to the menu FILE->OPEN. In the following dialog you must set the FILE TYPE to Excel. If you open an Excel file with that settings the Excel-file-import-wizard will be launched. With the wizard you configure the parameters which should be imported (that includes header parameter too). Please refer to the NI-Web page to get the latest service pack "SP1d" for the Excel import filter (http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C104B?opendocument&node=132070_US)
    Yes, in DIAdem 8.1 we support undo for displacements in the device GRAPH. For DIAdem 9 we expand this functionality.
    I hope this information will help you.
    Greetings
    Walter Rick

  • How do I verify that the Citadel data tables Trace and Points are being updated?

    I am using MSQuery to look at the data in my Citadel database, but it appears there is no data in the database. There are transactions in the A/E viewer. I am totally new to lookout and citidel. TIA.

    Hi Jeff,
    Here are some old articles on accessing Citadel 4 data from MSQuery and MSAccess. These should at least give you a starting point:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/85CECF0AEEC5B1B28625680800733CC6
    http://zone.ni.com/devzone/conceptd.nsf/webmain/0A3D4EEAC9208065862568080072DB9F
    Also, do you have NI-MAX? You can check for data in there too.
    Hope this helps,
    Khalid

  • Display archived citadel data mixed with "live" Lookout machine data using Hypertrend object?

    Maybe a new feature request item?
    It would be really nice if you could use a Hypertrend object in Lookout to plot historical data from an archived Citadel database.  So this would be a feature where you could connect an additional (or many) additional databases as machine processes in (read only mode of course).  This would allow mixing display objects (trends) of running processes along with display objects (trends) of archived "processes" in the same Hypertrend display when using Hypertrend in the historical mode.
    The Lookout Hypertrend object is awesome and it is about time you folks gave Lookout some attention again to exploit its power and coolness.
    Thanks and Happy New Year!!

    The hypertrend use Citadel service to transfer the data between computer, while the live data is different, so your problem is probably in networking setting or firewall.
    If you have firewall on either computer, follow these KBs.
    http://digital.ni.com/public.nsf/allkb/0D7B86F4B4D19A5E86256F9A006EECB1?OpenDocument
    http://digital.ni.com/public.nsf/websearch/8AE45BBFA1D7025E862570F200642FD8?OpenDocument
    Lookout client software doesn't install MAX.exe, but if you have MAX.exe on the client computer, you can use MAX to check the connection. In MAX, try to view the remote trace.
    You can also use the NI Hypertrend ActiveX object to check the connection. Create a client process with just a NI Hypertrend ActiveX object. Move it to client computer. Edit its properties and add a trace, then try to view the remote trace. See the attached screenshot. If the Citadel communication has problem, you will not see the database or the trace.
    The ActiveX object doesn't fix the problem, but can tell you whether the remote connection is good or not.
    Message Edited by Ryan.S on 11-14-2008 03:49 AM
    Ryan Shi
    National Instruments
    Attachments:
    1.JPG ‏71 KB

  • Unable to view Citadel data, even though it is there.

    I cannot view the traces with any method other that exporting them.  Historical and Real-time trends give an error:  Error 1.  Invalid Data Type to Trend.  The traces don't graph in MAX, but I don't get an error.  I recently upgraded to version 8.2.1.  This is an XP system.  I detached and reattached the database.  I registered the computer with the database.  I can't think of what else to do.  Help!

    Brian,
    While there is no way to actually bind the level of your alarm to a shared variable, you can change the level programatically.
    The first way to do so would be to create a value change event on the variable that is storing the alarm levels.  When this event occurs, you can then write the alarm level into a property node that references the variable that the alarm is enabled on.  Thus the alarm level will change whenever the level variable is changed.
    The second way would be to compare the two shared variables and set a user alarm instead of an alarm on the variable itself.  I hope this helps.
    Brian Coalson
    Software Engineer
    National Instruments

  • Accessing Citadel 5 or Citadel 4 through ODBC in DIAdem

    Hi,
    I am trying to use the Citadel 5 and Citadel 4 Database. I am making use of ODBC. Can anyone tell me how can I connect to this Database in DIAdem and apply query(Insert, select queries) so that I can load the data from Citadel to the Diadem Data Portal.
    Hoping for a quick response.
    Thanks,
    Priya

    Hi Priya,
    Normally you would use the native Logos driver with DIAdem's built-in features to load data from a Citadel data base, rather than Citadel's ODBC interface. But of course, if you really do want to run queries or insert records, then this is not possible with the Logos API, so your only choice is to treat the Citadel data base as a normal SQL data base and use DIAdem's ODBC functions. I haven't personally done this with a Citadel data base, but at the below Discussion Forum you will find a wealth of examples which show how DIAdem interacts with SQL data bases.
    http://forums.ni.com/ni/board/message?board.id=60&message.id=2053
    Regards,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How can I read realtime data from a data socket using DIAdem

    I am currently routing data from an instrument using LabView 7.1 to a data socket. I was trying to figure out how to access that data in real time in DIAdem through the data socket. Another option would be to use the downloaded LabView/DIAdem VI package, but I haven't figured out how to get that to work either, despite the forums here. I would prefer to access it through the data socket, if possible, as the amount of information being transferred is negligable (a string and a double).
    Thank you,
    Sinan Sutcu

    You have to use one of the ScriptDAC blocks. In your case, as you would like to fetch data from a LabVIEW vi, choose the out of the driver input palette. Inside the configuration dialog you can generate a sample script, which is then copied to the windows clipboard. It contains a lot of function prototypes which will be automatically called later during the measurement.
    Basically, the init functions are called during the start of the measurement - here you should connect to the activeX server, the deinit functions are called when stopping the measurement - disconnect from the server here.
    Then there is the function SFD_Readchannel, which is called once for eych tact and each channel you configured. Here, you should exchange the data with your VI.
    I am attatching an example I wrote to control a LabVIEW vi (doing a counter output operation)- that is why the data exchange works the other way around, but I hope it explains the principle.
    Additionally I am adding documentation about the ScriptDAC driver interface.
    Regards
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany
    Attachments:
    MultiCounterOut.zip ‏995 KB
    Script DAC Driver.zip ‏734 KB

  • Pivoting date data in Diadem - summarising data by grouping

    Hi,
    Is there a way to summarise date data in Diadem?
    For example, if I have a file with the following headings:
    Date/time, on/off, duration
    The Date/time column is recordrded in date, hours and seconds,
    the on/off is either 1 or 0
    duration is the difference in time values when on/off is 1.
    Is there a way to summarise the date data by day or possibly by month? (The corresponding numbers in 'duration' would need to be assigned to the appropriate day or month)?
    The equivalent calculation tool would be a pivot table in Excel.
    Look foward to a response.

    Hi Brad,
    Thank you for your prompt response.
    I have attached a file in the code section with some data. (Apologies for this, but the NI website said the content did not match the filetype). (I will try and get this right and send the attachement as an excel file. DIADEM should be able to read in the text file).
    The columns are as follows: Event, Date,Time,Duration On,State.
    (please note 1) that in the 'event' column there are 5 boilers - good for pivoting once grouped per boiler,
                         2) that 'State' is either a save or a bypass - also good for pivoting i.e. which days and boilers were in bypass, and which days and boilers were in save)
    I would like to be able to summarise the data as follows:
    Show a period(group by month or year) the sum of the Duration On, then display the result on a monthly histogram showing for example daily Duration On vs date.
    Then
                       on an annual histogram showing for example monthly Duration On vs month.
    As the last part of the exercise, how can I break out doing the 2 steps about for each of the 5 seperate boilers and show when each of the boilers were in a save or a bypass?
    (Is a pivot table in excel required or can all the data processing be done in DIADEM?)
    I appreciate your assistance in resolving this issue.
    Sincerely
    HotCold
    Attachments:
    Heathrow.txt ‏442 KB

  • Options to edit historical data in Citadel database (Lookout 6.0)

    We are running a new installation of Lookout 6.0
    I am looking for ways to edit the historical data that is found in the Citadel database. For example, if an alarm clears before I can enter comments, I would like to go to the database after the fact and enter comments regarding the alarm.
    We are running this on XP pro operating system.
    Thanks,
    Alan

    Hi Alan,
    I am afraid this will be difficult, if at all possible.  Citadel data, by design, can be written to (and edited?) only by the product using it, i.e., Lookout, LabVIEW-DSC, etc.  Outside of these products we can only retrieve the data -- not edit or add to it.  As you are probably aware, some of the options for writing user data (as opposed to IO/system data) from within these products is to use the Logger Object in Lookout and the VI-Server approach in DSC (http://zone.ni.com/devzone/conceptd.nsf/webmain/5a921a403438390f86256b9700809a53). 
    So, I guess one option is to "annotate" / write additional data separately using the Logger Object, referencing the Alarms somehow.
    Having said that, I believe Lookout 6.x (Citadel5) uses MSDE for storing Alarm data (other data is still stored in the native Citadel database).  You could explore this -- try opening the MSDE database from Query Analyzer, from instance, and see if it can be edited.  I haven't tried this. 
    Hope this gives you some ideas. 
    -Khalid

  • Is there a Diadem script or command to determine the maximum lag of cross correlated data?

    I am analyzing multiple data sets and ultimately need to plot and align 3 similar curves based on the the maximum cross correlation lag.  Is there a function that will do this in Diadem or has anyone written a script to do so?  I am new to Diadem and am still learning how to do this.  I know I can do it in Matlab...the generic coding is
    %calculate cross-correlation
    c = xcorr(a,b - mean(b),'coeff');
    % return maximum value and its index
    [d,f] = max(c);
    timelag = (length(a) - f) * timestep;
    I would really like to figure out how to do this in Diadem as it seems like it will be easier based on the amount of data I am going to have to analyze.  Any thoughts would be greatly appreciated.  I have found and was looking at the cross correlation function in the signal analysis toolbar but I do not see where lag is calculated.
    thanks!

    Hi jgabe,
    Here is an example VBScript that uses cross-correlation to time shift all equivalently named channels across the various groups in the Data Portal.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Linearize Data.zip ‏43 KB

  • Save DAT with userdefine​d property in DIAdem

    Hi,
    I am working with DIAdem 9.1. Using
    DataFileLoad(...)
    GroupPropCreate(...)
    GroupPropSet(...)
    we load a data-file and store some information of the file in new properties. This works, we see the new properties and correct values in DataNavigator.
    Afterwards, we want to save the datafile together with the new properties using
    Call DataFileSaveSel(FileDlgFile+FileDlgExt, "DD8x", "'[1]/[1]' - '[1]/[" & GroupChnCount(1) & "]'") 
    However, the new properties are not saved. When we open the file again, the properties dont exist.
    Can anybody help, please?
    Thanks
    Thi

    Hello Thi,
    properties are a new feature from the DIAdem 9 dataset-format (files with the extention .TDM). With the option "DD8x" you store the data in the old dataformat DAT (until verstion 8 of DIAdem). The properties can not be stored in this format.
    Change the format into TDM or use the old way to store comments.
    In the DAT-file-format you can store 100 comments (couples of name + value):
    dataSetCommentN(i)
    dataSetComment(i)
    with i in 1..100.
    A. Weiland
    Andreas Weiland
    Projektingenieur
    measX GmbH & Co. KG, www.measX.com

  • Appending or Replacing data sets in DIAdem

    I was wondering if there was an easy way to take new data points and append them to old data points already loaded into DIAdem.  Similarly I would be interested in just replacing the old data with the new
    I have a data set I have uploaded from an excel file into DIAdem.  Within DIAdem I have manipulated data and made several graphs for presentations.  Since that first upload of data I now have acquired new data.  That new data is in the same format as the old data, it's simply that there are more data points now.  So it would be nice to know how to either append or replace the old data while keeping all the formatting.  
    Right now the easiest way I've found is to copy and paste data into a new Excel file and upload it.  DIAdem scripts have proven buggy and inefficient.  I can't believe Excel would handle appending better than DIAdem.  There must be an easy way to do this that I am missing.  Any help would be appreciated.  

    Hi Stysley,
    Unless you're talking about a huge amount of data, I'd say the easiest and cleanest way to do this would be to delete all your channels in DIAdem and reload them from the (now larger) data file.  Then all you have to do in REPORT is hit the "Refresh" icon.
    It sounds like you are loading your data files into Excel-- does that mean that you have ASCII data files to start with?  The best approach in that case would be to create a DataPlugin for the ASCII data file format and avoid the intermediate Excel step.  Then re-loading the data would be as easy as hitting the "Delete Internal Data" icon in the NAVIGATOR and then dragging the ASCII data file from the NAVIGATOR tree view into the Data Portal at the right of DIAdem.
    If you'll post or email me ([email protected]) several of your ASCII files, I should be able to send you back a DataPlugin you can use.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Selective copying/mo​ving of data from Citadel

    Programming platform : LabVIEW DSC 6.1
    Operating System : Windows NT 4.0 with SP 6.0
    I have about a months data in Citadel. I want to make a copy/move data of selected time period from the entire citadel data base. Iam not able to copy/move selected part of the Citadel data but the entire data is copied or moved to the new location. Please give me a clue.

    In LabVIEW DSC 6.1 there is a new function called "Archive Database.vi". This vi performsa destructive or non-destructive archival operation on a Citadel database. You can also set a time range for the data to be archived.You can find this vi in the Historical Data subpalette.
    Jochen Klier
    Application Engineering Group Leader
    National Instruments Germany

Maybe you are looking for