Shared variable problem reading after deployment

Hello

I tried to create an OPC client to communicate with a server KUKA. I have a project with an i/o library configuration server. When I run the project, I can perfectly read/write my variables using the Distributed System Manager. If I put all the variables, I can read the correctly updated value at the server end. However, as soon as I start a VI that contains variables (which deploys them automatically), everything stops working and I can not write them to the VI or the DSM.

I would be very happy if anyone knows how I could handle it.

Best,

Glauber

OK, so it seems that the problem was that the request from the client to the server rate was too high. I added a wait on the loop that r/w, the variables and now this works. There is no need to be a single writer, and the autodeploy option can be.

in any case, thanks to those who responded to the message.

Tags: NI Software

Similar Questions

  • Why cant a shared variable be read as a diagram in SignalExpress

    In SignalExpress I add a step to read a shared variable. I can display it in graphical mode, but not the graphics mode. Can someone explain why this is? I'm doing something wrong?

    Kind regards

    Frank Greenslade

    Christchurch

    New Zealand

    I found that the problem was the type of data. SignalExpress discovers double graph table.

  • How to choose which shared variables to read

    I am trying to clean up a code and I'm looking for style tips. The following code actually works as you wish, but I wonder if there is a more elegant way to do it.

    I have a number of variables shared playing of Modbus devices. The problem is that these can be disabled as needed. When the unit is off, all vi to try to read that variable sharing waits a time out, then gives an error.

    What I did is to put each read operation in a case structure and then have an array of Boolean to tell which ones is turned on (see screenshot). It works fine, but I wonder if there is a better way to do it?

    Thank you

    Mike

    Replace all the tables index and case with a single loop and use 'I' connected to a case to choose which variable to read.

    /Y

  • Are published network shared variable write & read Atomic actions

    Hello

    I have a very basic question about shered (published network) variable.

    I think I know the answer already, but since I couldn't find in my documentation, I thought that it is more prudent to request...

    Are reading and writing on a shared variable of stocks Atomic?

    To be more precise: on my target real time I create an array with data (each element being the configuration item or a cluster containing name, value, and type) and when the table is finished I am this store in a published network shared variable.

    On my host (Windows), I'm voting (in a loop) until the table contains at least 1 item, when this is true I'm parsing all the elements in the table.

    Is there a chance that, reading of the shared variable, the table contains a subset of the original painting on RT target (i.e. the action of reading takes place while writing is still ongoing).

    Or is the action of reading delayed until the write is completed? (i.e. both write and read actions are atomic even over the network)

    I think the latter is true but not could find no evidence in the documentation.

    Kind regards

    SoC

    Hello Rob,

    Yes, you can access the entire value, data type - you use both. For the table data type, the integer value is actually the full picture. So, Yes, you can see reading and writing as Atomic actions.

    But, on the other hand, you can lose data if the RT system rewrites the variable before the host had the time to read. To avoid this, you can enable buffering for the variable. See the following links for more information:

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

    http://zone.NI.com/reference/en-XX/help/371361H-01/lvconcepts/buffering_data/

    Finally, you can also activate a FIFO RT on your target RT if you need to send data through the variable in a deterministic section of the RT. See also, more information:

    http://zone.NI.com/reference/en-XX/help/370622H-01/lvrtconcepts/rt_projectvariable/

  • Shared variables problem

    Hello

    I'm using LabVIEW 8.5.I uses about 80 variables shared in my project using Datasocket also to write on the network

    wanted to know if I face any problem while doing the exe? What I have to follow a special procedure to generate exe?

    Help, please...

    Thank you

    GAK

    Hello

    Thanks for help.will certainly work on that.

    GAK

  • VISA problem read: after a while the device stops responding

    Hello world

    I am faced with a really strange bug than anything I've done him could not solve. I have a camera that I made myself communicating with LabVIEW by a RS232-> USB converter. Everything seems to be ok, but all of a sudden (it can last 30, 45 or 50 seconds), judgments of LabVIEW and data reception, as well as other buttons are no more, not even the stop button. I have to remove the usb converter to get the buttons answer once again, and then I got the error:

    Other programs that opens this same terminal can communicate with my camera for hours without errors. I have of course the session open and close only after the while loop. Can someone help me?

    How fast your VI reads the com port?... could he try to read too fast?... Add a waiting in your VI and see if that helps.

    Just a thought...

    Josh

  • shared members disappear automatically after the deployment of the ASO cube

    Hello

    What we were doing as below:


    the memerbers dimension are loaded by source for epma odi, and then, we deploy the aso and epma bso cubes.

    and the process type in the profile to load dimension members is defined as "merge as primary.


    the question as below:

    (1) initially, the hierarchy of the dimension as it:

    size AA:

    A

    A1

    A2

    A3

    This dimension is aso and aso cube deployed successfully.

    (2) the users change the hierarchy of the source table.

    changed to below: (just add a parent for A1 and A2 under A initial parent.

    A

    A'

    A1

    A2

    A3

    AFTE, this changes, and members are responsible for epma once again, the hierarhy of dimension in epma is as below:

    A

    A'

    A1

    A2

    A1 (Shared)

    A2 (Shared)

    A3

    and this process of loading and applications deploy processes run automatically overnight pocess.

    I thought that I delete the A1 A2 shared hierarchy and deploy the cube again after overnight charge and deploy processes.

    But what I saw in the structure of the aso cube after the party deployed the process is also that:

    There no common A2 A1 in the sketch, but just below members in the cube hierarchy in essbase.

    A

    A'

    A1

    A2

    A3

    It's really weird, why shared members disappear automatically after deploy and make different hierarchy between epma an essbase outline

    can you help me?

    I have no idea...

    EPMA is ASO-> size is set to "multiple hierarchies enabled" otherwise please turn on and then try to deploy.

    Thank you

    ~ KKT ~.

  • Shared variable of subjects with the executable in real-time

    We have a PXi target running Labview time real 8.5 and we use a series of shared variables for communication between the target and the client software. The code was developed (and used) in the last 2 years, and presented no problems with the shared variables when they are deployed since the Project Explorer (for the target and the laptop based client software). However, when you try to run an executable version on the system time PXI real target of exactly the same engine code variable shared seems to fail during the initial loading. Since it is an executable, it is difficult to display errors, but it seems that the accident occurred at the beginning of the program when we try to initialize a number of shared variables. Sometimes it loads but probably only 10% of the time. When you plug the tool to debug for code and restarting the executable, runs without any problem. However, once we managed to capture and error (error-1950678982 the shared variable client side read buffer is full).

    I checked a number of messages in the Knowledge Base (e.g. how to deploy Variables of a compiled executable shared network?), but it still has not solved the problem. Thoughts and suggestions?

    Adrian

    I tested it for a few hours now and I can't make it fail again. The big difference in my implementation was to use your suggestion, and no wire the error cluster through the method since the error it generates caused a number of questions later. So let me summarize the final configuration that seems to work then:

    -during the execution and executable on a target time real 8.5, startup not connected to a client. Library of shared variable hosted on the target and should load by itself.

    -J' added a flat structure sequence on the vi 'main' (top of page vi executable) with a node (as shown above) Invoke method in the first structure with a timer to 10 seconds and the rest of the code in the second part of the structure. The shared variable library has been copied to the target in a data directory and the path provided to the method (the same way as above) and the IP address is that of the target.

    I discovered that it takes about 8-9 seconds for the shared variable engine and library to start (I don't remember is that past exactly that) and it is important to wait this time to initialize shared variables or the behavior is unpredictable. The method always generates the error 1043 (function not supported) but I simply ignore it now, and it seems to work.

    Thanks for your help! I will let you know if there is some instability in the future, but everything looks good from here.

  • Common bug Variable programming read/Open Timeout

    I hope someone else has a preview of the question that I see when you use a network I/O published variable or static variable in general.

    There seems to be a bug when accessing variables shared by programming.  In the image below, I'm trying to access a shared variable hosted on a crio remotely.  In both cases I access the same shared variable on a crio which has been disconnected from the network.

    In the top box, the variable will be constantly timeout to 100 ms, when you use a shared variable node.  However, under the bottom, the time-out period is still 5000 ms even if I put it at 100.   There seems to be a 5000ms internal timeout in the service of programming for shared access even when you use the functions 'Reading Variable with Timeout' and ' Open Variable and check.  The Vi "Open Variable shared in the background" does not solve the problem either.  Time-out settings seem to have no effect if the network is disconnected when first login.  It is a huge problem if I opened a GUI and the network connection is disconnected.  All my demons using these variable slow to a crawl, because I can't specify a timeout.

    Not only that, but the vi is not reentrant and block.  So if I'm variable opening in several places, for example when using networks of actors, they all block series and create a bottleneck of the HUGE network.

    I hope that someone has experienced this same problem and has a way to go around.  At the moment I plan everything to use the TCP/IP protocol instead of rewriting shared or I/O variables.  Or establishing another layer that my calls them to the individual cards shared variables nodes.

    It's always a pain shared variable nodes are MUCH less flexible than with programmatic access.  In addition, I am also using an Ethernet add-on and I have to use shared variables to read data from the modules that there is no real time running on top.  Thank you

    Jiles,

    Thanks for the tip.  I had used the SHOUT library in the past, but he had forgotten.  This ended up being the solution to my problem.  I still think programmatic options for shared variables need to be a little more flexible, but I worked around it.

    In the library the CRY, there is a CRY Get Remote cRIO controller of information within this VI is an another VI cri_RT controller of Ping.  It is the function key that I ended up using.  I just a super short deadline on the function and check for an error before opening a shared variable connection.

  • shared variable Android

    Hi all

    I have a problem with the shared variable and labview android app.

    I create a basic while loop IV and a random number with the shared variable. Now I deploy all the variable and I have this message:

    Initializing... Calculating dependencies... The checking for conflicts. This may take some time... Prepare the items for download. This may take some time... Deploy my computer deployment Untitled library 1. lvlib deployment Untitled library 1. lvlib1\DDVariable1 DVariable1\\10.211.55.6\Untitled library deployed. Deployment completed successfully

    now I open android app, select "connect to the shared variable" and insert the IP 192.168.0.2 (ip address of my pc where run labview), but the connection fails... why?

    my ip address of the router is 192.168.0.1 and my smarthphone is connected via wifi in the same network.


  • published RT cRIO-9030 with network-a project of shared variables cannot communicate with host VI when compiled and deployed as executable startup.

    I have a project including a VI RT running on a cRIO-9030 and a host VI running on a desktop computer.  The two programs communicate via shared variables that are hosted on the cRIO.  As shows, when I run the screw of the project, everything works as expected.  When I compile the RT VI in a start-up executable can deploy for the cRIO, as well as the libraries of shared variables (the record of support in the build specification-oriented), I am unable to connect to the executable running in real time.

    I have 'Disable Autodeploy Variables' checked on the cRIO target, if I no longer get the prompt to stop the currently running application to deploy the variables.  The host VI opens and appears to run, but has no connection with shared variables (data does not update).  Compilation of the host VI as an executable file and it works outside the project result in the same behavior.

    I read some relevant posts / knowledge base articles related to this problem, but still can't seem to find a way around it.  I note a number of articles on the series in double bond of variables, but this is in contradiction with my possible behavior for this system: I finally have a number of cRIO controllers identical all runnning the same executable RT and want to be able to have a single host VI which allows the user to select from a list of available controllers (using the screw system configuration) and extract the host name of the controller selected, that would be later used for programmatic addressing of the variables on the host of part VI.

    In any case, I want to start with the simple fact of being able to get that first controller running without an open connection to the RT VI project.  With the deployed executable start, I checked via programmed behavior of LED application of the RT and FPGA are running on the cRIO.  The problem, I think, has to do with shared variables, but I'm not sure where to go from here.  I want to connect to RT executable running from the VI to the host (in project) to verify that the compiled executable of RT works as expected and then the subsequently compile host VI in an executable that can be run from any desktop on the local subnet.

    Thoughts?

    It seems that the error has now been corrected.  There were three things, I changed: the file startup.aliases in the startup on the target directory (Home: / lvuser/natinst/bin) put in 'localhost' as an alias for the controller.  I changed it to the IP address of the controller.  Then, I got some features of IO files in my application RT relative paths using the path obtained by the 'current path VI' VI.  As this path changes according to the location / delivery system, I had to create a VI that has used the Application property: type with a case properly structure band / build railroads desired regardless of the runtime system data files.  This may have broke my RT request.  Finally, I got a property node in one of my RT SubVIs, who attempted to change an indicator in the Subvi, which is not taken care of in an RT compiled executable.  I can't do this for debugging purposes somewhere along the way, but in any case, I removed it, and after a recompilation and the deployment of the executable of RT, everything seems to work as expected today.  The host VI on the desktop can connect to the application of the RT project, and when it is compiled into an executable file, which also works.

  • Shared variable library deployment error

    Hello

    I'm having a problem with my variable shared library in the .exe deployment.  I installed my two individual computers to request one.  We my library is as it should be and on the other, I get an error message, as shown below:

    Here's the code the error occurs in:

    I checked the path and name, and they are the same on both computers, i.e.:

    The two computers are new and have had just my app installed installation I built and as I said at the beginning one of the systems very well so all that is needed is to be installed.

    Both computers are Windows 7 64 bit. My application has been developed using LEVELS and Distributed System Manager 2010 is installed on the computers.   However we have installed windows Dell and the other made by my IT department using our brand Image (which is the one that does not).

    The only thing I've tried is to disable the firewall and adds indicators on the front panel to show me what was entered for a path and a name.

    I've also attached the my library file.

    I read a few on the other posts, but there seems not to be a consensus for the resolution of the problem and they have been since 2008.  I hope someone can give me a solution to this problem.

    Terry

    It is a follow-up to the solution of my problem.  I discovered there was a problem with the installation with this computer.  In collaboration with an Application Engineer of NOR, I was asked to perform a forced relocation of my request and this has solved the problem.  Here is the link on how to do it.

    http://digital.NI.com/public.nsf/allkb/ADD22E807D5A12AD862579EC00760F79?OpenDocument

    Terry.

  • Receive 2147220696 error message when you deploy shared variable library to cFP-2200

    Does anyone know what is this error and how to solve the problem?  I have LabView2010SP1 on my laptop and FieldPoint 6.0.7 with WIF as ADDon-Aug2010 on the CFP. Attached is a snapshot of the error screen.

    I have worked with Kellis Application Engineering and she determined that the shared variable engine had not begun on the CFP.  She had me reformat the CFP, reconfigure and reload the software of the PSC.  After that, I was able to deploy my variable library shared to the CFP.

  • datasocket read stop but shared variable can be updated

    Hello

    I program with datasocket open/read, sometimes stops playing and after some time, maybe 10 seconds, it go on reading, I compare with variable shared (DSC) and found

    the shared variable can be updated, I don't know what happens to my program.

    (the reason why I want to use datasocket is that I need to dynamically change the ULR, I have several OPC tags to read (automata 100 times 80 labels per PLC))

    Thanks for your help!

    Hi ~

    The reading function is expecting that the items to be updated, and 10 ms is the default time for this expectation. Affecting false wait the update value will probably solve this problem.

    PS: Variables URLS could be changed programmatically, see this document if you wish.

    Nice day

  • Shared variables is deployed several times

    Everyone has experienced problems with an application in development mode (LV2015) from deploy shared variables whenever it loads a VI?

    He suddenly began to arrive, and I don't know why or what I did. Now it charges 11 times before can run the application. Very annoying and I can't find where to select a VI not deply its Variables shared. Deploying them should suffice

    It was only a matter of time. I have a main VI calling several other VI that uses the same shared variables to communicate with each other. It translates the same loading variables each time the main VI called the next VI on startup.

    Solution was to right click on my computer in the project and check the option 'Disable Autodeplay Variables'.

Maybe you are looking for

  • Help on MacBook Air early 2014

    On my Mac: Running: OS X Version of Yosemite 10.10.5 Processor: 1.7 GHz Intel Core i & Memory: 8 GB 1600 MHz DDR3 Storage capacity: 120,14 GB Hey guys so recently my mac received a message saying that the startup disk is almost full. The problem is m

  • Card reader chip T61 not in Device Manager?

    Hi, I had a T61 7665 - 12G with a problem on the smart card reader. The Device Manager in windows 7 Enterprise, does not. And the only way to install the driver must already discovered HW. I am sure that this model has the smart card, because there i

  • Call the CME9 limit script: where it is

    Hello Y at - it a TCL script to limit the duration of the call to a call on CME9. Concerning Antra

  • I can't get my computer even go to the Facebook page... can open all other websites very well? Help!

    MY INTERNET IS RUNNING GREAT AND I CAN ACCESS ALL THE OTHER SITES, BUT WHEN I TRY TO GO ON FACEBOOK IT WILL NOT LOAD SO I CAN NOT GO TO FACEBOOK/HELP EITHER BECAUSE WHAT HE DON'T SE NOT LOAD. WHAT SHOULD I DO? I TRIED ON FIREFOX AND INTERNET EXPLORER

  • Laptop computer Acer battery level indicator

    I have a notebook Acer Aspire with Windows 8 on it... The battery level indicator turns off before sometimes but to come back after a reboot. Now it appears quite... Is there a permanent solution to this problem?