Drag a variable shared within a block diagran

I use LV 8.5 with the DSC module. In a Project Explorer, I define a server OPC IO with a few tags and so I linked this tags to define the shared variables. If I drag and drop them directly on the front panel of a white VI, they work very well. If I drag and drop the shared variables for the block diagram of the same VI I get the following error

1950679020 error has occurred reading shared Variable in Untitled 2

Possible reasons:

LabVIEW: (Hex 0x8BBB0014) read access is denied to the shared variable.

This warning occurred while reading \\My Computer\IO_OPC_Test_Shared\Random (\\192.168.10.140\IO_OPC_Test_Shared\Random)

Shared variables are well deployed in the opposite case, they couldn't work with the fron Panel.

Where I'm wrong?

Thank you very much for the help

Gaetano

Hi, Lucius.

Yes you are right! Thanks for the pointer. I need to migrate at least LV 8.5.1

Good day

Gaetano

Tags: NI Software

Similar Questions

  • deploy programmatically variable shared within the standalone version of RT (cRIO-9014)

    Hello

    I have a question about here to use variables shared single process within the standalone version of RT for the cRIO-9014

    I simplified my request of LV (LV2010) in two to test the use of shared variables.  See the attached file.

    (1) only run on the host PC: testHost
    (2) only works on the cRIO-9014: testRTcRIO

    for both, I packed stand-alone executable and source distribution.

    for testHost,.
    (a). I copied \builds\testcRIO\Host to d:/or-rt/xmlrpcFEU source Distribution...
    (b) I run... \builds\testcRIO\Host.exe
    (c) xmlrpcFEUlog - host.txt is generated.

    for testRTcRIO,.
    (a) .d FileZilla to connect to the target of RT on network, I copied... \builds\testcRIO\Source Distribution\c\ni - rt\xmlrpcFEU

    to/or-rt/xmlrpcFEU on the target of RT
    (b) I copied also... \builds\testcRIO\Real-Time Application\c\ni - rt\startup to/or-rt/startup on the target of RT
    (c) Max, I restarted the cRIO-9014.
    (d) xmlrpcFEUlog - RT.txt is generated.

    We see that the shared variable does not work inside the RT target. but worked well on PC. the deployment programmatically method does not work.  any suggestion?

    Another thing is:
    can I use telnet for the RT 9014 target and start the RT app directly? What is the command inside the terminal telnet RT?

    Currently, I can telnet into the cRIO-9014, but, what I can do with it?

    ================
    220-national Instruments FTP
    220 service Ready

    530 journal please with USER and PASS
    USER
    331 user name okay, need password
    PASS
    230 user logged
    Help
    211 - USER PASS ACCT STRU TYPE
    211-MODE CWD XCWD PWD XPWD
    211 CDUP XCUP PASV, RETR, REST
    211-PORT LIST NLST QUIT SYSTEM
    211 STAT HELP NOOP STOR, APPE
    211 STOU HELLO MKD XMKD RMD
    211 XRMD DELE, RNFR TRAVEL SIZE
    211 MDTM
    ===========================

    Concerning

    Xiaofeng


  • Dragging Variables shared on front panel

    Hi all

    IM usin the Labview DSC module for a GI Bill is currently working on. I created my shared variables and am now trying to create my VI to display the data on a façade. The problem I have is when I select my shared variables and try slide them on my Panel until the front panel keeps minimizing. I hope this isn't a stupid question but no idea how to solve. I have attached a screenshot to illustrate my problem

    In general, before you try to select the variable shared and drag, please make sure that VI front window and the project window are not riding...

  • Change the target of the library Variable shared by program

    I have a project in real time with the code that runs on a host PC and a cRIO who communicate using a library of shared on the cRIO variables. I am hosting the variables on the cRIO because who has worked much better than the accommodation on the host PC. For normal operation, this structure works perfectly.

    However, I'm now trying to implement a system that will allow the user to choose if they want to actually run the code on the cRIO or run a simulated system. The simulated system would occur on the host PC, so it is logical for this application for variables to be located on the host PC.

    To account for these two cases, I would change the target of the variable shared library depending on whether the real-time system is running or if the simuation is executed. I can do easily manually simply by dragging the library in the Project Explorer, but prefer to automate this process.

    In short, I try to develop a code that will change the target of a shared library of variable.

    I tried to do that by opening a reference to the project file, using the properties to get the library reference and change the target. However, the target property is read-only. Is there another way to do this or I'm stuck having to do it manually?

    It turns out that I had a version of the shared library Variable on the cRIO, so even when I welcomed the variables shared on the host PC, he always wrote in the cRIO. In fixing this issue, I have been able to accommodate the library on the host PC and get all what to run much more simply.

  • Variables shared on the CFP becomes zero and communicate with the PSC

    I use a PC with two network cards, one on one wired ethernet, the other on a private IP directly connected to a PSC-2120 (running 6.0.5 full). I use variables shared on the CFP and aliasing to static variable on the PC (initially LV 8.6, now 2009f2 with the same problem in both). PC variables are stored in a database of the Citadel. I have the CFP program built to run at startup, and it works fine when not connected to the PC.

    When connected to the computer all variables shared on the CFP will from time to time (almost 1/min for a few seconds) and randomly becomes zero. Even if they are resized only not to allow to become zero. I can say that what is happening because I use the variables shared as relay alarm thresholds module, and relays to suddenly slam on. I confirmed this by checking that the CFP has written to its internal flash memory card, and indeed variables suddenly are nil. On the PC it says that it cannot connect with the shared variables. This happens although LabView is not running on the PC!  Manager distributed system variables shared on the CFP are listed as (disconnected) during this time, but it continues to be able to read the correct values to live of the CFP entered the module.

    Interestingly, I have the same computer with the same configuration (and a PSC-2120 different) that does not have this problem. Both PC's are new from the factory. I tried to disable the second ethernet adapter, closing all wall-lights/virusscan and re - order network cards in windows networking/advanced settings without success. Simply disconnect the cable between the PCP and the PC does not cause this problem and shared variables become zero does not trigger the network on the CFP monitoring parameters.

    My questions are:

    (1) this problem can be fixed?

    (2) lost communication for a few seconds is OK, but given the PSC variables become zero is not. Can I stop the variables of the PSC to become zero?

    -David

    To update my previous post, it turns out that the re-installation was not the solution (the problem of variables start again occurring began). I finally realized that this only happens when I put the CFP time server IP (under Additional Configuration to the MAX). I was upgrading the server time on 192.168.1.1 IP (the IP address of the adapter of the CFP has been directly connected to). However, this compensation setting solves the problem.

    I do not think that the time on the CFP must need to be addressed too often (and perhaps it is synchronized if I never re - deploy files to the CFP?), so I guess that leave it empty. Curiously, I have the same setup time on an another PSC server IP and PC (running LV 8.6) without problem.

    -David

  • variable sharing, missing data, the timestamp even for two consecutively given

    Hello

    I have a problem with missing data when I read a published network shared variable.

    Host VI:

    In a host of VI on my laptop (HP with Windows XP Prof.) I write data to the shared Variable 'data '. Between two consecutively write operations is a minimum milliseconds of wait time. I use it because I want to make sure that the time stamp of each new value of data is different then a preview (variables shared the resolution is 1 ms)

    VI target:

    the VI target cRIO-9012 bed only of new data in the way that it compares the timestamp of a new value with the time stamp of the last value on a device in real time.

    Problem:

    rarely, I'm missing a data point (sometimes everything works fine for several hours, transfer thousands of data correctly above all of a sudden failure occurs). With a workaround, I'm able to catch the missing data. I discovered that the missing data have the timestamp exactly the same, then the last point of data read, is so ignored in my data 'legal '.

    To summarize, the missed value is written to the variable shared host, but ignores the target because its timestamp is wrong, respectively the same as the last value, despite the host waits for a minimum of 10 milliseconds each time before writing a new value.

    Note:

    The shared Variable is hosted on the laptop and configured using buffering.

    The example is simple only to display the function of principle, in real time, I also use a handshake and I guarantee that there is no sub - positive and negative.

    Simplified example:

    Question:

    Anyone has an idea why two consecutively data can have the same timestamp?

    Where timestamping (evil) Finally comes (System?)?

    What would be a possible solution (for the moment with shared Variables)?

    -> I tried to work around the problem with the clusters where each data gets a unique ID. It works but it is slower that comparing the timestamps and I could get performance problems.

    It would change anything when I animate the shared on the RT System Variable?

    Thanks for your help

    Concerning

    Reto

    This problem has been resolved in LabVIEW 2010.  You can see other bugs corrections in theReadme of LabVIEW 2010.

  • Use of Variables shared with RT-project / home-VI

    Hi all

    I have a small question which is certainly easy to answer for those who have already worked with a RT - VI containing two periods loops and a user interface that is deployed on a host PC.

    Q: is there an advantage to the data acquisition in the urgent loop by using a variable shared unique process (active FIFO) and then through the data on the host computer the nondeterministic loop simply through a shared network-published (new FIFO active) variable that directly passes the data on the host PC?

    Thanks in advance,

    David

    Hi Kolibri,

    The advantage of having the network publishes the variables in your non-deterministic loop as opposed to the evanescent loop is that it reduces the resources needed to perform the evanescent loop.

    Send the data to a different loop in the same program with unique shared variable or process with RT FIFOs requires fewer resources than to send data over the network. This allows the loop of high priority execute more deterministic way, without having to manage communication networks.

    Kind regards

    Stephen S.

  • Variables shared by using two computers and crossover cable

    Just trying to put together a simple testbed linking two computers by a crossover cable.  They correctly ping to each other.  I used examples of LabVIEW for TCP connections and they speak properly that way too.  I try to create and deploy variables shared on a computer, but the other computer will not identify not the SV on the first computer and vice versa.

    Can someone give me some details on how to build, deploy, and use effectively SV?  I have read all the documentation NOR, but I don't get the step-by-step approach very well.

    Thank you.

    Are you making them shared variable network published and linking them to each other? This document gives a very good step by step:

    http://digital.NI.com/public.nsf/allkb/7815BCE435DCC432862575DA006FEBF8

    -Ryan

  • Impossible to use variables shared when deploying an exe file

    I tried to use variables shared for some time. I have been all over the forums and still have had no luck. I can get these VI to work until I have install on another PC while they do any work. I don't know what I'm doing wrong. I forced libraries to deploy, but they still do not work on the machine, that I install the exe file. I don't think that libraries are being installed. I can't see in the Distributed System Manager. I can see libraries on other machines, but not on the one that I have.

    Have you included libraries in section always included the source files.  You did, and then change the destination of the library of media files on the Source code file settings tab?

    In the code are you using the correct path when calling the libraries deployment method.   Current path of the VI should be stripped twice and have "data\name.lvlib" built in the end.

  • How can I configure the variables shared between executables created in sepparate projects

    Hello

    I have several projects sepparate with their own respective executable files and I would like to be able to these executables to all share the same variable (one program control the value of the variable, while others read her).

    I got this configuration to work on my home computer (being able to access the variable Manager, etc.), but I need to deploy these executables on different computers that do not have the labview development program. What should I do so that I am able to put these executables on any computer (I guess I have to configure a path to the shared variable which is always in the same folder, etc.)

    Thank you

    Vlad

    Hi Vlad,

    I think that this article may answer some of your questions about the variables shared in deployed applications.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/9900

    Looks like you already have your executables built, but this article may answer some questions about their deployment to other machines.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3303

  • Problem with Variables shared in exe running on Windows 2000

    Anyone know if there are problems with the Variables shared on Windows 2000? I can't get the LabVIEW executables that use shared Variables to work Windows 2000 on a computer with just the runtime engine.  Everything works perfectly on XP on a machine with just the LabVIEW runtime engine installed (using LV 8.5).  Shared variables are supposed to work less than 2000.  I have attached the sample code that is based on one of the examples NOR to the Variables Shared - editor and the Subscriber - with some extra stuff for the diagnosis, I added.  On Windows 2000, you can only run one or the other exe.  It seems that as soon as the other come to the part on the diagram with the shared variable node it crashes.  Shared variables are getting written in the because if you close the editor and then run the exe subscriber it reads the latest values set properly.

    On Windows 2000 I tried with the administrator account and off the ladies of viruses, firewalls.  There may be another Windows 2000 setting that causes this problem with the two exes trying to access shared variables.  I do not have the development environment on Windows 2000 computer that the purpose of this exercise is to see if its worth using shared variables.  Windows 2000 computers remain the same in the Test and measurement world.  A research on Developer Zone does not there is no particular problem with Windows 2000.

    Any suggestion is appreciated.

    Hi André,.

    Thanks for the comments!  Your feedback will help us improve LabVIEW for our customers.  This bug has been reported to R & D (#45493), and they're currently investigating this issue.  For now, the best solution seems to be using a different operating system, as this seems to occur only in Windows 2000.  Thanks for the comments!

  • Run-time error '91'; Variable object or with block variable not set "

    Help, please... I had "run-time error '91'; Variable object or with block variable not set "for kawai2004 game.  Please help how to fix this error.  Thank you very much.

    Hello

    See the following article
    http://support.Microsoft.com/default.aspx/KB/822521

  • Deployment of local variables shared on a real-time target

    Hello everyone, once again

    I read more posts and knowledge base articles about this topic than I can count at this point, and I'm scared, I'm still not clear on exactly how it works, and I hope that someone can delete it for me, if it is to earn themselves some laurels more.

    I have a project with a real-time quote and the other Windows.  They shared communication via network-published variables.  The real-time part also uses shared single process variables to communicate between the loops.  I have the intention of all 3 libraries of shared variables (Windows-> RT, RT-> Windows and RT Local) to be hosted on RT target for reliability.  Real-time executable must start at startup and run even if side Windows is not started (on the side of Windows is optional).

    I realized that real-time executable will not start the variable engine shared and/or deploy itself shared variables.  I also read that I can't deploy the shared variables programmatically from the side of RT.  This leaves only two options that I know of:

    (1) their deployment programmatically in Windows-side program.

    (2) deploying the shared variables on the target RT manually via the project in the LabVIEW development environment, and

    About option 1, as I said running Windows is supposed to be optional, so you have to run a program on the Windows side before the side RT will work is highly undesirable.  Moreover, even if I do a little "Deploy shared variable" application that runs at Windows startup, I can't guarantee that it will work before start of the side RT executable will run.  In this case, the executable file RT will fail due to not having the variable engine shared running?  If so, and side Windows, and then starts the engine / deploys the shared variables, the side RT begins to work automatically?  If not, is it possible to trigger this restart of the Windows startup application side?

    Also, I just read everything and tried the option to build to deploy variables shared in the application of the side Windows.  Not only that my RT shared Local Library variables not listed as an option (given that the application of the side Windows does refer to it in all for obvious reasons), but when it deployed two other libraries at startup, the program side of RT (which was running in the development environment) stopped.  I'm not positive that would happen even if he was running like a real executable file, but it is certainly enough to make me nervous.  I assumed that the library is not listed may be resolved by including a variable network-a published in the local library of RT and including the app side Windows.

    About option 2, I don't understand how I'm supposed to deploy my libraries shared variables without stopping the execution of the startup on the target real-time application.  Once I did, the only way to restart the application of the RT is to restart the computer RT, correct?  In this case, I just undid all the interest to deploy the shared variable libraries?  Unless libraries remain deployed and variable motor shared running even after restarting the computer of RT, which would solve the problem I guess.  Certainly, I would like to know if this is the case.

    However, option 2 is complicated by the fact that when I manually right-click on any of my shared variables libraries and select "Deploy" or 'Deploy all', libraries still do not appear in the Manager of the distributed systems, even after clicking Refresh several times, on the local system or the target system.  The only thing that shows up, on both sides, is the Group of 'System', with FieldPoint, etc. in it.  The same is true when I run my application in real-time in the development environment, even if the shared variables are clearly working, as I mentioned earlier.

    So, if you have done so far through this mammoth post, thanks!  I have three main questions:

    (1) are that all my descriptions above correct in what concerns the variables how work sharing?

    (2) what is the best way to meet the requirements I have described above for my project?

    (3) why shared variables libraries not appearing in my manager of distributed systems?

    Thanks for any help you can give on any of these three questions!

    -Joe

    1. Yes, as soon as you deploy the project the NSV is tranactional.  EVS is loaded by MAX when you configure the RT target and begin to operate as part of the boot sequence.

    2. you can see anything on your target rt in the DSM?

    3. Yes, NSV and EVS are persistent resets.

  • global variables shared between several targets of RT

    Hello

    I'm looking for some information about variables shared between RT communication network.

    Scenario: a PXI 'master' and several 'slave' PXIs running that screw RT. data is available in the form of a cluster of definied type on each slave PXIs (inside a non deterministic while loop). I guess I create global variables of network shared for each PXI slaves. A variable for each slave. I only write data in these variables in one place (above mentioned, while loops), on the PXIs slave. I need to read that data in a way with loss (I just need that value the most recent, as tags) from the master PXI.

    Question: can I simply use "network shared variable" settings by default? I mean, I do not enable the option RT FIFO (single element), because I think that for a cluster that is a no go in the case of RT (variable length)?

    What do you think? Or would you have better idea how to share data between slaves and masters RT targets (I do not have deterministic/losless transmissions, only these last values)?

    I think that the way to proceed is to use the shared Variable Aliasing/binding - they allow you to 'link' shared variables in any of the multiple targets. https://forums.ni.com/t5/LabVIEW/Bind-Alias-shared-variable-to-scan-engine-variable/td-p/3290043.

    You can also use shared variables of programming access to access running on another target: http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/usingdynvarapi/

    With regard to the other methods - you could always disseminate data via UDP multicast (or with a TCP/IP connection manager).

  • Using variables shared between the different versions of labview

    Hello

    I look at the use of variables shared between two different versions of LabVIEW. We have a 2 of the PXI system and a single PC. We are currently updating the code on the PXI system to 2014, but the PC still work 8.2.1. We now need a map of ARINC-429, which is executed only 2009 +, that is why we are to day. First tests show that shared variables do not communicate between the two. I think that the reason may be that the PXI running the version of variable motor 2014 shared, while the PC is running 8.2.1, but I don't know if it is precisely for this reason it does not work. Is there a way to communicate between two different versions of LabVIEW with shared Variables?

    Thank you!

    SOLUTION

    There are two key elements in the process of installing software that are essential for PXI to communicate with another version of LabVIEW: Legacy Server Support Variable and Variable Support of Legacy Protocol. The first, in charge of the Protocol, was automatically installed through the selection of the other ingredients (although I do not know which triggered its installation). The second has been nested in the Protocol, but was not selected automatically.

    The Protocol allows the PXI 2014 connect to shared variables hosted by devices 8.6 or an earlier versions, while the server allows before 2009 devices to communicate to shared variables hosted on PXI of 2014 (which was the initial problem)!

Maybe you are looking for