What is the best way to detect loss of OPC Server connection when using DSC Tags?

I'm using the DSC Module on a new project and I'm pretty impressed so far. The HMI Wizard has saved me quite a bit of time.
My application is configured where the DSC Tags are connected to remote OPC Server Tags.
The issue I'm having is that I cannot detect a loss of the OPC Server when the application is running. Read's of the front panel controls/indicators still return values and the little "connection" icon next them is still green. Even if the connection icon turned red it wouldn't help since the Front Panel is not visible when the main application is running. It is a Sub-VI that's in charge of OPC Data Interfacing. The rest of the application uses the data from the OPC Sub-
VI.
I cannot effect a change on the OPC Servers, so I need a method of detection when the Server is lost on my end.
Any ideas on the best way to do this?
Thanks,
Jim

Hi Jim,
Ideally, error-reporting and -handling should be the way to handle this. However, if errors are not reported/handled as is sometimes the case with OPC, a quick-n-dirty way to do this would be to check for a "heartbeat" signal from your OPC Server. This could be a boolean tag which toggles On and Off (or a counter ticking). You then read this Tag in DSC in a slow loop using the Read Tag VI (not the front-panel control). And keep track of the Changed? output from this Read Tag VI.
As long as the 'Changed?' output is true, you are receieving data from the OPC Server, and hence it's alive. You may add some deadband logic to wait for a specific period of time before declaring the Server's really dead!
Hope this helps,
K
halid

