Is there a way to force the Tag Engine to dump its input buffer to the database?

I have an application where I start a process and log the data, and then call a subVI that uses the Read Historical Trend VIs to get all of the data from when the process started until now. The problem is that the Historical Trend VIs only read from the database on disk, and the Tag Engine's buffer doesn't write to disk until it's full (or possibly times out; I'm not sure about that, though). Is there a way to force the Tag Engine to write to disk, so that the Historical Trend VIs will return the most recent data?
Shrinking the buffer will help a little, but that will only result in missing less of the most recent data. One possible hack is to have a dummy tag that I simply write enou
gh data to that will cause the buffer to be written to the database. I was hoping for something more elegant, though.

That's a good question.
The control about the datalogging and the DSC Engine is all done (more or less) automatically - you feel the NI ease-of-use idea
That means the Citadel service (one of the NI Services installed by LabVIEW DSC) is responsible of taking care about the datahandling (writing to and reading from the database files including caching some data e.g. index files, frequently used data...).
The DSC Engine makes a request to the Citadel service that this data has to be logged. Everything else is handled by the Citadel service. Internally, there are two kinds of logging periods handled through the Citadel service. One for traces being viewed (a small period: 200ms) and one for traces not being viewed (slow (big) log period: 20000ms). That
means, if Citadel gets a request to store a value it will buffer it and store it as soon as possible depending on other circumstances. One depends on the fact if this trace data is being viewed (e.g. with Read Histroical Trend.vi) If you request/read to view a trace you should pretty much see the current values because citadel should use the fast log period.
The Citadel service takes care as well about setting priorities e.g. the writes before the reads (We don't want to loose data - right?). That means if you really stuff the system by writing a lot of data the CPU might get overloaded and the reads will happen less often.
If you really want to see "real-time" data I would recommend to use the "Trend Tags.vi". With this approach you avoid the chain DSCEngine-Output Buffer-CitadelService-InputBuffer-File-HD... and back.
I hope this info helps.
Roland
PS: I've attached a simple VI that has a tip (workaround) in it which might do what you are looking for... However, Nationa
l Instruments cannot support this offically because the VI being used are internally DSC VIs that certainly change in the next version of LV DSC... and therefore you would need to "re-factor" your application.
Attachments:
BenchReadHistTrend.llb ‏104 KB

Similar Messages

  • Is there a way to force the revalidation of last visited page on start of Firefox whithout no-store directive?

    When I set Firefox to start from last visited page and this page contains response headers Cache-Control:mast-revalidate and Expires:0 (not in meta tag) the page doesn't revalidated on the start of Firefox.
    Is there a way to force the revalidation in such situation but using the cache as usual. I mean - I can't use no-store directive in Firefox (can in Opera and Chrome) since it prevents usage of cache at all (and Last Modified mechanism in particular) ?

    Thanks try67, but it isn't a required field.  As I mentioned, only about 20% of submissions will require filling it in. 
    There isn't a submit button.  Not even sure what I would do with/or how I would implement a submit button.  After processing the form, the filled out form is 'Saved As' to keep the original forms integrity intact.  The 'Saved As' file  is renamed appropriately, and then it is printed to a PDF file and attached to the appropriate customer file.

  • Is there any way to force the applet to load the file without using cache?

    Hi,
    I have the applet that renders some data from a file specified as the parameter. The problem is that the user can do something, that changes the input file and reloads the page, but the applet renders old data (from browser cache most probably)
    Is there any way to force the applet to load the file without using cache?
    Regards,
    Zdenek

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

  • Is there a way to force the proxy.pac RELOAD before sending a UIWebView request?

    I'm working with a dynamic .pac remote file.
    When i start my app, i get the proxy automatic configuration only the first time...
    Is there a way to force the PAC reload every time I use a UIWebView ?

    sure, create a listener that waits for the complete event, then play the video.

  • Is there a way to force the cursor into a string control when a vi is called

    In a .vi I'm wrighting I need to input a new serail number at the beginning of each run. Is there a way to force the cursor into the string control box every time the start screen returns? eliminating the need for the operator to move the mouse around and click.
    I would like to THANK all that have replied to my questions in the past. It has been a big help!
    Thanks
    TeBlues

    ah, problem solved.  what a community.
    Message Edited by Space_Flight on 11-20-2006 10:08 AM
    Attachments:
    keyfocus.jpg ‏83 KB

  • Is there a way to force the charset to utf-8 with the IIS plug-in?

    We're using AJAX. The initial request for the HTML has charset=utf-8 set on the HTTP header as seen in this Live HTTP Headers capture:
    http://plper.mysite.com/mysupport/index.jsf
    GET /mysupport/index.jsf HTTP/1.1
    Host: plper.mysite.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Cookie: mysiteSiteUrl=http://www.mysite.com; Amysession=aHR0cDovL3BscGVyLmVtYy5jb206ODAv; JSESSIONID=FN3WLTNJFJCfYhHHVrwKvLHF2gGdnnTb11DrCyZqR9YbGhcG28lK!-1728721171; mysession=AAAAAgABAFBy5LRMDmjSRCN%2FByvfquVwFeKCpmES4x9lReRava35fxKfwcbJimb3YyPhEd0vBq7ZxgJVecL475TFZwQuSphLOwRWAQw2t7PEW%2BrxsfxgnQ%3D%3D
    HTTP/1.x 200 OK
    Date: Tue, 10 Jun 2008 18:53:01 GMT
    Server: Microsoft-IIS/6.0
    Cache-Control: no-store,no-cache,must-revalidate, no-cache="set-cookie"
    Pragma: No-cache
    Transfer-Encoding: chunked
    Content-Type: text/html;charset=UTF-8
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Set-Cookie: JSESSIONID=09VTLTNWT07LlqnK22jTWwM8y5L9v1rmPf9CTW5TnGGKBvWvjJpP!-1728721171; path=/
    Content-Language: en-US
    X-Powered-By: Servlet/2.5 JSP/2.1
    Subsequent requests do not:
    http://plper.mysite.com/mysupport/index.jsf
    POST /mysupport/index.jsf HTTP/1.1
    Host: plper.mysite.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
    Accept: application/x-backbase+xml,application/xhtml+xml,application/xml,text/xml,application/x-www-form-urlencoded,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Content-Type: application/x-www-form-urlencoded
    Referer: http://plper.mysite.com/mysupport/index.jsf
    Content-Length: 122
    Cookie: mysiteSiteUrl=http://www.mysite.com; Amysession=aHR0cDovL3BscGVyLmVtYy5jb206ODAv; JSESSIONID=09VTLTNWT07LlqnK22jTWwM8y5L9v1rmPf9CTW5TnGGKBvWvjJpP!-1728721171; mysession=AAAAAgABAFBRtE5lAyr85YM0aIap%2Bekf1Qu8FoA6BNh4JVl1JgvDNDQgYrQm5m9W%2FQa4HLK767CtXV5c%2FhtXchbug9%2BE1zoCmqSBqqYmqXE9VG1lXi%2F%2Brg%3D%3D
    Pragma: no-cache
    Cache-Control: no-cache
    BackbaseClientDelta=%5Bevt%3DsrQuery%3AsiteList%7Cevent%7Csubmit%5D%5Bvalue%3DsrQuery%3AsiteList%7Cmultivalue%7C3971957%5D
    HTTP/1.x 200 OK
    Date: Tue, 10 Jun 2008 18:58:17 GMT
    Server: Microsoft-IIS/6.0
    Content-Length: 1720
    Content-Type: text/xml
    X-Powered-By: Servlet/2.5 JSP/2.1
    Is there a way to force requests going through the proxy plug-in to get a charset=utf-8 set in the HTTP header for all requests?
    Thanks!
    Edited by f2racer at 06/10/2008 12:01 PM

    If for some reason you have failed to maintain a backup copy of your computer ( not good), then transfer purchases form your ipod.
    Without syncing, click File>Transfer Purchases

  • Is there a way to force the tab order to skip a page and then return to that page on a form?

    I have a multi-page form with a required page layout.  The problem with the current form layout, is that I'm finding my users are getting to page "20" and it seems like the natural end of the form...and stop entering information and submit.  The problem is, there's an additional form field on the next page that MIGHT need important information.
    The information in that final field is only present in about 10% of submissions, but is crucial to the file if present.  As I said, the page layout is required.
    Is there a way to change the tab order to go from the last form field on page "19" to the form field on page "21" and then back to the form fields on page "20"?

    Thanks try67, but it isn't a required field.  As I mentioned, only about 20% of submissions will require filling it in. 
    There isn't a submit button.  Not even sure what I would do with/or how I would implement a submit button.  After processing the form, the filled out form is 'Saved As' to keep the original forms integrity intact.  The 'Saved As' file  is renamed appropriately, and then it is printed to a PDF file and attached to the appropriate customer file.

  • Is there a way todynamically change the Database of the ApplicationModuleIM

    Hi,
    I am working for the Coast Guard, and we have 4
    different environment each with their own database. One
    for Development, QA, Staging, and Production. Each
    environment has its own database with its own copy of
    the application data.
    Is there a way to change the DataURL of the
    Application Module before it connects to the database,
    so I can modify the URL to point to Development Database
    on my Server, QA Database when on the QA Server, etc.
    The closest thing I have found is a procedure that is
    called directly after the connection is established, I
    have not been able to find a similar function that is
    called before the connection is established.
    Mark Daly

    To whom it may concern:
    I have Finally figured out how to do this. The problem
    is not overriding connection behavior in the application
    module, but rather overriding behavior in the Default
    Application Pool.
    Create a class that inherits from ApplicationPoolImpl
    and over ride this function
    public void initialize(String name,
    String applicationModuleClassName,
    String connectString,
    Hashtable env)
    The DataURL is contained in both the Connect String, and
    the Env Hashtable. Update them at this point to your new
    DataURL, and the application will open the database
    connection to the alternate location.
    Now the only problem is getting your application to use
    your connection pool, instead of the default, this is
    easily done by changing the configuration of the
    Application Module. You left click on the Application
    Module, choose configuration, then click edit, then find
    the property label “Custom Application Pool
    Implementation class” replace it content with the
    correct import path to your Pool, then click OK to save
    the changes, and your are done, the application module
    should be using your pool, instead of the default pool.
    This is useful code when you have a separate database
    for development, QA, Staging, and Production.
    Mark Daly

  • Is there any way to rebuild the database in iTunes?

    I've moved my iTunes Library to another hard drive for more space and now it has lost track of the location of many of the songs on the new drive.  I have set up the location of the drive in Preferences/Advanced, but it has no effect.  Is there any way to rebuild the entire iTunes database at the same time so it is not necessary to locate each of the songs individually?

    Hello there, MataPunk.
    The following Knowledge Base article has great guidelines for recreating an iTunes Library:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

  • Is there any way to force the following initial view...

    ..."fit to page" + "two pages per screen - but only if there's room for two"?
    In other words, I want the page to fit in the screen upon initial view, but I also see a lot of wasted real estate all around that could, most of the time, fit a second page. However, I don't want the two pages to count against the "fit" -- meaning, on narrower screens, the priority should go to fitting the first page (and not showing the 2nd) rather than fit both pages at all costs.
    Is there any way to ask Acrobat to do this?

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

  • Is there any way to force the "Save As" dialog to automatically select only the filename, not the filename+extension?

    See
    https://bugzilla.mozilla.org/show_bug.cgi?id=426680
    or more clearly stated here:
    https://bugzilla.mozilla.org/show_bug.cgi?id=480522
    Two years later this "bug" (not exactly a bug, but a pain in the butt nonetheless) is still not resolved.
    Yes, I'm running the latest version of Firefox (6.0.1). And I'm running it on a MacBook Pro running OS 10.6.7.
    The selection is made correctly in other applications; this problem is Firefox-specific, and occurs even when no extensions or plug-ins are installed.
    Except that when I had my last computer, I found a work-around somewhere that fixed it, but for the life of me I can't recall what kind, how, or where.
    Any help with solving this irritating issue would be greatly appreciated.

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

  • Is there a way to rebuild the database(s) in ARD without re-installing?

    On my intel iMac (10.4.7) my lists will all go offline or "--" all at once... a restart of the app sometimes solves this for a while but eventually, I need to completely delete all of ARD and re-install to restore functionality. Id there a way to rebuild or replace the database(s) aARD uses for this stuff without a complete re-install (which, is not a trivial process)
    thanks.
    intel iMac   Mac OS X (10.4.7)  

    the app is not crashing with logs. It will become non-responsive frequently while scanning or while refreshing my all computer list. I originally, suspected the not so great DNS and st00pid number of subnets I have to scan to work but I have ARD 3 on my Xserve and the same install has been running issue free for months, on the same network.
    I have removed/re-installed ARD a few times on this box (and a dual G5 tower) with the same issue recurring... I just cannot figure out the trigger that makes it all go pear shaped.

  • Is there a way to force the mailbox to apply a rule to all mailboxes?

    So I have both GMail and Yahoo Mail coming into my mail program. The Yahoo account has two email addresses. One was created a long time ago using a fictional character for the name and the other was created as an alias to the first one about 3 years ago or so with my real name for use with my Resumes. Anyway, I sometimes get junk mail coming in on the alias email. I have created some rules to handle the spam which seems to work when I manually tell it to run but I haven't been able to get it to automatically do this for me. Now in yahoo I do have something called OIB which is moving some data that comes in on my original email setup into a couple of different folders for Meetup groups and Triangle Train information but it is not setup to move anything in the alias account. The rule that I have setup moves any email that is not listed in my contact book to the Junk folder and adds a Yellow Flag. Later on I will check the junk folder to make sure nothing important has been moved in and then I delete the files. As I said the rules work when I manually tell it to run either by right clicking the message and running the rule or by going into the rules and having them run from there.
    Also, from time to time it seems that all the emails that have come in disappear by themselves and the email program has to redownload them again. Is this normal?
    Thanks

    Well, I think I know why the rules are not working. The alias mailbox is being listed as another mail folder  and not as an actual inbox so the rules are not being applied. While I wish the rules would work, I will continue to manually mark some of the emails as spam.
    As for the second issue with emails vanishing, I am waiting to see if it happens again. I think it must happen when it is syncing the data but I am not sure that it happens all the time. Today the previous emails seem to be their and it grabbed the new email so I don't know what happened with the vanishing email. Anyway this can be closed since I believe the main issue has been solved as being a setup issue with Yahoo alias email account.

  • Is there a way to force the store to send a receipt?

    Pretty much as it says. If I buy a tune I might get re-imbursed for, I would like to get a receipt with just that item on it.

    You should automatically get an emailed receipt to your account's primary email address, though if you buy multiple items on the same day they might be combined into one receipt.
    If you have problems with a purchase and need to contact iTune Support about then you can use the 'report a problem' site to contact them : http://reportaproblem.apple.com

  • Is there a way to force 1.28 voltagae for the ram on the w520 i7 quad. 2760qm

    Hi I have 1.35/1.50v sodimms. JEDEC lists it as 1.28v. It's currently running 1.5v. Is there a way to force the lower jedec voltage. The laptop is super cool and I can work on my lap comfortably except for the ram slots.

    The website may alter its page display based on the browser ID that is transmitted to the site from your browser. Some browsers on the iPad like iCab allow you change the browser ID to something desktop-oriented. Safari does not provide this capability.

Maybe you are looking for