What is the best way to disable tags in SVE when a OPC server is not available?

I have a LV2009 DSC app with SVE that reads tags (1100 spread acrross them) from 4 PLC's through NI OPC server.  From time to time the PLC will lose power because that test machine will be powered down.  The NI OPC  loses the OPC link then to that particular machine/PLC and this error is transferred through to the SVE. 
Is there an any/efficient way to stop the reading of tags if/when this happens?  The only way I can think of is to undeploy/re-deploy from the app when it is necessary. 
In the same way is it possible to prevent the SVE acting on this error?
I also have a longstanding problem with updates of tag values to the frontend of the LV VI.  The update rate into SVE seems OK, but the tag values are slow to update onto the page.  I have reduced the amount of tags on the pages as well as reducing the amount of code on a page.  It becomes better, but I would like to have an update of less than 2 seconds at least to properly display plant status.  I'm running a heartbeat timer from a PLC and in some cases this takes up to 15 seconds to update.
Any assistance will be appreciated.
Pierre

PierreN,
In order to set the timeout value of a Shared Variable, you may Right-Click, and select 'Show Timeout':
Implementing Timeouts through your application variables will allow you to gage which variables are, and are not updating. This troubleshooting stepp will allow you to better characterize the source of the slowed update rate. You also may take a closer look at the OPC Server configuration, and the deadnband settings you have implemented on the I/O Clients. 
Snowforest has offered good advice in terms of implementing a State-Machine architecture to handle the 'Power Down' system status. Also, if you know the specific error that is propagated, you may choose to implement implicit error handling using the data contained in the Error Cluster.
Cheers,
Pcorcs
Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

