Examples of using OPC servers (KepDirect specifically) or general LV/OPC tutorials?

Hi,
I do a bit of work with both LabVIEW and Lookout Direct.  I'd like to phase out Lookout Direct and it seems that learning how to use LV with an OPC server is the first step.
Does anyone have example programs?  A tutorial on the subject would be helpful as well.
Please let me know if you have any general comments about working with OPC servers.
I'm looking specifically at KepDirect's server (Automation Direct's Direct Logic PLCs only).  My budget is tight and I am using DL PLCs exclusively.
Thanks,
Dave

Dave,
You should start with this example http://zone.ni.com/devzone/cda/tut/p/id/3978.
LabVIEW also has a module called DSC, which allows you to access the OPC server tags as shared variables. This is a more expensive option (the run time license is not free) but is recommended for over 10-20 tags.
Amit

Similar Messages

  • My iphone 4 has been working fine but when i try to use music, it wont work. For example i try to put a specific kind of song and it will either not play or skip to another.

    my iphone 4 has been working fine but when i try to use music, it wont work. For example i try to put a specific kind of song and it will either not play or skip to another.

    read http://support.apple.com/kb/TS3217

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • How do you convert OPC servers 2012 opf file to OPC servers 2013?

    When I upgraded from LV 2012 to LV 2013 SP1 my NI OPC Servers 2012 was also involuntarily upgraded to 2013. Now my shared variables don't work. How do you migrate or convert a 2012 *.opf file to 2013? The only clue given by the software Help file is a hint that ProgID Redirect can be used, but there is no explantion of how or where to find this feature or how to use it!

    Hi JT1958,
    I set up a system that had LabVIEW 2012 along with NI OPC Servers 2012 and upgraded it to 2013. I found that the .opf file I created from NI OPC Servers 2012 was able to be opened by NI OPC Servers 2013 without any issues and I was able to access the tags from a LabVIEW project. However, one difference between our setups is that I did not upgrade my project from LabVIEW 2012 to 2013 - I create a new project in LabVIEW 2013.
    Are you getting any error message when you try to open the .opf file in NI OPC Servers 2013? Or did it seem to import correctly? What if you try to create new bindings for a few shared variables rather than using your existing shared variables (just to see if it works)? Perhaps some of the references just need to be updated.
    Hope this helps!
    Best Regards,
    Matthew B.
    Applications Engineer
    National Instruments

  • Examples of using flashbuilder/flex tags

    can anybody recommend some resources for examples on using some of the flashbuilder/flex tags.
    as a cold fusion web developer, there are tons of resources with snippets or simple examples on using most the cold fusion tags and functions.
    liveedocs.adobe.com is a great reference guide but sometimes I need examples and snippets ; reference material is not very useful for learning.
    is there or will there be something similar with flex/flashbuilder?

    I assume you're asking specifically about Flex4 examples? There are tons of resources (Adobe and non-Adobe) for pre-Flex 4 coding, so I won't go into those. For some examples and info on Flex 4, you might check out the Adobe devnet site - we're recently posted some articles talking about various aspects of Flex 4, with sprinklings of code and demos to help illustrate the points:
    http://www.adobe.com/devnet/flex/
    Also, there were a few talks at a Flashcamp event a couple of weeks ago - it might be worth checking out the videos that were posted:
    http://labs.adobe.com/technologies/flash/videos/#flashcamp
    (more about the event and links to some of the slides here: http://www.flashcamp.org/)
    You can also follow some of the blogs out there that are talking about Flex 4. A few of us on the SDK team have blogs, but there are also non-Adobe bloggers out there talking about it and posting code and examples.
    Hope that helps.
    Chet.

  • Labview 2010 - Can't browse OPC servers on remote PC

    Hello all,
    I'm trying to create an OPC client using LabVIEW 2010. I can see the remote PCs in my workgroup but the problem is I can't browse for OPC servers. I get error 080004002 (pic below):
    I believe my DCOM settings are correct because I have MatrikonOPC Explorer installed on the same PC and through that I'm able to browse the OPC server over the remote PC. Also, I know the server is configured correctly because I have a second client PC that is able to connect to it, although it is running LabVIEW 8.6.1.
    Is there any particular configuration to the 2010 version that I'm missing? Any help is appreciated.
    Best,
    Glauber
    Solved!
    Go to Solution.

    According to this, it seems that on LV 2010 there are two ways to develop an OPC client. Through DataSockets, which accepts OPC servers on version 2.x and below, and through the DSC module, which accepts servers on version 3.0. Because the server I want to connect to is on version 2.1, I would be stuck with DataSockets, which is limiting. This is why I could browse the server using the "DataSocket Select URL.vi" but not when creating a new I/O server on the Project Explorer. The solution was to roll back to LV 8.6.1...

  • Why cant i see the opc servers on the computer where labview is running?

    Hello,
    i have 2 Computers in a network. On both computers is installed the NAPopc Server. On the computer where Labview is running, i can not
    see the OPC Server wenn i go to ->my computer->new I/O Server-> OPC Client. The box of registered OPC servers is empty.
    When i choose the network connection, i can see the OPC Server on my other computer.
    Can somebody tell me why? I want to use only on computer for my project...
    Thanx, Daniel
    Best reguards

    Hi Daniel,
    in your post you're saying that you have the "NAPopc-Server" installed. Did you mean the NI-OPC-Server? As you can see in the screenshot attached you should be able to see any registered OPC server that is registered properly, no matter if it's installed on your local host or elsewhere.
    You mentioned that you can see the OPC server on the other computer, so you should be able to see the OPC-server on that machine when you choose the settings-tab and select "localhost" as machine. Is that right?
    For further troubleshooting tips look here and here  
    Regards,
    Bernd 
    Attachments:
    OPC.pg.jpg ‏48 KB

  • Looking for istructions/examples for using winsock in Labview

    I'm looking for instructions or examples of using winsock in Labview. Looking in the NI examples I found an example using winsock UDP with Labwindows but nothing for Labview. Is the same function named different in Labview?

    Thanks for the links. Unfortunately, I am specifically looking for the ways to use WinSock (I want to collect data from a number of remote locations and the WinSock would provide me with an effective way to
    a) control the telephone number to be dialed (different for different remote stations)
    b) provide me with TCP/IP, so I could use the full power of LabVIEW seeing a remote computer as an IP address (and being able to use shared variables, web server, data socket etc. instead of me having to program all that myself)
    The other acceptable way would be to utilise a driver for a virtual network card (so I can programmically access it as TCP/IP on one side, and as a flow of bytes on the other, "virtual network cable", side). Any suggestions in this direction? By the way, it would be the best if the National Instuments would do such a virtualisation themselves. It would allow to utilise a number of solutions painlessly.

  • Example of using of API Logon

    Greetings,
    I'm looking for example of using API Logon. The logon API is
    Logon(User As String, Password As String, CMS As String, Mode As String, ThreeTier As Boolean, Offline As Boolean) As Boolean
    I need an example because I'm using vbscript.

    Here's some code that logs onto enterprise and starts servers.
    '     This script starts any server that
    '     is current not running with the exception
    '     of the wcs and aps.
    Dim CMS
    Dim Username
    Dim Password
    Dim Authtype
    'Set CMS logon credentials - change these to match your particular CE environment
    CMS = "katwin2kce9"
    Username = "Administrator"
    Password = "" 
    Authtype = "secEnterprise"
    Dim ceServerStop
    ceServerStop = 2
    Dim ceServerStart
    ceServerStart = 1
    'Declare variables for Enterprise Session
    Dim oEnterpriseSessionMgr
    Dim ceSession
    Dim iStore
    'Load the Enterprise Session Manager
    Set oEnterpriseSessionMgr = CreateObject("CrystalEnterprise.SessionMgr")
    'Logon to the CMS and create iStore object
    Set ceSession = oEnterpriseSessionMgr.Logon(Username, Password, CMS, Authtype)
    Set iStore = ceSession.Service("","InfoStore")
    'Declare InfoObject Variables
    Dim ServerInfoObjects
    'Retrieve a list of all the servers that are currently stopped
    Set ServerInfoObjects = IStore.Query("SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_PROGID = 'CrystalEnterprise.Server' AND SI_SERVER_IS_ALIVE = 0")
    'Retrieve a server object using the plugin interface.
    Dim ServerObjects
    'Iterate through the collection of servers until we find the one that matches
    For each InfoObject in ServerInfoObjects
         'load the plugin
         Set ServerObject = InfoObject.PluginInterface("")
         'If ServerObject.ServerIOR = ServerIOR Then
              'Error handle and start service
              on error resume next
              'Start the service - does not require a commit
              ServerObject.ManageServer ceServerStart
         'End If
    Next
    if err.number <> 0 then
         MsgBox "Attempt to start the service failed\nerror number: " & err.number & "\nerror description: " & err.description
    else
         MsgBox "Servers were started."
    end if

  • Is there an example to use interface to replace if then else pattern in F#

    is there an example to use interface to replace if then else pattern in F#
    i want to make match pattern with only one rule to represent dynamic number of rules which is use 
    let rec fun1 m number fun2param =
        match m with
        | fun2param(a,b,number) -> ****rewrite terms ****
    let fun2param number =
        if number = 1 then
                 function.....
        elif number = 2 then
                function ....
    computing nightmare

    In general, you use a match
    let fun2param number =
    match number with
    | 1 -> function.....
    | 2 -> function ....
    in the same way as you would use a `switch` construct in 'C' in place of a repeated if/elif...elif/else
    Your request is somewhat vague, so I'm not sure whether you would benefit from wrapping that behind an active pattern.

  • Example for Using WDR_SELECT_OPTIONS and SALV_WD_TABLE in one View

    Hello,
    I need an Example for Using the WD-Components WDR_SELECT_OPTIONS and SALV_WD_TABLE
    in one view. Can anybody help me?
    Thanks
    Toto

    Hello,
    Please see these:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637]
    [/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application]
    [/people/thomas.jung3/blog/2005/12/21/webdynpro-abap-alv]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
    Regards.

  • I would like to know why when i make a web page and test in my local browser it works fine then when i tranfer to my server i does not work fine example i used javascript to put a prompt bar on a page and it worked fine local but on server not working

    how come when i make a web site and i test it in my local server it works fine when i tranfer to server certain things do not work example i used javascript to put in a prompt bar for a newsletter page at the server it did not work but at local it did also it works at MOZZILLA but not internet explorer i also have cs4 was wondering if there is a way to test a page in dreamweaver and then transfer   THANK YOU X-FACTOR-MEDIA

    In future, please try to make the subject line of your posts shorter. In this case the following would have been sufficient: "JavaScript works locally, but not on remote server".
    Short, but meaningful subject lines make it easier for others to identify what your question is about, and often bring faster help.

  • How can I download itunes when I get the following errors...have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up..ituneshelper did not install correctly error 7

    How can I download itunes when I get the following errors  ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
    This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
    Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
    Any help greatly appreciated.
    billymac

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (If this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • Link with examples of using dbms_stats package

    Please,
    Should Someone let me know when I could find a link or some example on using the new DBMS_STATS package to gather data statisitcs?
    Thanks

    All, made in Oracle:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/general.htm#sthref1861
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/stats.htm#PFGRF30102
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm#sthref7887
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm#sthref7903
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm#ARPLS059

  • C++ example to use Acroform OLE Automation

    Can anyone provide me with an example for using the Acroform OLE Automation objects AFormApp, Fields and Field.  The only examples provided with the SDK are for VB or C#.
    When I use CreateDispatch to instantiate AFormApp object in C++, am getting a compilation error saying CreateDispatch is not a member of the class.  Please let me know if the implementation has changed with Acrobat 9 SDK and I need to use it differently.

    There are C++ samples in the SDK for using all the IAC APIs via OLE except Acroform. Believe there should also be a C++ Acroform OLE sample.
    Maybe you can ship that in next version of SDK and provide a sample code here or via email.   Am particularly looking to traverse the fields and populate values in them.

Maybe you are looking for

  • Must declare the scalar variable

    I Am getting error as Must declare the scalar variable "@Imageid" for the following code,while executing, exec spGetPager  ' ' , ' ', ' 3 ', ' ' In my coding I pass querystring value like 1,2,3 etc CREATE PROCEDURE spGetPager       @PageNo int = 1,  

  • Apple care protection plan for macbook pro with retina display

    hi!!! i recently purchased macbook pro with retina display. Im curious about the apple care protection plan to extend the warranty of my macbook. I would just like to ask if the apple care protection plan includes battery replacement w/in  the next 2

  • Elements 7 install issue, help file not found

    I'm at my wits' end with this thing.  In the Organize mode, clicking on the Photoshop Elements Help does nothing, and in the Edit mode, I get the following error message "The requested help topic could not be found.  Please reinstall Photoshop Elemen

  • 6303i classic not connectes via USB

    My new 6303i will not connect to the PC via USB. Is there a special driver for my WIN7 installation? OVI Suite is installed. What else can I do? Regards for help. Helmut - Germany PS Screen says No connection possible

  • Flash 8 video encoder + SWF

    Hi, I need to convert some video file with the flash 8 video encoder but i need an SWF output instead of a FLV. I know FLV is the best for internet use but we can't integrate those type of file in director so I really ned a swf file. I was wondering