OPC Connection faliure/status using LabView & Protool

Hi there,
we are integrating NI Vision solution into Siemens Step7/Protool automation environment. Two CVS modules perform visual inspection and communicate via Ethernet with Siemens Protool vizualization/GUI application running on Windows XP based PC. Protool is serving as OPC 2.0 compliat server and LabView "helper" application on PC is mirroring OPC data to and from NI PSP (Shared variable) domain which NI CVS-es use to communicate. All works well until we shut down and/or restart Protool (and thus the OPC service along with it).
Helper application fails to acknowledge any Connection Status change (as its status remains: Connected) if/when OPC is turned off ... furthermore once the Protool OPC is up and running again the values in LabView OPC bound items within helper app. cease to be updated although their Connection Status Property is shown as: Connected throughout ...
Has anyone had a similar problem? What could be the cause/solution to the behavior described?
Thanks in advance,
Robert

Hi Mike,
LabView "helper" app. is residing on Win PC and has controls that are data-bound to ProTool OPC via datasocket. The PC hosts shared variables that CVS-es use to communicate to PC. helper app. is transfering data between ProTool OPC and NI PSP network as necessary. If OPC is "power cycled" the "datasocket LED" of OPC DataBound controls remains green as nothing happened! If we use DataSocket (DS) pallete to programatically open DS conneciton to an OPC item, connection is rejected if OPC is not running, but once connected the "connection:status" property wont change if we shutdown the OPC!
Why is this happening? Is there a manner to detect the "running" status op OPC? Is there a more elegant way to bring OPC and NI PSP network together that would bypass the need for data pooling? Would the functionality of DSC help, like "register for events notification" function?
We would sure could use a quick soultion to this ...
Thx and regards, Robert