Similar Messages

  • 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

  • I'd like Time Machine to backup my personal account's files separately from my guest account's files. Both have big files.  What's the best way to do this?  Should I connect 2 external HD to my new iMac, one for each account?

    I'd like Time Machine to backup my personal account's files separately from my guest account's files. Both have big files.  What's the best way to do this?  Should I connect 2 external HD to my new iMac, one for each account?

    NeuroBrain wrote:
    Since my new external hard drive is have a lot of space, I'm thinking of splitting it for Time Machine and external storage.
    This is a common mistake and I highly advise against it.
    1: TimeMachine saves states of changes and thus requires more room on the TM drive than the boot drive it's backing up.
    2: Something happens to the TM drive, loss, theft, dropped, power surge, etc., you lose both backups.
    3: The storage drive might become a portable need, with it being on the TM drive, now your increasing the risk to the TM backup that something could happen to it along with the storage drive, due to increased movement.
    Seriously, have a read,
    Most commonly used backup methods
    it's ASC User Tip that saves us regulars all the trouble of having to repeat ourselves over and over again in the posts, because we tend to forget things too, or not here sometimes etc.
    "Plan for the worst and the good will take care of itself" - Donald Trump

  • Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC

    Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC. I would appreciate any help with this.

    Thanks for the quick help. I do have to leave for work. When I try to
    download the images from the camera they seem to only be in jpeg (I don't
    see any rw2 or raw files to download). If I select the jpeg file it seems
    to only download a jpeg file. I do understand that I do have the option to
    open the jpeg in RAW. In doing this, is all the extra information included
    in the RAW file there or is it lost coming from the camera
    Once again thank you for trying to make me understand how this works.
    Have a great day.
    On Sat, Sep 13, 2014 at 12:14 PM, ssprengel <[email protected]>

  • What is the best way to detect peak to peak voltage for the following waveform ?

    I have two channels of waveform train ( ie W1 & W2 ), each of them is of frequency 64KHz.
    Each channel of waveform train consists of sinewaves of 64KHz of fixed amplitude, say 2 V pk to pk, running for 100 cycles, and then rest for 0.15 sec continue with a sinewave of 64KHz of another fixed amplitude, say 1 V pk to pk running for 100 cycles as well, and then rest for 0.15 sec. The above cycle considered as a complete waveform cycle.
    The above complete waveform cycle repeat for 10 cycles and rest for 1.3 sec and repeated itself.
    From the two simulated waveforms (ie W1 & W2), I need to detect and measure the peak to peak voltage of each of the 100 cycles sinewaves.
    What is th
    e best way to achieve that ?

    The waveform is free running as described above, ie sinewave running at approximate 64 KHz for about 100 cylce at fixed amplitude, say 2V ( actual number of cylce unknown, could slightly more or sightly less, depanding on the machine ) then rest for approximately 0.15sec, another sinewave running at approx. 64KHz at fixed amplitude, say 1.5V ( actual number of cylce unknown, could slightly more or sightly less, depanding on the machine ) running for approx 100 cycles continue...then rest for approx. 0.15 sec .....the above waveform repeated itself and free running .....I would like to capture or trigger each of the 100 cycles sinewave (rest time of 0.15 sec between each approx100 cycles of sinewave) to measure the peak to peak voltage and st
    ore them in array for analysis purpose....what is the best way to achieve that as I do not have time reference, I only know that the waveform is running at the pattern described above.
    Thanks for your help !

  • What is the best way to go about getting a wireless connection on the go?

    Im new to the aple product. I just recently bought a New Macbook Pro and wanted to know what is the best way to go about connecting to the internet while not at home and on the go. I was thinking of maybe a USB internet stick. But dont know who provides them and who would be the best choose to go with for a nice price every month. If that was the best choose in the first place. Im living in the U.S.A so if you could help ill really apprecaite it. THANKS

    Hi! I'm writing in beginning of October so I don't know if you've found a solution.
    Your MacBook Pro probably has a WiFi card built in. You don't need to have a USB connector.
    Turn on AirPort, go to Network and choose the network that is available to you. It might ask for a password, so get it from the cashier. My MBP connects wherever I go, as long as there is a network available.
    Good luck.
    RS

  • What is the best way to wipe Photoshop CS 3 off computer, when uninstall is missing.  I want to start fresh with PS CS 5.

    My iMac G5, OS X version 10.6.8 has a Photoshop CS2 and CS3 on it which have never started up, in the present configuration of the computer.  (I had the capacity increased to 2 TB.)
    It has not been possible for me to uninstall them.   The uninstaller cannot be located, by me and Adobe in an hour and a half phone call.
    I want to get rid of PS CS 2 and 3, altogether.   Then I would like to have a new Photoshop CS 5 installed.  I have Time Machine backups and LightRoom disks.   What is the right way to get this done?

    Hi   --  It appears that Adobe does not provide an uninstaller, because the Adobe tech and I tried all sorts of work arounds. 
    I dragged things to the trash on my own, without success, before this.  Then, I put them back.   I did not empty the trash.   
    If I again look for all the photoshop I can find, drag it to the trash, and then empty the trash, do you think something dreadful would happen?   It is pretty scary!    

  • What is the best way to store my photos off my mac without using time machine, time capsule?

    I heard alot of negative reviews about time machine / time capsule.

    Time Machine is about the only way to create a full system backup with a Mac.
    Nope, bootable clones is another option and vastly superior actually to TimeMachines basic backup only and undelete ability.
    A clone is just that, a exact copy of OS X, bootable, accessible and everything just like the orignal.
    Make as many as you need, clone everything in OS X to a larger drive too.
    Read about them here
    Most commonly used backup methods

  • What is the best way to protect .class files on server?

    I've been working on my website project for quite some time, years in fact. Now I'm at the point where I'm looking into signing up with a web host provider and testing the site live.
    I have some questions and concerns though. My site is made up of Java Servlets and JSP pages.
    My foremost concern is protecting my code. Many suggest obfuscating. If I understand the process correctly, it involves making the code harder to decompile. I also understand that obfuscating isn't a guarantee in protecting code. If someone really wants to use the code, they'll figure out a way to.
    So are there any other options available to protect my code?? I would like to consider as many options as possible.
    Once it is on the web host server, anyone can have access to it. Hope this doesn't sound like a stupid question - Microsoft Word comes with the option to password protect files from being opened, is there not by now some way to implement the same sort of feature with files uploaded to a server?
    Your input is appreciated.

    ejp wrote:
    Once it is on the web host server, anyone can have access to it.That's not true. You're off on the wrong track before you even start. You need to acquire a proper understanding of a web server and its configuration. Your problem can be solved via correct configuration of the server. Nothing to do with obfuscation.So your telling me that once I've uploaded all my .class files and everything else to my host provider, that the people running the server do not have access to it? I find this hard to believe....
    What exactly would I be looking to configure on the server??? Please explain.

  • What is the best way to store data on a network hard drive using CompactRIO RTOS and Labvew Real time?

    HI!
    I'm starting a project in which I have a low rate stream of data to read in a real time environment. I should store these data on a network hard disk without any PC with standard OS, I just have CompactRIO RTOS. How can I send this data to the network drive? Is it possible to just “write” data like I do for a standard file in LabView?
    Thanks for any help!!
    Il Conte
    dr. Valentino Tontodonato

    Il Conte,
    you have to keep in mind that normally the RT OS does not map drives other than the Compact Flash that it has onboard (C:\). There are exceptions such as
    -cFP-20xx which may have additional Flash Drives which can be addressed as D:\ Drive
    -CVS systems with IEEE-1394 interface can write/read to Firewire external Harddrives
    -PXI Controllers booted from a Floppy disk may map the floppy drive as A:\
    One solution to your needings may be to write data to files locally on your onboard CompactFlash and then transfer these files to a network location using FTP, provided the network drive you are pointing to supports FTP.
    Let us know if you need any more help with this,
    AlessioD
    National Instruments

  • I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?, I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?

    In Final Cut Express I have two videos I'd like to merge parts of each video into a final film.  What is the best way to do this in FCE?

    Hi
    I use a slightly different way than Alchroma.
    Same
    • One video on track 1 and the other on Video.track 2
    • Resize to 25% and move one to the left and the other to the right
    Diff
    • I don't use the blade tool
    • I use the Pen tool and change the transparency - then I get fast or slow transitions in same stroke and easy to fine-tune later if needed. (But this can be done with the Roll-tool if Blade is used - so it might be as easy)
    Final
    • Resize to 100% and Center
    Video is done
    Audio - very close to this by changing the level so that best audio will dominate
    • Pen tool here too
    But that's me - the Alchroma way is as good as this or may be better for some
    Yours Bengt W

  • What are the best ways to share photos from iPhoto?

    What are the best ways to share photos from iPhoto?

    If you use Adobe Photoshop, or even Adobe Photoshop Elements, stay as far away from iPhoto as possible.
    iPhoto does not play nice with Adobe software or with software from any other third party developer.
    iPhoto will hide your image files in a library paradigm where you have no access to them other than through iPhoto.

  • What is the best way to keep my retina screen clean?

    What is the best way to keep my retina screen clean?

    I use Windex Electronics Cleaner on the MBP displays.  I spray some on a small microfiber cloth and wipe the display.  Then I use a large microfiber cloth to dry it.  When finished, the display looks like the day it came out of the box.
    http://www.windex.com/en-US/Products/Pages/electronic-cleaner-and-wipes.aspx
    DO NOT CONFUSE THIS WITH ORDINARY WINDEX WINDOW CLEANER!
    Ciao.

  • What is the best way to setup premiere sequence for export when mixing 24fps and 23.976fps for final

    What is the best way to setup a premiere sequence for export when mixing 24fps (CG) and 23.976fps (live action) for final output at 23.976 (vimeo and such).
    Right now my sequence is at 24fps, and when I export to 23.976, my dialogues seem to shift.
    Should I set my sequence at 23.976fps instead of 24fps?
    Thanks in advance for the help, and sincere apologies if this is a noob question.
    David

    That makes it easy.  Remove the CGs from the project.  Go to Edit>Preferences>Media... and set the Indeterminate Media Timebase to 23.976.  Then when you import the image sequence, PP will assign it the correct frame rate.
    Edit in a 23.976 sequence.

  • What Is The Best Way To Connect Ipod To Stereo Reciever With High Quality?

    I recently purchased an 80 gig and am a newbie. I ripped all my music at around 280kbps to retain good audio quality when playing in my car and home theatre system. There are tons of accesories out there (docks, jacks, etc) which is the highest quality to connect my Yamaha receiver. I would think a connection to the bottom of my ipod would be of a higher quality rather than using the headphone jack. Any suggestions would be great. I was thinking about using the monster itv link but mostly for audio. thanks

    OK - So now that you have all completely ignored the original question - in hopes of proving your manly-hood....
    Does anyone have an answer to the original question....
    "What is the best way to connect to a high end home stereo to retain the best sound?"
    For sure any connection going through the headphone jack will be a big step back - enough so that you would easily hear a sound quality loss in doing so.
    For the few of you who would like to argue/bicker/rant on the nominal sound quality loss....keep on doing so, but for those who actually have some respectable advice we would love to hear it.
    For the record, I tend to hear just outside the normal human auditory range...
    To help myself put it to rest already... a few years back I decided to conduct my own little listening test.
    I took 6 different common ripping modalities (from lossless - to - 128kbps in both MP3 & AAC.... then transfered all of them in order to a blank. Used the same song for each - the song chosen opened with a few clean crisp bars of high freq. music, followed by an instant explosion/drop into a tight & low bassline.
    The final cutoff that was achieved before I was unable to detect an audible difference was 198 VBR AAC. Having convinced myself that there was the ever sooooooo slight difference b/t 198 & 256, I went with my current ripping status of 256.... Just incase my audible range should become finally honed with age (yeah, like that is really going to happen) !
    This test was run over a Yamaha DSP receiver, running at a constant 110w per channel (w/a max of 220w). The speaker setup was a full surround set of Klipsch Reference Series..... each speaker housing 2 x 6.5 woofer (each housing 2 x 1" Titanium tweeters) And sitting along side the 5 surrounds was/is a 150w continuous 12in. Subwoofer.
    Now I am hardly stating that I have hearing as good as some of you extremely technically profound music enthusiasts out there, but for the majority of people making comments about sound quality, and lack there of - when played over a $120/40w Audiovox radio.... I'm sorry, but I would have to side on that of......"Hogwash, that you can hear a difference!"
    So.... if possible would someone please offer some advice on a dock or cable connection that will allow us to enjoy the music we ripped at whatever
    so-called range we did!
    For those interested in seeing who could hit the further bullseye with their eyes closed, You win!!! Now can you help us?
    MBP   Mac OS X (10.4.9)  

Maybe you are looking for

  • Installation error of Oracle 9.0.2.4 on Linux 9

    when iam installing 0racle 9.2.0.4 on red hat linux 9, i got the following error. i got it on my error log file. Please can you help me to correct the problem. regrds upul name = ORACLE_BASE Query returned : Setting value of s_mountPoint to /oradata

  • How to properly create path art object, please help

    Hello there, I have a vector of AIRealPoint , each point is actual X, Y coordinate of the stroke. I need to create path art object out of this vector. I'm  somehow confused how to correctly construct segments array form the given AIRealPoints, my goa

  • Support chinese language in N82?

    Hi all, I got an European version N82. How can I make it support Chinese language? Can it be done by updating firmware? is it safe? thanks.

  • Dem2vid - script to capture & encode nexuiz demos

    Simple script to encode a .dem to an aac/avc video. To produce a high quality mp4 simply specify the demo to encode in addition to your desired width & file size. If no file size is specified a VBR encode will be done.The demo file must be within you

  • Wireless Authentication/Security Design questions

    Wireless newbie here...I was required to quicky stand up a wireless deployment at a new warehouse/office building. I have the basic network up and working. My remote AP's have associated with the 2106 in the main office and users can associate and au