Datasocket - problem of the OPC

Hello

I have a problem with Datasocket, when I try to read some "OPC servers OR", I can't. But if I run the program with the option "Highlight execution", there is no problems. I tried to put a "hold" between the readings, but the problem doesn't go away.

Thanks for your comments

Thank you Christophe and billko for your answers.

I already solve the problem, I'll try to explain it (excuse my English please).

Before, I put 'DataSocket Open', "DataSocket Read" and "DataSocket farm" in the same loop iteration, without time between opening the connection and read from the OPC server. This is the result of reading was '0' all the time. Here we can see a screenshot:

To resolve this problem, I've separated the 'open DataSocket', 'DataSocket read' and "DataSocket farm" in three different loops and I added a wait in the first loop:

No problem now, I think that there was not enough time between opening the connection and read from the OPC server.

Concerning

Tags: NI Software

Similar Questions

  • How to install the OPC Server with the Application Setup

    Hi all,

    I make the datalogging progam in the PLC via modbus communication using the OPC server.

    1. I got configer the opc via the Project Explorer client some time it works perfectly, but when I run it by the next day, he cannot communicate with an OPC server but the OPC server is to communicate with the PLC. When I right click on the properties of the customer e/s in the exploer project opc and make any change and still run the application it works where is the problem.

    2. the second problem is by building the installer that will be installered to my PC targate OPC server. Bacuse I had installed the application on the computer target just for testing but OPC Server havn't installed even if there is no option for adding the OPC while bulding server.

    Serdar, SALVATION

    Thanks for the reply I saw your example, your idea is ok, but if I have more then 100 and with different types of data tag then where is the problem to manage all these tags.

    Now, what I had done I took the express to create vi or configer server I/O and give the name of the process even as file name as opcdemomo and same server name reference in the Project Explorer and restart and scream in low tow and three times it works I havn't get any problem.but which is not the right method. 

  • Implement and control 'meter' in S7 - 300 by the OPC and LabVIEW

    Hello world

    I use a S7-300 PLC and OPC Server for my projects. I have a problem: S7 - 300 has a meter module which digital signal of County. I only can implemented using SIMATIC STEP 7. Can I set up the meter module using only the server OPC and LabVIEW

    does anyone have a solution or an idea for my problem?

    could you please help me...

    Thank you

    Hi Echion,

    NOR-DAQ (MX) is used only for material OR: no you can not use it.

    To program the controller you must use the right programming environment. For Siemens S7, you need to use Simatic (or perhaps some other 3rd party software supporting IEC61131). Point.

    The OPC server is used only for the exchange of data. This is no interface programming!

  • datasocket VI of the client side just stops

    Hi guys, I'm trying to send his micro-captured to another PC (two PCs connected by a crossover cable). I tried various options such as TCP, Datasocket but nothing has worked. With TCP, it always shows the input buffer overflow. With Datasocket, it shows no errors, but stop just the VI on the remote PC. I was not able to understand the problem. I'm using LabVIEW 2009 version 9. I enclose two screws for your tests. Help, please. Thank you. Kind regards.

    Hi Rocky,

    I looked at your code and made some changes. First of all, I couldn't tell why you were dividing the samples/ch by two for the audio playback function. I disabled who. In addition, the "initial data" fed you on the first 'handwriting' VI and at the entrance to the function default data DataSocket Read was a cluster of waveform. Audio data sent through the connection DataSocket are an array of clusters of waveform (a cluster by channel). This probably caused DataSocket problems for you.

    I put the configuration values of the sound of what I found in the example of "continuous sound Input.vi' VI. I also added some graphics for Visual indications.

    Note that you must have the DataSocket Server (under windows: start-> programs-> National Instruments-> DataSocket-> DataSocket server).

    If these don't work, I would look at the network/firewall issues. Also, if you want less latency, consider using UDP straight-up. He should have fewer resources than DataSocket (and with a filter connection, I guess you won't have much to worry about data loss).

  • NIDAQ no visible channels by the opc client

    I have a 9188 NiDAQ connected to a PC via ethernet. All modules are visible in MAX and check out OK but if I try to connect using OPC, I don't see an item "ServerPollingRate". Is there something I need to do to get the NI OPC server for publication channels?

    It's my first time with the 9188, I used the expansion chassis compact fieldpoint several times before without any problem.

    Hey,.

    You run an OPC Server OR on the PC? What you're reading with / publish on?

    It would be useful to have a system diagram or description, and what you've done so far in what concerns the implementation.

    Here's a pretty good overview of the OPC with DAQmx configuration, it might have the answers you are looking for.

    http://www.NI.com/white-paper/3742/en

  • Access to the OPC in a time zone different server console: security audit

    Hello

    I noticed this on several instances when CPO console in a time zone (example: CSE) tries to access an OPC server in any other time zone, the console is unable to connect to the OPC Server and I see this error message:

    "An error has occurred during the security check for the message"

    Is there a known issue with the console to access the OPC Server and a handshake that goes?

    Newspapers:

    @@Logging the process Tidal.Automation.Console.Loader.exe (id = 13248)

    || 8. 06/03/2013 19:20:00.365 | 13736. Failed to get server ID for Assembly store connection:

    || 9. 19:20:00.366 06/03/2013 | 13736. EXCEPTION (System.ServiceModel.Security.MessageSecurityException): A secure or incorrectly secured error was received from the other party. See the inner FaultException for the code of error and detail.

    Stack trace:

    Server stack trace:

    to System.ServiceModel.Channels.SecurityChannelFactory'1.SecurityRequestChannel.ProcessReply (answer Message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)

    to System.ServiceModel.Channels.SecurityChannelFactory'1.SecurityRequestChannel.Request (Message message, TimeSpan timeout)

    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation (SecuritySessionOperation operation, target EndpointAddress, Uri, SecurityToken currentToken, TimeSpan timeout)

    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore (TimeSpan timeout)

    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken (TimeSpan timeout)

    to System.ServiceModel.Security.SecuritySessionClientSettings'1.ClientSecuritySessionChannel.OnOpen (TimeSpan timeout)

    at System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout)

    at System.ServiceModel.Channels.ServiceChannel.OnOpen (TimeSpan timeout)

    at System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout)

    at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce (TimeSpan timeout, CallOnceManager waterfall)

    at System.ServiceModel.Channels.ServiceChannel.EnsureOpened (TimeSpan timeout)

    at System.ServiceModel.Channels.ServiceChannel.Call (String action, ProxyOperationRuntime, Boolean, Object [ins] oneway operation, Object [], TimeSpan timeout breaks)

    to System.ServiceModel.Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage methodCall, operation of ProxyOperationRuntime)

    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke (IMessage message)

    Exception thrown once again [0]:

    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage (IMessage reqMsg, IMessage retMsg)

    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & msgData, Int32 type)

    at Tidal.Automation.Common.AssemblyManager.IAssemblyManager.GetServerId)

    at Tidal.Automation.WinForms.Loader.AssemblyStore.GetRequiredFiles)

    || 10. 19:20:00.366 06/03/2013 | 13736.   EXCEPTION INTERNALLY (System.ServiceModel.FaultException): An error has occurred during the security check for the message.

    Stack trace:

    || 11. 19:20:37.696 06/03/2013 | 13736. Failed to get server ID for Assembly store connection:

    || 12. 19:20:37.696 06/03/2013 | 13736. EXCEPTION (System.ServiceModel.Security.MessageSecurityException): A secure or incorrectly secured error was received from the other party. See the inner FaultException for the code of error and detail.

    Stack trace:

    Server stack trace:

    to System.ServiceModel.Channels.SecurityChannelFactory'1.SecurityRequestChannel.ProcessReply (answer Message, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)

    to System.ServiceModel.Channels.SecurityChannelFactory'1.SecurityRequestChannel.Request (Message message, TimeSpan timeout)

    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation (SecuritySessionOperation operation, target EndpointAddress, Uri, SecurityToken currentToken, TimeSpan timeout)

    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore (TimeSpan timeout)

    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken (TimeSpan timeout)

    to System.ServiceModel.Security.SecuritySessionClientSettings'1.ClientSecuritySessionChannel.OnOpen (TimeSpan timeout)

    at System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout)

    at System.ServiceModel.Channels.ServiceChannel.OnOpen (TimeSpan timeout)

    at System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout)

    at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce (TimeSpan timeout, CallOnceManager waterfall)

    at System.ServiceModel.Channels.ServiceChannel.EnsureOpened (TimeSpan timeout)

    at System.ServiceModel.Channels.ServiceChannel.Call (String action, ProxyOperationRuntime, Boolean, Object [ins] oneway operation, Object [], TimeSpan timeout breaks)

    to System.ServiceModel.Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage methodCall, operation of ProxyOperationRuntime)

    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke (IMessage message)

    Exception thrown once again [0]:

    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage (IMessage reqMsg, IMessage retMsg)

    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & msgData, Int32 type)

    at Tidal.Automation.Common.AssemblyManager.IAssemblyManager.GetServerId)

    at Tidal.Automation.WinForms.Loader.AssemblyStore.GetRequiredFiles)

    || 13. 19:20:37.696 06/03/2013 | 13736.   EXCEPTION INTERNALLY (System.ServiceModel.FaultException): An error has occurred during the security check for the message.

    Stack trace:

    More important than if their zones are different if their * time * differ.

    12:00 EST = 09:00 in PST as long as everyone (including Windows) is concerned.

    If both are 12:00 then the synchronization time is the problem, and this would cause problems of authentication handshake.  NT authentication allows only something like 10 minutes of clock skew.  My example here has 180 minutes of clock skew.

  • Since my 10.0.2 upgrade on my iPhone 5 my Wifi doesn't connect anywhere except home! This has never been a problem in the past I have connected everywhere wherever I was going to automatically! Is - this rare?

    Since my upgrade to 10.0.2 on my iPhone 5 my phone only connects to Wifi when I'm at home (cancelling the purpose of a MOBILE phone). This was never a problem in the past a my phone automatically and I received and could send emails, messages and use messenger etc automatically. Is - this rare?

    Hi John,.

    Please visit Apple support communities.

    I see that your iPhone 5 is not connect to other Wi - Fi networks after update to iOS 10. We offer troubleshooting tips.

    Since your wireless network is working, but you cannot connect to other networks, start with the next step in If your iPhone, iPad or iPod touch connects to a Wi-Fi network:

    Reset your network settings. Tap Settings > general > reset > reset network settings. This also resets the Wi - Fi networks and passwords, cell parameters and VPN and APN settings you used before.

    Sincerely.

  • Anyone having problems with the new iPhone LTE connection 7 on Verizon?

    I am now on my iPhone second 7 with Verizon. I had four phones for me and my family. I have now had issues where I have no signal in the same areas where my signal allows to be strong. I can't solve the problem with the activation/deactivation of the airplane and then mode again in normal mode. My phone will rest with no signal for 5 minutes, then going to LTE with three bars. I also had the problem where I had only 1 x signal, while my son standing right next to me has LTE. And he had the same questions, where I'm on LTE and it gets no signal. I use to have LTE where I live and work all the time, now it's spotty at best. Apple has replaced me and my sons iPhones but not luck. Still do. Any ideas or an any other suffering?

    (1) go to settings/cell phone/cellular data Options/enable LTE and select ONLY the DATA. This seems to solve the problem (as a temporary solution) for most of the people affected by this problem. The bad part is your request might not be as clear (since they cannot use the highest LTE signals) and you can make calls and data at the same time. But it does not solve the issue.

    (2) there are rumors (but you didn't hear that from me that we only are not supposed to discuss beta software program Apple in this forum) that the new version of Apple Beta for iOS (which also includes an update of the software carrier Verizon to 26.0) seems to solve this problem. So, there's a light at the end of the tunnel.

  • Sierra Siri, «I have some problems with the connection...» »

    Guys,

    I just installed Sierra on my MacBook Pro (retina, 13 inches, early 2015) version 10.12. I can't get Siri at work, the app tracks, he hears what I'm saying, but after awhile, he returns with two messages, both on the screen and verbally "I have some problems with the internet connection. Please try again in a moment. "&"Sorry, I'm having problems with the connection. Please try again in a moment. »

    Any ideas?

    Thank you

    N

    It's a network problem.

    Check the proxy settings that blocks maybe, or a firewall.

    System Preferences > network > Advanced (for your current connection) > Proxies

    Something there?

  • Add face problems - adjust the framework

    I have problems with the section "add a face" on iPhoto. The frame that appears often will not drag to make the image smaller, so that several people appear in the thumbnail instead of one of the faces that I want to identify. (Sometimes it works.) Do you have a suggestion on how to solve this problem?

    I use iPhoto 11', Version 9.4.3 on OS X, Version 10.8.5.

    Thank you.

    Try restarting iPhoto, as appropriate.

    Are very small photos, so that there are not enough pixels for a face frame?

  • Siri does not (problems with the connection)

    Hello

    I installed macOS Sierra yesterday. Everything seems to work fine, except Siri. With Siri I always get an error message "I am having some problems with the connection. Please try again in a moment. ». But this seems to appear every time. The network connection works fine, I can't access the Internet without problem.

    No idea how solve the problem?

    I use an iMac (27 inch, mid-2011). Internal microphone is connected, I also see the 'waves' change while I am speaking.

    Concerning

    Thomas

    Hey, thochstrasser. Thank you for using communities of Apple Support.

    It seems that Siri is reluctant to make his debut on your iMac after upgrade to Mac OS Sierra. I want to make sure that you get the benefit of this new feature on a Mac.

    1 try safe mode if your Mac does not start -even if your iMac to market, safe mode makes sure it starts successfully.

    2. How to test a question in an another user account on your Mac - since this is most likely a software problem, test to another user will indicate if it is right to your user account or throughout your system.

    3. use Time Machine to back up or restore your Mac - if it seems to be systemic, the next step should not cause problems. But it is always better "to have" a backup to the "need".

    4. on OS X Recovery - the issue as part of the operating system, reinstall should do.

    Have a great weekend!

  • How to make El Capitan to recognize my Canon printer I've done what I think is everything: one clean install of El Capitan (another problem); Reinstall the software from the CD; Anon same impression reset. No luck at all.

    How do El Capitan to recognize my Canon printer? I did what I think, that's all I can: clean install of El Capitan (another problem); Reinstall the software of Canon from the CD; same impression reset - my printer shows not yet up! I tried LAN and USB.  No luck at all. The printer does not yet appear upward on the tree of USB in the reporting system.

    What printer model Canon...?

    kologano wrote:

    The printer does not yet appear upward on the tree of USB in the reporting system.

    This looks more like a bad USB cable or bad printer.

  • iOS 10 problems with the Mail application

    Dear Apple and community support,

    Here's my problem:

    I have upgraded to iOS 10 on my iPhone 5s this afternoon (September 13), and now I'm not able to open e-mail - Yahoo!, and Gmail. I can receive emails, I'm not able to view the body of these emails. When I press on them, all I see is a blank white page. I can't answer emails either. I can only their flag or remove them. However, I am able to compose new e-mail messages.

    Here are the steps that I've taken to try to solve my problem:

    1. Restarted my phone
    2. Remove and re-add my Mail accounts
    3. Made a backup and a restore full while that plugged into my laptop with the latest version of iTunes.

    I should be grateful if you would help or more information on this issue.

    Thank you

    Emily

    I also have problems with the Mail application.  On my iphone, ipad, and Mac Pro.  I have several addresses, a MSN, another on Go Daddy and Gmail.  I have various weird problems with threads and every day he re-charge my emails, like if I have never read before.  Something is really problematic with Mail.

    Can the people of APPLE, you help me?

  • Problem with the installation of iOS 10

    I tried to install iOS 10 earlier but it did not work, so now that I'm trying to reinstall iOS 9 if my phone will work again, if this does not work I have to reset my phone (but I am a fool and did not a back-up because I never had a problem with the software updates in the past if all data will be lost).

    < published by host >

    The same problem with me too. After installing ios 10 nuer OTA my iphone brick! I'm trying to re - install ios 9 i-Tunes, but 2 hours now always stop installation... what happent?

  • My iPhone can connect to the computer via Wifi instead of cable? Because I figured that my head of the telephone cable i have problem if the computer cannot detect my folder after plugging in the cable.

    My iPhone can connect to the computer via Wifi instead of cable? Because I figured that my head of the telephone cable i have problem if the computer cannot detect my folder after plugging in the cable.

    Sync your iPhone, iPad or iPod touch with iTunes using a WiFi - Apple...

Maybe you are looking for

  • Helps to remove the profile of someone else to my gmail login window.

    Someone else uses my computer to connect to their account gmail long ago. Now, whenever I want to access my gmail account, their profile appears. I can not connect to delete, and it's annoying because I always wonder to connect to their e-mail first.

  • How to restore the ability to download files and documents?

    End of last week I noticed that I had accumulated a large number of cookies. I decided to clear the cookies and history by selecting «Clear history of Firefox closing» I deleted cookies and closed Firefox. Firefox has started closing but stop respond

  • Missing credit

    Skype sent me that I had to re-activate my account to cause not to use my credit for 180 days, this has happened before and I never had problems after the activation of my account. But this time my disappeared from my account. I tried to get in touch

  • Cannot save photos after the last update

    I just updated my ipod touch to 9.2 and now my pictures without saving. They appear on the roll immediately after taking of... but with the menu symbols at the bottom of the screen grey (unusable), and the photos disappear after I get out of the way

  • How to use NI 9871 in scan mode?

    I have a controller OR cRIO-9024 and a module NI 9871. I have set it up as the following link. http://digital.NI.com/public.nsf/allkb/16989C708E5AF2C1862578A90067D9DC Can I use the VISA Write.Function, Read VISA service to communicate with the device