Similar Messages

  • How to create longtext or blob data types in SQL using labview

    Hello,
    I am fairly new to SQL, and I'm using the labview database connectivity toolset.  Using labview 6.1
    I am using the DB Tools Create Table vi to create my tables.  I want the tables to hold 1000 character strings.  But the longest string that I can insert seem to be 255 characters.  I think It is a limitation of the "String" data type in SQL so I need to use text or blob types.  The problem is I created a control for the "Column Information" field and I see the following selections for the data type. (String, Long, Single, Double, date/time, binary).  I dont see any selection for text or blobs.  How do I define another data type that is not part of the selection in the control?
    Thanks for any help.

    I don't know about defining long text, but the equivalent of a BLOB should be the binary data type, which just holds the data you put into it without formatting it.
    Try to take over the world!

  • To detect if pen drive is connected or not in labview

    i want to detect if pen drive is connected or not using labview
    Stara
    Solved!
    Go to Solution.

    Hi
    One simple method you can use to list out the folders of your computer.
    If any USB Pendrive is connected with your computer you will get the Pen Drive Name.
    First get all number of drives. Make constant this value if next time with your pendrive you get the number of element is more then the fixed one then you can say external device is connected with PC.
    May be this is not the standard method to detect the device, but it can solve your issue.
    Thanks and Regards
    Himanshu Goyal
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!

  • OPC Server Connection not possible (with LabView 7.0 it is working)

    We have used LabView 7.0 to view OPC items on a remote server (Windows CE).
    On WindowsCE it's not possible to browse the remote registry, therefore we
    make the registry settings on the client Computer and are setting the
    "RemoteServerName". For LabView 7.0 it was working.
    With LabView 7.1 when we try the same with the sample "Browse to OPC Item.vi"
    we get the Message Box "NI Network Browser Error!" "This OPC Server does not support
    the interface: IOPCBrowseServerAddressSpace error code - 0x80070005 Access denied!"
    Has any one an idea what has changed since LabView 7.0.
    The OPC Server has also an OPCEnum running. Is there any way to read this information?
    Here are the whole registry setting for the local machine to connet to remot OPC-Server:
    REGEDIT4
    [HKEY_CLASSES_ROOT\AppID\{4841A238-5E78-48AB-A9ED-666AD68F4841}]
    @="Inficon Quadrupol Massenspektrometer DA"
    "AuthenticationLevel"=dword:00000000
    "RemoteServerName"="192.168.0.206"
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA]
    @="Inficon Quadrupol Massenspektrometer DA"
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\CLSID]
    @="{4841A238-5E78-48AB-A9ED-666AD68F4841}"
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\OPC]
    [HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\OPC\Vendor]
    @="Inficon"
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}]
    @="Inficon Quadrupol Massenspektrometer DA"
    "AppID"="{4841A238-5E78-48AB-A9ED-666AD68F4841}"
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories]
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories\{63D5F432-CFE4-11D1-B2C8-0060083BA1FB}]
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories\{CC603642-66D7-48F1-B69A-B625E73652D7}]
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\ProgID]
    @="Inficon.Quadrupol.Massenspektrometer.DA"
    [HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\VersionIndependentProgID]
    @="Inficon.Quadrupol.Massenspektrometer.DA"
    Regards, Robert

    Hi Robert
    LabVIEW 7.1 implements some new security features dealing with DCOM that were not in 7.0. Windows is moving in this direction, and National Instruments decided to follow suit. 7.1 requires a certain level of authentication from the server. If this is the issue in your case, it can be resolved with the following steps (this is for Windows XP; CE will probably be different):
    1. On the computer hosting your OPC server select "Start >> Settings >> Control Panel >> Administrative Tools >> Component Services.
    2. On the tree on the left, expand "Component Services >> Computers >> My Computer >> DCOM Config.
    3. Your OPC server should be registered as one of these items. Right-click on your server and select "Properties."
    4. On the "General" tab, change the "Authentication Level" to "Connect."
    If this property is already set to Connect or Default (and the default setting is Connect) then this will have no effect.
    You can also try checking some of the other settings:
    1. On the computer hosting your OPC server select "Start >> Settings >> Control Panel >> Administrative Tools >> Component Services.
    2. On the tree on the left, expand "Component Services >> Computers >> My Computer
    3. Right-click on My Computer and select "Properties."
    4. On the "Default Properties" tab, make sure "Default Impersonation Level" is set to "Identify."
    You may also want to look at the "COM Security" tab to make sure your computer has the right permissions.
    If all else fails, you can try adding the line "ole.AuthnLevel = 1" to the LabVIEW.ini file. This should reverse some of the changes to 7.1.
    regards
    Manuel Wielander
    National Instruments

  • I am trying to use Labview and RP1210 compliant hardware to connect to a truck J1939 bus and receive messages.

    I am trying to use Labview and RP1210 compliant hardware to connect to a truck J1939 bus and receive messages. 
    Specifically I am attempting  to read data frames using the RP1210_READMESSAGE .   am able to configure the hardware and send a message to the J1939 bus. .    I think I have not configured something correctly.  I can use the RP1210_SENDMESSAGE and see the message I have sent on the bus using CANalyzer   When I use the RP1210_READMESSAGE   I get the timestamp from a message and the return from the function sends back the correct number of bytes (the number matches the number of bytes I sent out plus four bytes from the timestamp).  What I am having trouble with is actually receiving the data. I have had the same type of behavior from two different hardware (Vector CANcase XL and Nexiq USB Link), so I don't think the issue is vendor specific.
    Has anyone been able to make the RP1210_RECIEVEMESSAGE function work correctly?
    Thanks for any help

    Thanks
    I have already tried that.  The links are the NI RP1210 wraper. The problem I am having is using labview to interface with the RP1210 layer.  The RecieveMessage char*fpchAPIMessage this is the output which is a pointer to a cahracter array.  In this variable I can receive the timestamp of the message but not the message.  The retun showns the correct amount of bytes are aviaable (18 for a 8 byte message) but I can only get the 4 byte timestamp  I think I have to dereference this pointer to view the data.  I am not sure how to fix this. 

  • How to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and a novice in interfacing skill ..so plzzzzz explain me in a litle detail

    how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail

    Sir
    We were able to solve that problem...but now could you advice as to which DC power supply we should use (preferably avalable in India) so that it can be controlled by Labview (through a gpib/rs232/any other port) to give a square wave of desired frequency/other parameters.
    Regards
    Shivam

  • How to use labview with gpib to connect with Agilent PNA E8362B ?

    how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail

    Duplicate Post.

  • Controlling XY stage connected to parallel port using labview

    Hi,
    I have a XY stage which I can control using mach3 software. I want to control a signal generator, VNA and the XY stage at the same time. I have programmed SG and VNA using Labview but I am having difficulties controlling XY stage using Labview. I have never controlled an instrument connected through parallel port using labview.
    Can anybody give me some ideas to start with? How do I use VISA to control the parallel port? I really appreciate your help. Thank you in advance.

    Hi srms,
    Since your question is related to using VISA, I would try posting your question on the Instrument Control Board. You're likely to have better luck there.

  • How can I save images in usb connected to NI 1772C camera using labview?

    Hi, I am trying to save acquired images in usb connected to smart camera using labview.
    I want to know file path (address of usb connected to the camera)  for save images but I have no idea to find that.
    I will appriciate it for any advice about how to figure the file path or how to access the usb by max or anything.
    Thank you!
    Dana Choi

    An external USB key connected to that camera should be accessible as U:\.
    Eric

  • Connecting Pumps to PC and Using LabView to collect the data

    Hi There,
    I am a beginner with LabView and I want to use LabView to collect data from a Pump using RS-232.
    Could anybody help me where I need to start from?
    I highly appreciate your help.
    Regards
    Mo

    Hello moizadi,
    the best place to start is definitely the excellent Example Finder built in LabVIEW (Help menu -> Find Examples...). Switch to the Search tab and enter the keyword RS-232. This way you will find nicely documented examples for other common tasks as well. You will find further tutorials and more specific examples by searching for RS-232 or serial communication keywords on NI.com search.
    If you have further questions, please feel free to ask!
    Daniel

  • When use wireless connection the status of CPU will be 100% , hang

    I'm using laptop  HP 14-r037tu. When I connect network by using wireless connection, my laptop will hang suddenly and , Blue screen with CLOCK_WATCHDOG_TIMEOUT.
    But if i use with network cable (LAN), then no problem at all.
    I already tried roll back driver, upgrade wifi driver as latest, scan virus, repair system. What should I do now?

    Hi there @CJch 
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I understand that you have been getting a Blue screen with the CLOCK_WATCHDOG_TIMEOUT message. I am happy to help with this.
    There are a few possibilities you can try, if the drive is readable. First, I would recommend you try to backup any critical data you do not want to lose, if possible.  Have you run any of the BIOS hardware tests on the memory and the hard drive?
    Assuming you have the data backed up, then I would start with a System Restore to a point before the problem began.
    Using Microsoft System Restore (Windows 8)
    If after the restore you are still getting the blue screen, you can try using system recovery to reinstall the factory image. This is why you want the backup, as everything will be overwritten.
    Performing an HP System Recovery (Windows 8)
    Troubleshooting HP System Recovery Problems (Windows 8)
    Let me know if either of those, (hopefully the first one) works for you.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to poll the PLC using LabVIEW's shared variable engine, I am unable to read any values from the same addresses that I'm viewing with Modbus Poll.
    My setup simply consists of a PC connected directly to the PLC over Ethernet, with no router in between. I am using LabVIEW 2011 SP1 with the DSC module.
    I opened the NI Distributed Systems Manager to view the status of all shared variables in the Modbus library that I created and I've noticed that the CommFail bit is permanently set to "true". All other variables with a "read" access mode report "Process Failure". I've tried restarting the process as well as stopping and starting the local variable engine with no success. I've also restarted my computer several times to see if any services were failing, but this does not seem to have fixed the problem.
    I finally resorted to monitoring communications over the network card that I have the PLC plugged into via Ethernet using Wireshark and I've found that while Modbus Poll is communicating with the PLC, many MODBUS and TCP packets are sent and received. However, when solely using LabVIEW or the NI DSM to communicate with the PLC, there does not appear to be any communication over the network card.
    Something that may be worth noting is that I was able to communicate with the PLC and read values from it with the DSM on just one occasion, when I first figured out which addresses I should be reading from. It all stopped working shortly thereafter. Prior to this, "CommFail" was not usually set to "true" with my current configuration. Thinking that it was my firewall, I have since turned my firewall off, but this seems to have had no effect on the problem either.
    Any help on this matter would be appreciated.
    Solved!
    Go to Solution.

    Just a thought but I think the  register addresses used by LabVIEW are one off of the actual register #.  I was using a CRIO as a modbus IO Server and had to shift the register addresses by 1 to get things to work correctly (can;t recall if it was +1 or -1).  This is documented somewhere on ni.com but can;t seem to find it now.  But here is another  link that may help:
    http://zone.ni.com/reference/en-XX/help/371618E-01/lvmve/dsc_modbus_using/
    Dan

  • Is it possible to build a firewall using labview??

    Is it possible to build a firewall using labview??
    RAJESH

    There are several kinds of firewalls, for example:
    (1) so called "personal firewall software" which applies some policies to incoming and outgoing ethernet traffic on the computer it is running.
    (2) Dedicated hardware firewalls (having at least two ethernet interfaces) that enforce policies of traffic flowing across. These can be bridging, routing, or even be proxying.
    LabVIEW does NOT have access to the low level packet structure (ethernet header, ip header, tcp header, etc.) and relies on the OS for routing decisions. LabVIEW only deals with TCP and UDP and only at a very high level. A firewall must also make decisions for e.g. ICMP, GRE, or other IP packets, must know the status of all TCP flags (SYN, ACK, URG, PSH, FIN, RST), must check for valid fragmentations, et., etc.. LabVIEW cannot do any typical firewall tasks unless you do most of your work with external routines. In this case, LabVIEW just provides the UI.
    (Even simple ftp traffic would be quite complicated. For example the ports for the secondary data connections must be dynamically allowed based on information gleaned from the control connection, in this particular case the PORT command and the reply to the PASV command).
    I would say the answer is NO! Not with the networking tools provided with LabVIEW alone.
    With lots of work, you might be able to built a simple proxy server using LabVIEW, but this would seem quite useless...
    LabVIEW Champion . Do more with less code and in less time .

  • Writing to a profibus network using labview datasocket

    Hello
    Can anybody help me?
    I'm trying to control a moeller inverter using labview datasocket on a profibus network. the problems i am having is how to structure my Vi to write the message. so far i have used loops to write the first message to notify the inverter of status change then to write the new frequency setpoint. but i am having awful trouble doing this consistently without the inverter sending a fault message and denying me further control. i have also used an update button to pass the next value on but this requires furious mouse clicking to eventually get the message to the inverter. i have tried modifying some of the labview examples for CAN write and some others but often with less success. i'm sure this must be a standard thing with any Profibus writing to any other equipment. Can anyone give me any pointers or example code to help.

    Hi,
    I'm assuming that since you're going over datasocket, then you're linking to a profibus opc server.
    For OPC in LabVIEW, LabVIEW Datalogging & Supervisory Control (LVDSC) module is the way to go. LVDSC is an add-on module which you can install on top of your LabVIEW. It provides native (non-datasocket) OPC support. In addition, it also provides features typically required by a datlogging and supervisory control application, like historical logging and trending, alarming, security, etc. Check it out:
    http://sine.ni.com/apps/we/nioc.vp?cid=10418&lang=​US
    With either datasocket, or LVDSC, you're looking at a polling setup, and the actual communications is done with the Profibus OPC server. In this way, if you're writing to quickly, or the poll rate isn't correct at the server side, then that could lead to problems.
    I would recommend contacting both the OPC provider, and the device manufacturer to see if there's any quirks in the system you need to be aware of, and create your code appropriately.
    Another option might be to take on already developed drivers and hardware. There is a company in Germany offering VISA drivers for Profibus communications (www.comsoft.de), however, they're linked to specific profibus interface cards. This is not a personal or a National Instruments recommendation however, but something another user has posted on a similar discussion forum so we can't be held responsible if you decided to go down that route.
    http://forums.ni.com/ni/board/message?board.id=120​&message.id=224&requireLogin=False
    Thanks
    Sacha Emery
    National Instruments (UK)
    Message Edited by SachaE on 01-31-2006 01:35 PM
    // it takes almost no time to rate an answer

  • I use labview 8.0 and i can not run daqmx driver for pcmcia 6062e daq card

    i use labview 8.0 on window xp .when i installed a PCMCIA daq card 6062E, i could not run daqmx driver.It is fine to see that the traditional version is working well.When i install daq card sometimes it is working well with traditional driver  but mostly i see error on reading an analog input from PCMCIA daq device.An error called 'base adress' occures .I use last version of driver that is daqmx 8.0.1. and i have installed this correctly but again i could not  see any signal on the test panel for daq-mx driver.I don't know what is the problem.Also when i install PCMCIA daq card Please reply this message.I need your helps.
    Thanks

    Hello,
    Thanks for your reply.I will try to answer your questions.
    I have checked the Device Mananger and I have seen that the device is detected by Windows  XP.  For another question the card shows up under both NI-DAQmx Devices and Traditional NI-DAQ (Legacy) Devices consistently in the Measurement & Automation Explorer.I use a way that I reset the driver for traditional NI-DAQ in MAX,and then i reset the device for NI-DAQmx driver in MAX and again i tried to run the test panel of DAQmx driver but again i saw a wrong signal or noise signal on the test panel i could not see the sinusoidal signal that i connected. i do get the test panels to run with the card using the DAQmx driver,  But could not run the DAQ diagnostic utility.The error was as i specified below.
    03.05.2006 09:49:35
    Results saved to:  C:\Documents and Settings\serkan\Desktop\Diagnostic Results.txt
    Selected Device: Dev1
    Device Type: DAQCard-6062E
    Serial Number: 107509E
    Device Support: (PASS)
    NI-DAQmx Version: 8.0 (PASS)
    Device Reset: (FAIL)
    Error -50002 occurred at an unidentified location
    Possible reason(s):
    The specified device is not a valid device. The operation could not be completed as specified.
     ------ DIAGNOSTIC UTILITY ABORTED -----
    And for your last question i can say that i have used the DAQ card on other laptops.But the results were the same.İ hope to see your reply
    Thanks,
    Serkan Buhan
    Electrical-Elecronics Engineer
    Researcher
    TUBITAK-BILTEN

Maybe you are looking for