SQLExec to Remote Citadel db...

I am trying to connect to a remote citadel db to verify that the service is still active.
We have been having some problems with the Citadel db shutting down because of very large ALE file. The only thing that I found to monitor this situation is to constantly try to connect to database.
I have two processes run on two different computers. I want one to monitor the other. However, I can not figure out how to get the SQLExec object to work. I have tried all of the documentation and that does nothing.
Could someone please point me in the right direction so that I can have one process monitor the other processes database.
Thanks

There is another discusion that has an example attached. This walks you through creating a process with SQLExec.
The discussion is, "How to use SQLExec without the ODBC error."

Similar Messages

  • Remote Citadel Access: Only trace list possible

    I can't read traces from a remote Citadel 5 Database. The only thing that works is to get a trace list of the database.
    The Measurement and Automation Explorer can see the remote Database,
    but if I want to expand the database icon to see the trace list, I get
    a yellow/red question mark in it, but no trace list.
    Thank you for all help
    Thomas

    Please follow these links that provide some troubleshooting tips:
    http://digital.ni.com/public.nsf/websearch/7ED8F0419BCAB8BF86256F2A00512AEB?OpenDocument
    http://digital.ni.com/public.nsf/websearch/C5B7A8A219F7EC1086256C4C004FE3A6?OpenDocument
    I hope that helps,
    Jochen Klier
    National Instruments Germany

  • Corrupted remote citadel database

    Hi,
    We are running a Citadel 4 DB (LV-DSC 6.1) on a 365d/24hrs schedule under LV 6.1 RTS / Logos 4.4.0.12. We've had repeated problems with the database being corrupted after a remote readout operation failed. Means the labview client application had to be aborted by the user using the win2k task manager since labview hang without even notifying the user. Can anyone tell us, what kind of problem we're dealing with? Which are the last working (!) fixes for LVDSC 6.1 and Logos which should be running?

    Hi,
    If you haven't applied LabVIEW DSC 6.1 fixes before, here's the link.
    http://digital.ni.com/softlib.nsf/websearch/513AA4A0BB60D10086256B48006D44B5?opendocument
    And here's the link for the latest version of Logos (version 4.5)
    ftp://ftp.ni.com/support/lookout/logos/4.5/
    Please update the Logos on both Server and Client PC.
    Hope this helps.
    Remzi A.

  • Remote Lookout Citadel connection​s with Labview 8.6

    What is the cleanest method to import remote computer citadel data and/or live Lookout process data members into Labview 8.6.  Data Socket or Shared Variables or ... ?
    Thanks,
    Ed

    If you use shared variable or datasocket, it doesn't read data from the citadel database, but all are live data directly from the remote tag. Shared variable is better.
    If you want to read data from the citadel database, read trace.vi can help you. Or use hypertrend to view the historical or live data trend.
    Ryan Shi
    National Instruments

  • Citadel ODBC Queries using Lookout SQLexec

    AAAARRRRRGGGGGHHHHH!!!!!!!
    Why is it so difficult to do queries with SQLexec? I have been trying for
    days to get even ONE query to work on the simplest task. I have studied
    every Lookout Help file on the subject MANY times and even looked through
    some examples that others have provided in this newsgroup. Nothing works!
    I always get a "syntax error" or else "unexpected character ". It seems
    that every database or version of Excel is expecting the quotes in different
    places.
    I have been programming nearly my whole life in many different languages,
    but this task seems much more complicated that it should be. Does anyone
    else have this problem with Lookout and SQLexec?
    All I am trying to do is query Citadel for one-minute averages of my data
    source. I would like to prompt the user somehow to enter the desired date
    and time range and then send the query results to a data table or an Excel
    spreadsheet. I have been successful in using the MS Query with Excel 97 so
    I can see all of my traces and I know they are in there. Since I have had
    no luck using SQLexec so far, I have created a workaround for now that
    generates the 1 minute averages using the "Average" object and then log the
    results to a "csv" file using the "Spreadsheet" object. This has some
    drawbacks since I need to perform some further averaging of my data and
    present it back to the user in a Lookout panel (15 minute and 1 hour
    averages with data validity calculations).
    If anyone has some REAL examples of a working SQLexec function that will do
    this task I would be very grateful for some help. I am using Lookout
    version 4.01.51 (the latest I believe). Below is an example of a basic
    query that I am trying to do (this was copy/pasted from a functioning MS
    Query table in Excel 97).
    SELECT Traces."LocalTime", Traces."Avg{\\geoff\project1\Exp_1}",
    Traces."Avg{\\geoff\project1\Exp_2}"
    FROM Traces Traces
    WHERE (Traces."LocalTime">"9/13/00 13:00")
    AND (Traces."Interval"="01:00")
    Thanks in advance,
    Geoffrey B. Klotz
    GK Associates, Inc.
    TEL: (805) 523-8700
    FAX: (805) 523-1216
    EMAIL: [email protected]

    SQL implemented by Citadel ODBC driver is subset of the SQL standard and is
    optimized for Citadel performance. The major distinctions are:
    1) Database has always two tables TRACES and POINTS (see online help for
    more info)
    2) You can only perform queries (SELECT statement)
    3) You can only search based on LocalTime, UTCTime and Interval columns
    (WHERE clause)
    A Lookout query can include special commands that perform data transforms to
    manipulate and analyze historical data. The AVG transform is one of them.
    Avg{Datapoint} returns the TIME WEIGHTED average for Datapoint across a time
    range. Time weighted means that the Avg transforms takes into consideration
    duration of each value. For example if the Pot1 value across time range is
    for the first 25% of the time 0 and for the rest 75% it is 100 then the
    average is going to be 25 not 50.
    Here is an example how to use the Avg transform in an SQL statement:
    SELECT "AVG{\\comp\process1\Pot1}", LocalTime
    FROM Traces
    WHERE LocalTime > '9/19/2000 6:00:00'
    AND LocalTime <= '9/19/2000 18:00:00'
    AND Interval = '12:00:00'
    This SELECT statement returns one row that represents average value of the
    \\comp\process1\Pot1 datapoint across 12 hours time range starting at 6:00AM
    and its Timestamp. There is a few important things to notice:
    1) The statements are not case sensitive
    2) AVG uses curve brackets {} to enclose the datapoint name:
    {\\comp\process1\Pot1}
    3) The AVG expression is in double quotes: "AVG{\\comp\process1\Pot1}"
    4) Time constants can be either in double or single quotes (refer to on-line
    help for details on formats)
    5) The LocalTime in the select list items (1st row) is optional and in this
    case returns the end of the time range ('9/19/2000 18:00:00'). In other
    words the average is always "timestamped" with the end of the time range.
    The time range across which the average is taken is determined by the
    starting LocalTime (LocalTime > '9/19/2000 6:00:00') and the Interval, it is
    NOT DETERMINED BY THE ENDING LocalTime (LocalTime <= '9/19/2000 18:00:00').
    The AVG transform always try to calculate sequence of averages starting from
    the LocalTime, all of them across the specified Interval (12:00). For
    example:
    1) '9/19/2000 6:00:00' - '9/19/2000 18:00:00' (timestamped as '9/19/2000
    18:00:00')
    2) '9/19/2000 18:00:00' - '9/20/2000 6:00:00' (timestamped as '9/20/2000
    6:00:00')
    3) average: '9/20/2000 6:00:00' - '9/20/2000 18:00:00' (timestamped as
    '9/20/2000 18:00:00')
    This is calculated internally, but only rows determined by the ending
    LocalTime are returned. In this case it was specified as LocalTime <=
    '9/20/2000 18:00:01', so only the first average is returned. The following
    example would return the first TWO rows:
    SELECT "AVG{\\comp\process1\Pot1}", LocalTime
    FROM Traces
    WHERE LocalTime > '9/19/2000 6:00:00'
    AND LocalTime <= '9/20/2000 6:00:00' <-- this rows has changed
    AND Interval = '12:00:00'
    Guy McDonnell
    "newsgroups.ni.com" wrote in message
    news:[email protected]...
    > AAAARRRRRGGGGGHHHHH!!!!!!!
    >
    > Why is it so difficult to do queries with SQLexec? I have been trying for
    > days to get even ONE query to work on the simplest task. I have studied
    > every Lookout Help file on the subject MANY times and even looked through
    > some examples that others have provided in this newsgroup. Nothing works!
    > I always get a "syntax error" or else "unexpected character ". It seems
    > that every database or version of Excel is expecting the quotes in
    different
    > places.
    >
    > I have been programming nearly my whole life in many different languages,
    > but this task seems much more complicated that it should be. Does anyone
    > else have this problem with Lookout and SQLexec?
    >
    > All I am trying to do is query Citadel for one-minute averages of my data
    > source. I would like to prompt the user somehow to enter the desired date
    > and time range and then send the query results to a data table or an Excel
    > spreadsheet. I have been successful in using the MS Query with Excel 97
    so
    > I can see all of my traces and I know they are in there. Since I have had
    > no luck using SQLexec so far, I have created a workaround for now that
    > generates the 1 minute averages using the "Average" object and then log
    the
    > results to a "csv" file using the "Spreadsheet" object. This has some
    > drawbacks since I need to perform some further averaging of my data and
    > present it back to the user in a Lookout panel (15 minute and 1 hour
    > averages with data validity calculations).
    >
    > If anyone has some REAL examples of a working SQLexec function that will
    do
    > this task I would be very grateful for some help. I am using Lookout
    > version 4.01.51 (the latest I believe). Below is an example of a basic
    > query that I am trying to do (this was copy/pasted from a functioning MS
    > Query table in Excel 97).
    >
    > SELECT Traces."LocalTime", Traces."Avg{\\geoff\project1\Exp_1}",
    > Traces."Avg{\\geoff\project1\Exp_2}"
    > FROM Traces Traces
    > WHERE (Traces."LocalTime">"9/13/00 13:00")
    > AND (Traces."Interval"="01:00")
    >
    > Thanks in advance,
    > --
    > Geoffrey B. Klotz
    > GK Associates, Inc.
    > TEL: (805) 523-8700
    > FAX: (805) 523-1216
    > EMAIL: [email protected]
    >
    >
    >

  • Citadel 5 Remote ODBC Permissions

    I am using the CitadelRemoteODBC DCOM configuration to provide ADO access to our Citadel 5 databases through Excel.  I have various spreadsheets that works as long as an administrator is logged into the machine running the Excel spreadsheet.  Other users get no data returned or a permissions error (depending on the coding for that specific sheet).  Anybody have any clues why?
    Solved!
    Go to Solution.

    I think I answered my own question, although I do not know if this is the best way to handle this or not....
    On the server where the Citadel database resides, go to the Component Services administration, Right click on "My Computer" and click properties.  Go to the COM Security tab.  As a gross reality check, I made changes to all 4 items, I have not yet tested if limiting 1 or more of these or the associated options will still allow the access....
    Access Permissions:
      Edit Limits:  Add the domain user or group an make sure the box is checked to "Allow" for both Local and Remote Access
      Edit Default:  Add the domain user or group an make sure the box is checked to "Allow" for both Local and Remote Access
    Launch and Activate Permissions: 
      Edit Limits:  Add the domain user or group an make sure the box is checked to "Allow" for Local Launch, Remote Launch, Local Activation, and Remote Activation
      Edit Default:  Add the domain user or group an make sure the box is checked to "Allow" for Local Launch, Remote Launch, Local Activation, and Remote Activation
    Once these changes were made, all users within the domain group I had defined were able to run the ado query.

  • Remote ODBC Connection - Citadel

    Hi
    I have a citadel 4 database running on a PC (PC-A).  I wish to access the database from a different PC (PC-B) which has logos 4.5 installed but I am having difficulty getting the ODBC connection to work.  The situation is as follows:
    Using PC-A, I can access the database using ODBC but cannot access PC-A's database from PC-B using UNC nor mapped drives.
    If I copy the database from PC-A to PC-B and change the ODBC data source properties on PC-B to point to the local database then I can access it.
    I have no problems in browsing or creating files in the directory on PC-A that hosts the database. 
    The error that is being thrown up on PC-B is as attached.  It would appear that the ODBC is fine as long as it's kept local and not over the network.
    Any assistance would be greatly appreciated.
    Attachments:
    error3.JPG ‏25 KB

    "Does it happen just after you create the connection without no query execution?"
     Yes, but I think technically, Access does a query just to setup the table so that is when it crashes the server.
    The DSN is through a mapped network drive to the remote database path.  It was not a valid MAX attached database.  So It may have been this bastardized setup.  Although the mapped drive had permissions, the machine did not have permissions that it would need to go through "MAX" because the machine was not a member of the domain, so automatic user authentications would be rejected.
    I will try with a remote machine that is a domain member and would therefore pass all appropriate permissions using MAX to attach the data source.  I will also try to recreate the crash using the domain machine.
    I also had nicitdl5 hang tonight during a simple client hypertrend trace-back a few days of data.  I could see where the data stopped being sent by the missing trace endpoints on the trend.  After recovery on the server, I tried the exact same hypertrend trace-back and this time it was fine.  Citadel still needs some stability work!!!
    Ed

  • SQLEXEC not able to filter extract on sql statement or function call.

    hi all,
    i'm trying to do some basic extract filtering using a stored function and am not having much success.
    i started off using a procedure call but have been unsuccessful getting that working, i've simplified
    it to use a sql statement calling a function for a value to filter on, but cannot even get that to work.
    i've read through the documentation and i cannot figure out what is going wrong.
    any help would be much appreciated.
    thx,
    daniel
    function code is very simple, just trying to get something working.
    FUNCTION f_lookup_offer_id(v_offer_id IN offer.offer_id%TYPE)
    RETURN company.name%TYPE IS
    lv_company_name company.name%TYPE;
    BEGIN
    SELECT c.name
    INTO lv_company_name
    FROM orders a, offer b, company c
    WHERE a.offer_id = b.offer_id
    AND b.company_id = c.company_id
    AND a.order_id = v_order_id;
    RETURN lv_company_name;
    END f_lookup_offer_id ;
    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.1.1.0.0 Build 078
    Solaris, sparc, 64bit (optimized), Oracle 10 on Jul 28 2010 13:26:39
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    EXTRACT EATUOP1
    INCLUDE ./dirprm/GGS_LOGIN.inc
    EXTTRAIL ./dirdat/up
    DISCARDFILE ./dirout/eatuop1.dsc, append , MEGABYTES 50
    DISCARDROLLOVER ON SUNDAY AT 06:00
    -- Database and DDL Options
    -- Added to avoid errors when setting unused columns
    DBOPTIONS ALLOWUNUSEDCOLUMN
    -- Get full row for deletes
    NOCOMPRESSDELETES
    -- Get updates before
    GETUPDATEBEFORES
    -- If commit SCN that is not greater than the highest SCN already processed error
    THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 15000 IOLATENCY 6000
    -- Retains original timestamp. Currently using GMT
    NOTCPSOURCETIMER
    --TABLE DEFS
    TABLE master.OFFER,
    SQLEXEC ( ID ck_offer,
    QUERY " select master.f_lookup_offer_id(:off_id) is_company from dual ",
    PARAMS (off_id = offer_id),
    BEFOREFILTER),
    FILTER (@GETVAL (ck_offer.is_company = "Google, Inc."));
    does not give any errors, but also does not capture any data, it's filtering everything out and trail files are empty, minus a header.
    thoughts or help?
    2012-04-04 22:17:36 INFO OGG-00993 Oracle GoldenGate Capture for Oracle, eatuop1.prm: EXTRACT EATUOP1 started.
    2012-04-04 22:17:36 INFO OGG-01055 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Recovery initialization completed for target file ./dirdat/up000022, at RBA 978.
    2012-04-04 22:17:36 INFO OGG-01478 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Output file ./dirdat/up is using format RELEASE 10.4/11.1.
    2012-04-04 22:17:36 INFO OGG-01026 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Rolling over remote file ./dirdat/up000022.
    2012-04-04 22:17:36 INFO OGG-01053 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Recovery completed for target file ./dirdat/up000023, at RBA 978.
    2012-04-04 22:17:36 INFO OGG-01057 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Recovery completed for all targets.
    2012-04-04 22:17:36 INFO OGG-01517 Oracle GoldenGate Capture for Oracle, eatuop1.prm: Position of first record processed Sequence 13469, RBA 21894160, SCN 1789.722275534, Apr 4, 2012 10:12:40 PM.
    -rw-rw-rw- 1 svc_ggs 502 978 Apr 4 22:17 up000023

    got it working, this seems to be about as simple as i could formulate it. thanks for pointing me in the right direction.
    TABLE GGS_TEST_EXT, &
    SQLEXEC ( ID co_count, &
    QUERY " select f_lookup_company_name(:P1) x from dual ", &
    PARAMS ( P1 = company_id), BEFOREFILTER), &
    FILTER ( @GETVAL (co_count.x = 0) );
    then i have a function that returns 1 or 0, depending on the company id passed in.
    thx,
    daniel

  • Remote historical data is not retrieved completely viewing it in MAX4

    Hi,
    since I installed LabVIEW 8 I have some problems retrieving historical data from another computer. Sometimes not all data is retrieved (if I zoom in or out or move back in time) and this missing data won't be retrieved ever.
    I already deleted the Citadel cache once, but after this even less data was retrieved... What's really weird, is, that for channels which weren't retrieved correctly, the data gets not updated anymore!
    On the remote computer I have a LabVIEW DSC Runtime 7.1 running (MAX 3.1.1.3003) on my local computer MAX 4.0.0.3010 and LabVIEW 8 DSC (development system) is installed parallel to LV DSC 7.1.1 (dev system). LV 8 is installed for testing purposes (I doubt we'll switch soon) and overall I like MAX 4. The HyperTrend.dll on my local computer is version  3.2.1017.
    This is really a quite annoying bug!
    So long,
        Carsten
    Message Edited by cs42 on 02-02-2006 09:18 AM

    Hi,
    > We've been unable to reproduce this issue. If you could provide some additional information, it might help us out.
    I did fear this, as even on my computer it is happening just sometimes...
    > 1) How many traces are you viewing?
    The views I observed this in had 2 to 13 traces.
    > 2) How often are the traces being updated?
    For some it's pretty often (about once a second), for some it's very infrequent (no change in data, that means updated because of max time between logs). I more often see this for traces that are updated very infrequently. But I think I've seen this for frequent traces as well (for these it does work currently).
    > 3) Are the traces being updated by a tag value change, or by the "maximum time between logs" setting in the engine?
    It happened for both types.
    > 4) What is the frequency of the "maximum time between logs" setting?
    Max time between logs is 10 minutes.
    > 5) Is the Hypertrend running in live mode when you zoom out/pan?
    I think it happened in both modes, but it defenitely did in live mode.
    > 6) If you disable/re-enable live mode in the Hypertrend, does the data re-appear?
    I couldn't trigger the loading of the data. All I did is wait and work with MAX (zooming, panning, looking at data) and after quite a while (some hours), the data appeared.
    Just tested this on a view where data is missing (for some days now!), and it didn't trigger data reloading. Zooming and panning don't as well. There's a gap of up to 3 days now for some traces. 7 of the 13 traces of this view are incompletely shown. All stopping at the same time but reappearing at different ones.
    AFAIR from the laboratory computer (these are temperatures and it's very plausable that these didn't change), there wasn't any change in these traces so they all got logged because of max time...
    I just created a new view and added these traces: the gap is there as well.
    (Sorry to put this all in this entry even if it is related to you other questions, but I started this live test with disable/re-enable live mode. )
    > 7)
    Are the clocks on the client and server computers synchronized? If not
    synchronized, how far apart are the times on the two computers?
    They should be (Windows 2000 Domain synchronized to ADS), but are 5 seconds apart.
    One thing I remember now: I have installed DIAdem 10 beta 2 (10.0.0b2530, USI + DataFinder 1.3.0.2526). There I had (and reported) some problems with data loading from a Citadel Database of a remote machine as well. This was accounted to some cache problem. Maybe a component is interfering?
    Thanks for investigating.
    Cheers,
        Carsten

  • Data Logging a programmatically created shared variable of cluster or array datatype into citadel DB

    Hi,
    Is there a way to log a programmatically created shared variable of cluster or array datatype into citadel DB?
    I have attempted to programmatically create a shared variable of type 'double' and was able to successfully log the same into Citadel DB. In the attachment, Please refer to the attached project SV_TC.lvproj and specifically to SV_W.vi for the code that i have used (W.png file shows the dB in MAX and shared variable in NI Distributed System Manager)
    However when i tried the same approach to create a shared variable 'array of double', i noticed that traces are not getting created and hence data logging isn't happening into the Citadel DB. I was however able to write and read the shared variable array without issues. The same is true with cluster datatype also. Please refer to SN_NW.vi for the code that i have used - only difference from SV_W.vi is that i have tried to create a shared variable of type 'array of double'
    One observation is that if i create an 'array of double' or cluster in a shared variable library using the project explorer and deploy, i could see that these being logged into Citadel DB.
    Hence i want to understand what could be done to achieve the same programmatically? Could you please advice?
    Regards,
    Sridhar
    Attachments:
    SV_TC.zip ‏3925 KB

    Why is the transaction happening over remote?
    Because we need the information to be on our database immediately when they submit it.
    I don't know anything about streams or replication.....
    The web database is run by the company that hosts our web site. We use PL/SQL to show the pages and output the html. It fetches the data the customer is requesting from our database, but I'm struggling to get the best way to insert into our database from there.

  • Archive citadel database in MAX hangs

    I am trying to Archive a 4.13 GB uncompressed DSC database on LabVIEW 2013 SP1 (although the database was started with LabVIEW 2013).  I have tried twice and it gets stuck (new location folder size is at 151 MB both times).  The progress bar says "Archiving database=20.5%" and "Copying Data=83.0%".  I have chosen the option "Destroy source data after it has been archived (local computer only)".  The status says "copying data" and I no timestamps of files in the new folder have changed after about 9 hours of waiting.  If I cancel, MAX cannot display any Citadel databases.  This is fixed if i reboot.
    Any ideas?

    Hello barkeram,
    Where are you storing the archive (locally or remote)?
    Are you following the steps in one of the following documents?
    http://digital.ni.com/public.nsf/allkb/E076A0661E03F1EB862571A800079E7B
    http://digital.ni.com/public.nsf/allkb/2B0C74744BB37391862571F500067C64
    Can you try to navigate to the file path of the database and duplicate the file? Afterward, manually add the new database to MAX and try to Archive the new file.
    Regards,
    Thomas C.
    Applications Engineer
    National Instruments

  • Uable to connect to citadel database on network in MAX

    I have a question regarding the "Citadel 5" in MAX 3.0.0.3/LV 7.0 (Win2k environment). Using MAX I can open/browse a database stored on the local PC and browse the tag names, but when I try to connect to a PC on the network with the same configuration, I am unable to browse the tag names of the remote database. I can well see the database name itself on the remote PC. In the database symbol of the MAX browser there is a yellow exclamation mark with red border displayed. I can't find any information what this means.
    The remote PC is configured to allow full access for the local PC. Using the logos:// protocol I am able to read and write to the remote database.

    Yes, I can browse the tags locally on the remote PC.
    Citadel version is 5.
    Here some more system information:
    NI Software Information:
    CVI Run-Time 6.0.4.105
    FieldPoint 4.0
    LabVIEW Interface 4.0.0.21
    IVI Driver Toolset 1.5
    IVI Engine 2.0.0
    LabVIEW Run-Time 7.0
    LabVIEW 7.0
    Advanced Analysis 7.0
    Application Builder 7.0
    Datalogging and Supervisory Control 7.0
    PID Control Toolset 7.0
    Real-Time 7.0
    Measurement & Automation Explorer 3.0.0.3014
    NI Spy 2.0.0.16
    NI-488.2 Software 1.70
    NI-DAQ 7.0.0f8
    NI-DAQmx 7.0.0f0
    NI-PAL Software 1.6.2f1
    NI-SWITCH 2.00.49156
    NI-VISA 3.0
    NIvisaic.exe 3.0.0.32
    NiGpvx32.dll 3.0.0.32
    NiVi488.dll 3.0.0.32
    NiViAsrl.dll 3.0.0.32
    NiViEnet.dll 3.
    0.0.32
    NiViEnetAsrl.dll 3.0.0.32
    NiViGpvx.dll 3.0.0.32
    NiViPxi.dll 3.0.0.32
    NiViRpc.dll 3.0.0.32
    NiViSv32.dll 3.0.0.32
    NiViUsb.dll 3.0.0.32
    NiViVxi.dll 3.0.0.32
    NiVisaServer.exe 3.0.0.33
    viic_ext.dll 3.0.0.32
    visa32.dll 3.0.0.32
    visaconf.dll 3.0.0.33
    LabVIEW DSC 7.0
    LabVIEW Datalogging and Supervisory Control Run-Time System 7.0

  • Citadel database missing trace

    Once again we have a problem.
    Client is running 6.1 (Build 27).  Missing data from a few objects for 2 and a half months!  Suddenly reappears. No machine down tme, no errors, just gone.  Tried to rebuild database, no luck.
    This is becoming a problem, as much as it would pain me to move to a new software platform we may have to at this point.  Constant database corruptions cannot happen when the clients need these reports for internal and other health type agencies.  
    Citadel is a platform that simply is not reliable.  6.2 show the same errors as well.
    Example problem.  Tanks record current, high and low values that are trended.  The low and high disappear but current stays.  And all of the points for the pump (control, monitor and status) are gone ont he same dates.  Then suddenly reappear later with no system restarts at all.
    EDIT: We know the system was working, we log onto spreadsheets as well, the data is correct in there. But the report system is automated in lookout, not an excel type program.
    Thanks, again,
    Mike
    Message Edited by Mike@DTSI on 06-19-2009 01:27 PM
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

    Got some screenshots
    1 - This is one week view from today (07/02-07/08).  The green line (the logical connection for the Control Bit (\\.\ServerWell4\BC)) shows data as being in the database for the hypertrend.(The gold and dark red lines are other wells, which have the same issues.)
    2. This is the SQL pull using the datatable object.  Pulls from the Citadel database.  Looking at the days 07/01-07/08 it shows 0 for everything, but as you see in the last pic, hypertrend sees the data.  The SQL string:
    SELECT MATH_ETM(TO_DISCRETE("TCWDSCADA/Server/Well4/BC")), MATH_starts(TO_DISCRETE("TCWDSCADA/Server/Well4/BC")), MATH_stops(TO_DISCRETE("TCWDSCADA/Server/Well4/BC")), MATH_ETM(TO_DISCRETE("TCWDSCADA/Server/Well4/BM")), MATH_starts(TO_DISCRETE("TCWDSCADA/Server/Well4/BM")), MATH_stops(TO_DISCRETE("TCWDSCADA/Server/Well4/BM")), MATH_etm(TO_DISCRETE("TCWDSCADA/Server/Well4/BS")), MATH_starts(TO_DISCRETE("TCWDSCADA/Server/Well4/BS")), MATH_stops(TO_DISCRETE("TCWDSCADA/Server/Well4/BS")) FROM IntData WHERE LocalTime BETWEEN '2009-7-2' AND '2009-8-2' and IntInterval ='1'
    BC=Control, BM=Monitor, BS=Status.  The reason we pull the LocalTime from 2 days into month and after the month is because the citadel database returns values from the days previous.  Its wierd stuff.
    July shows all 0.  April has 2 days (04/01-04/02) 
    Well 4 in this example runs everyday.  weekends, weekdays, everyday.
    DBFolderT and SysfolderT have no remote connections except for the remote property is linked to a datatable field.  the datatable is only loaded on system start, or manually which doesnt happen for this system. 
    Thanks again
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Unable to access citadel edit log.

    I just installed LV-DSC 8 on my PC and I am trying to view some historical data through the Historical Data Viewer in MAX.  The historical data is on a remote PC running LV-DSC 7.  I can connect to the remote PC and see the database name, but when I click on it to view the tag names, I recieve the error message "Unable to access citadel edit log.  Database files may be read-only or invalid".   Does anyone know what causes this type of error?  And what is the 'edit log'?
    I verified that the files are not read-only.  I can view an example database that ships with LV-DSC 7 on the same PC, so the problem seems to be specific to this database.  Strangely I can read the database without any problem locally or read it from another machine with LV-DSC 7 so the database is not completely corrupted.  Thus the problem exists only on this database and only when viewing it from a LV-DSC 8 machine.  
    In LV-DSC 7 is there a way to run a "repair" routine on the database?  I wonder if detaching from the database and then reattaching might help. 

    I'm not sure what would cause that. On the LabVIEW 8 PC, verify that you have write permission for the files under C:\Program Files\National Instruments\Shared\Citadel\__LocalCache. If user-level security is enabled for your file system, you should also verify that the SYSTEM user has write access to those files.

  • Losing hypertrend data on remote computers in Lookout 6.1

    I know this issue has occurred in the past, but because we ares still losing trends too often,  I am at the point where I am going to have to create expressions on my client process file for every data member I want to have on a hypertrend so that I can have each client machine get its trend data from a local database rather than pulling the data from the database on the server. Before beginning this tedious task, I wanted to get some input on why this might be happening.
    When we lose trends I have to restart the server in order for the trends to come back. At first I thought is was caused by nicitdl5.exe crashing but I went into the settings for this service and set it to restart everytime it crashes. This did not fix the problem.
    My client process file contains approximately 250-300 hypertrends with 24hr. time periods trending both numeric and logical data members (water levels and pump run statuses). Could the number of trends I have in my process file could be causing the issue (too many)?
    Also, when I lose trends I have opened NIMax to try and create a trace for one of the members being trended and I cannot view the trace either - (no data) is displayed in the trace description.
    And, another strange thing that occurs is immediately after closing my server process file, the trends appear on the client machine before I restart the server process file.
    Some things I have done to try and correct the problem are:
    1.) reduced the resolution for the numerics from .001 to 0.01.
    2.) the resolution for the logicals from .001 (default) to 0.1.
    3.) reduced the lifespan from perpetual to 15 days (did that today).
    My server machine is a Dell PWS690 with 3.25 GB of RAM running Windows XP Pro, Service Pack 2, and the lookout version I am running is 6.1 (build 3)
    Due to the size and location of our client computers, they have to go through 2-3 subnets to get to our server where the database resides.
    Could this be a network issue where Lookout for whatever reason is disallowing access to the database after a period of time or because of a networking "hiccup"?
    Plus, would using a local database to to display the info on these trends be a viable option in your opinion?
    Please note: I AM NOT losing communication with my server as far as information coming from my plcs and being transmitted to the clients from the server.
    Thanks for any quick response.
    Jason Phillips

    Maybe Ryan and crew can clear this up....
    All that is needed for the discreet object connection form a remote client to the server is an IP address of the server and firewall ports on the server to be properly opened.  There are references online for the Firewall settings.
    Hypertrend connections are a different animal and I would like NI to step in and explain this if possible:
    What I have observed is that the traces must be using a commonly blocked (by ISP's) port.  I have to use a VPN to get the traces to work from an internet client.  I also must either be logged on to the domain of the server machine or map a local network drive to the server Citadel (Database) directory.  The map only needs read permissions.
    I haven't been able to find any documentation online explaining the differences between live oject data (Logos?) and trace data connections (also Logos?...but different somhow?) over the Internet with Lookout and/or DSC and I would like to understand this better myself.
    Ed
    Message Edited by erblock on 04-01-2008 09:29 AM

Maybe you are looking for

  • -1073741819 code using Report Generation with LV 6.1

    I'm studing about the Report Generation Functions with LV 6.1, and I'm trying to run some example about it, but the programs sends the next error: "Error -1073741819 ocurred at unknown System error in Font Style.vi> Set report font.vi>Easy text repor

  • How to add a new line item to a Purchase Requisition number

    Hello All, Can anyone please provide me with some FM or BAPI to add a new line item to an existing Purchase Requisition number. Can it be done using BAPI_REQUISITION_CHANGE; if yes, then how do I pass the parameters into the BAPI tables..? Useful poi

  • Every time I enable the OnBoard USB, in bios, the memory check takes ages.

    yup. Every time I change the OnBoard USB to enabled in BIOS, the startup memory check takes for ages (approximately 5 minutes or so...)(the check jamms for a few numbers before it's finished, it jamms on numbers 104857 and after a little while it goe

  • I keep getting an error message when trying to print.

    When trying to print a pop up box keeps telling me I need to purchase Pages. I already have purchased it. I did have the trial version does it need to be deleted? The 30 day trial has been long gone and I purchased Pages months ago. Never had a probl

  • B&W have first rev board and wanting to up machine with new 7000 Radeon

    I have a first rev board G3 B&W with the ATI 128 rage card and on this card it has a DVD decoder card on it. What I am wandering is that when I remove the 128 rage card with the dvd decoder card on it. Will I loose the DVD use on my dvd cd rom with t