Similar Messages

  • What is the best way to deal with memory leak issue in sql server 2008 R2

    What is the best way to deal with memory leak issue in sql server 2008 R2.

    What is the best way to deal with memory leak issue in sql server 2008 R2.
    I have heard of memory leak in OS that too because of some external application or rouge drivers SQL server 2008 R2 if patched to latest SP and CU ( may be if required) does not leaks memory.
    Are you in opinion that since SQL is taking lot of memory and then not releasing it is a memory leak.If so this is not a memory leak but default behavior .You need to set proper value for max server memory in sp_configure to limit buffer pool usage.However
    sql can take more memory from outside buffer pool if linked server ,CLR,extended stored procs XML are heavily utilized
    Any specific issue you are facing
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer do not seem to have the capacity. Thanks!

    What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer to the PC in the classroom do not seem to work because of the file size. Thanks! Quincy

    How to Transfer Photos from an iPad to a Computer
    http://www.wikihow.com/Transfer-Photos-from-an-iPad-to-a-Computer
    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
     Cheers, Tom

  • Hi, what's the best way to replace IMAC 27'' glass when broken (latest Imac generation from end 2012) ?  Thanks,

    Hi, what's the best way to replace IMAC 27'' glass when broken (latest Imac generation from end 2012) ?  Thanks,

    Not sure about the 2012 models but the 2010 ones can be removed in seconds, using a suction cup on the top corner. I use my tomtom to lift it away. It is attached by magnets.
    Hope this helps.

  • What is the best way to display errors to users when using JSPs?

              Hello,
              Could someone suggest me the best way to display errors to users when using JSPs?
              Many thanks in advance.
              Rino
              

              Thanks for the code snippet!
              Rino
              "Deepak Vohra" <[email protected]> wrote:
              >
              >
              >The 'errorPage' attribute of the 'page' directive forwards uncaught run-time
              >exceptions
              >to an error processing page. For example:
              >
              ><%@ page errorPage="error.jsp" %>
              >
              >redirects the browser to the JSP page error.jsp if an uncaught exception
              >is encountered.
              >
              >
              >Within error.jsp, indicate that it is an error-processing page, via the
              >directive:
              >
              >
              >
              ><%@ page isErrorPage="true" %>
              >
              >The Throwable object describing the exception may be accessed within
              >the error
              >page via the 'exception' implicit object.
              >
              >
              ><% if (exception != null) { %>
              ><p> An exception was thrown: <b> <%= exception %>
              >
              ><p> With the following stack trace:
              ><pre>
              >
              ><%
              > ByteArrayOutputStream ostr = new ByteArrayOutputStream();
              > exception.printStackTrace(new PrintStream(ostr));
              > out.print(ostr);
              >%>
              ></pre>
              >
              >
              >
              >"Rino Srivastava" <[email protected]> wrote:
              >>
              >>Hello,
              >>
              >>Could someone suggest me the best way to display errors to users when
              >>using JSPs?
              >>
              >>Many thanks in advance.
              >>
              >>Rino
              >
              

  • What is the best way to read, process, and write an Excel File Server side...SQL Server Agent Job

    So I was using dynamic Excel commands to open and save as using...
    Microsoft.Office.Interop.Excel.Application
    and
     workbook.SaveAs(StringDestinationFile, XlFileFormat.xlExcel8, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    which worked all fine and dandy client side. Then when I attempted to create a SQL Server Agent Job, this failed as a result of SQL Server side not being able to execute dynamic Excel commands.
    So do I need to therefore try and do this function via Microsoft.ACE.OLEDB.12.0 commands? And where can I find the commands and syntax to open and save as? I have to Open a .xlsx file, save it as a .xls file, and then open this newly created .xls file and
    then save it as a .csv file.
    Thanks for your review and am hopeful for a reply.
    ITBobbyP85

    I think you might be over complicating things.
    You can use SSIS with Excel Source/Destination connections to read in, or output to an excel sheet/file.

  • What is the best way to empty my iPhoto trash when there are more than 1,700 photos in it?

    I never realized there was a Trash in iPhoto.  Fortunately, I was reading a discussion on another iPhoto topic, and read that emptying iPhoto trash with more than 100 photos in it may mess up the database.  Any suggestions for how to delete 1,7000+ photos from the iPhoto trash?

    Make sure you have a good backup and then right click and empty trash.
    If the database gets corrupted, you can hold CMD OPT while clicking on iPhoto in the dock and get the options to rebuild.
    Regards,
    Captfred

  • What is the best practice to "Disable Smartlists"

    What is the best way to "disable" smarlists.
    For example: i have company A, company B, and Company C as the vendors.
    Vendor (account) (smartlist) --- i can choose A, B, or C
    However: i don't want users to choose vendor C because they are not our vendors anymore. I don't want deleted it because i have previous projects that used vendor C. what is teh best approach for this?
    Thanks

    Hi!
    Can't you just delete that entry (for the vendor C) from the smartlist?
    If I understand correctly, Planning stores the entry value to essbase for current member combination. So it does not delete any previously stored data.
    kind regards,
    user 637777

  • What's the best way to detect that text fits into ContainerControllers without scrolling?

    Hi.
    Question
    What's the best way to detect that text typed by user (or added programmatically) exceeds available container space and find out where starts truncated part? Is there available some other (than described bellow) easy way to detect it or disallow set of controllers to receive more characters that can be displayed in given composition area?
    My partialy failed attempt (simplified)
    For example lets say that I've got an editable textflow with attached two instances of ContainerController.
    var flow:TextFlow = createSomeFlowFromGivenString(sampleText),
        firstController = new ContainerController(firstSprite, 100, 30),
        lastController = new ContainerController(secondSprite, 600, 30);
    flow.interactionManager = new EditManager(new UndoManager());
    flow.flowComposer.addController(firstController);
    flow.flowComposer.addController(lastController);
    flow.flowComposer.updateAllControllers();
    With enabled vertical scroll policy I can compare height of the composition in last controller with height of the content:
    var bounds:Rectangle = lastController.getContentBounds(),
        overflow:Boolean =  lastController.compositionHeight < bounds.height;
    trace('Content does not fit into given area?', overflow)
    But when I switch vertical scroll policy off (lastController.verticalScrollPolicy = ScrollPolicy.OFF) - unfortunately this no longer works...(In my case scrolling should be dissabled, since text areas might have only one line with restricted width)
    Use case
    I want to create fillable form. Field might have a single or multiple lines. One field might start in the middle of the page, continue in the next line where it spreads through whole page and end in the - quarter of page width long  - third line. Text typed by the user can't exceed given area since it might cover some static text that sits right after/below field.
    Something like ascii image bellow:
    |                <PAGE>                    |
    |                                          |
    |                                          |
    |                                          |
    |               [Field starts here........ | 
    | ........................................ |
    | ........................................ |
    | Ends here..]                             |
    |                                          |
    |                                          |
    | [Another field] xxxx  xxxx xxxxxxxx x xx |
    | xxxxxxxxxxxxxxxxxxx                      |
    |                                          |
    |                              [One more.. |
    | .....]                                   |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    Info:
    [......]  <-- form fields starts with '[' character, and ends with ']'
    xxx       <-- sample, static text
    | and _   <-- page borders

    I've tried something like that previously, but it didn't work because then I've got vertical scroll policy to set to 'auto'. After changing verticalScrollPolicy to ScrollPolicy.OFF  in the last container it worked like a charm.
    Thanks zhen bian

  • What's the best way to transfer footage from a Sony miniDVD camcorder?

    What's the best way to transfer footage from a Sony miniDVD camcorder?

    Do not use "mini" DVD's in any slot loading DVD drive.
    Buy a cheap "tray loading" external DVD drive and attach it to your Mac.

  • What is the best way to allow one to send an email? Confused.

    Hi,
    I researched on the forum for the ability to have someone click a button and be able to have a blank email pop up.  I use to use this all the time.
    However my question is since Outlook Express (and for that matter now Windows mail) are no longer included in the new operatings systems ... meaning everyone has to buy a mail program ... what is the best way to have someone send an email?  I am particularly not fond of forms and would rather have them be able to have an email pop up.
    However now you will miss a lot of people ... I use Windows mail thus the Outlook express code gives me an error.
    THUS MY QUESTION:
    Is there general code (and if so what is it?) that allows a person to click a button and send an email no matter what type email program they have?
    If not is there an other way to accomplish this?
    If not, if I must use a form/action script 2.0 ... does anyone have a sure-fire 2.0 script that is easy to use/debug/modify?
    THANKS.

    I don't understand what you mean by "be able to have blank email pop up" but Yes you can send an email without the need of any email programs through ActionScript via PHP through the POST method. There is a simple example in http://www.kirupa.com/developer/actionscript/flash_php_email.htm

  • What is the best way to match back 3rd party vendor data to our SQL Server Database?

    So we have this 3rd party data that we need to match back to our database. We have determined that the "ID" column that the 3rd party is sending us back data is a concatenated key of our member's SSN, Gender, and CCYYMMDD Birthdate. In 90% of the
    cases, we can match back on this. However, the other 10% we have to try a couple of different ways...using our Member #, using what is called a HFCA #.
    We are talking about 10s and 20s of data here...NOT thousands.
    What is the best way to handle this via SSIS? A SQL Server Stored Procedure to cursor through the 3rd party data or multiple INSERT-SELECT statements trying to marry back the data? My thought process was to cursor through each record, try and match on our
    90% match, and then determine if we have a match or not, and then if we do not, then try our other means. Should I SELECT 1 to see which matching criteria to go with? So in other words, for the first match...
    IF EXISTS(SELECT 1 FROM TableName WHERE ColumnName1 = .....) BEGIN....ELSE...Blah Blah Blah
    or simply continue doing INSERT-SELECTS...
    I guess I am asking about the efficiency of using a cursor within a SQL Server Stored Procedure here.
    Thanks for your review and am hopeful for a reply.

    You are asking a SSIS question but posted in tsql - which is it?  But before you go further, which matching logic should have priority?  Member # or the SSN/gender/birthdate? Note that the priority does not depend on matching success percentage. 
    In other words, you may prefer to match on member # first (even though it has a lower success ratio but a higher confidence ratio), followed by ssn..., followed by whatever. 
    In any case, this sounds much more like a SSIS logic issue.  Your questions regarding cursors and stored procedures seem premature at this point. OTOH it may depend on what you are actually trying to accomplish.  

  • What is the best way to backup Address Book to external HD?

    Hello there
    I would like to backup my Address Book on an external HD. How do I go about doing and what's the best way to doing it?
    I have a vague idea but not sure if it's the correct folder to drag to the external HD. I went to ~/Library/Application Support/Address Book. My question is this: Is that Address Book folder the correct one to drag to the external HD? Am I missing other important folders to drag along to the external HD in order for both the Address Book folders to be the same in my internal and external HD?
    Thanks in advance!!

    It would copy the information into a single file... The same as if you wanted to share your contacts with someone else-you could email the vCard to them, they would import it and have the all the same contact information imported into their address book.
    For your own use, it's pretty much the same and works through the File>Import>vCards option in AddressBook.

  • What is the best way to keep your files organised

    I would like to know what is the best way to keep your file organise when I am
    Loading program's like numbers and pages from iPhone to MacBook i alway 
    Get double of the same work sheet

    I would like to know what is the best way to keep your file organise when I am
    Loading program's like numbers and pages from iPhone to MacBook i alway 
    Get double of the same work sheet

  • TS1324 What is the best way to sync my Outlook 2010 to my iPhone and iPad

    What is the best way to sync my Outlook 2010 to my iPhone and iPad.

    Note, I'm on the latest iOS - not 6.1.1 as the original post suggests.

Maybe you are looking for

  • How can I create a new User with the Java API like OIDDAS do?

    Hello, I'm currently working on an BPEL based process. And i need to create an OCS user. So far I can create an user in the OID. But I cant find any documentation about given this user an email account,calendar and content function etc. Did anybody k

  • Can't send messages using pop account

    Hello, I can't send mail with some of my pop accounts using mail app. I have a .mac and a Yahoo account both work perfect. The other POP accounts don't send. I get an error that says, "Cannot send message using the Server xxxxxxx" I check the setting

  • How do I stop my iPhone 4 from duplicating recurring events?

    Recently, my iPhone 4 started duplicating all my recurring calendar events (though they only show up in my Outlook as a single event on a particular day, they show up twice on a particular day on my iPhone calendar . . . one has a purple dot next to

  • Nested CASE Statements in my SELECT of Query not calculating correctly

    Hi - Am doing simple query to calculate statistics on students per course, the WHERE includes a parameter for Academic Year, so need If Academic Year = x then calculate age in the 1st Sept of that Year, then count number of 19Yrs&Over. Have included

  • Nokia C5 Ovi MAps 3.04 updating problem. Error: In...

     When ever i connect mobile to ovi suite it says " Maps have been updated, You need to download the updated maps" After I start updating it takes 5-6 minutes saying" checking old maps and voice guidance files" And then "INTERNET CONNECTION FAILED" I