Update of address of the card "shared Variable.

Hello Experts!

I have a question about shared variables:

Now I create a variable Shared (81O_G01) in the library, and it is related to:

My Computer\SVCREATION.lvlib\Modbus1\410611

Question is: How can I change this address SV (410611) when tha variable has already been opened?  is this possible?

Thanks in advance!

Anibal

Hey Anibaldos,

Looks like you're trying basically change the binding of a /A1 to /A2 variables at run time. I think that there are a few options for this:

(1) in LabVIEW DSC, you can access a hosted variable and change the link address by using a property node. If you run the server modbus on a windows machine, this is the best option. Otherwise, I'm guessing you don't have a DSC. If this is the case you can always edit links by editing the library manually, but it seems that this will not help you.

(2) it may be possible to open a variable connection shared using pallets (Data Communication > shared Variable) to this specific address, to which cases you have no need to use the shared variable. You can simply open a connection to two addresses different modbus and read one or the other as needed.

(3) if #2 does not work, then I think you can still use datasocket API to perform such an operation. There is a bit of research you need to do to use it (for example, URL editing and UI thread problems), but it does not work. In my opinion, this is the approach taken by this document: https://decibel.ni.com/content/docs/DOC-13508 (I know from experience, you have to dig a little to find the screw, but they are there).

(4) you can use the Ni Labs library: http://ni.com/labs

Tags: NI Products

Similar Questions

  • How to use the 'Get Shared Variable list' VI on a target RT?

    Hello

    I would like to browse all variables shared in a library hosted on my CompactRIO programmatically. I dropped the 'Get Shared Variable list' VI in my VI in real time, but when I tried deploying, LabVIEW says

    Deployment PRC_GetVarList.viPRC_GetVarList.vi loaded with errors on the target and was closed.
    LabVIEW: Unable to load the shared library dscProc.dll:ni_lvdsc_process_GetTagListEnd:C. ensure that the library is present on the target of RT. MAX allows you to install software from OR or FTP to transfer custom RT target libraries.
    LabVIEW: Unable to load the shared library dscProc.dll:ni_lvdsc_process_GetTagListBegin:C. ensure that the library is present on the target of RT. MAX allows you to install software from OR or FTP to transfer custom RT target libraries.

    I watched the wizard of the MAX software, but cannot find the DSC-based modules. Where should I look?

    Thank you!

    Hello

    The palette of DSC is not supported on the screws in real-time and will lead to errors when they are deployed.  Unfortunately, to have a successful build you will need to modify your application and remove the screws from the palette of DSC on your target of RT.

  • CompactRIO RT (:-65589) error code: error or warning occurred when writing the following shared Variable)

    Hello

    is anyone know this error Code:-65589?

    This error says:

    Shared in environmental_logger.vi variable
    This error or warning occurred when writing the following shared Variable:
    CompactRIO Target\Mod2\DO1 \\RT
    \\localhost\Mod2\DO1

    My cRIO9073 has 3 modules:

    MOD1: 9203 HAVE,

    MOD2: 9472 DO,

    Mod3: 9265 AO.

    When I delete all States and run only the first "init" State where I put DO0 = true and DO1 = false, I get this error. What could be?

    I think we need more information about your project - you can take a screenshot of your project LabVIEW RT target and the location of the shared variables? What is the configuration of the shared variable? Do you use the cRIO Scan Engine or FPGA (or both?)? How you deploy your library of variables? You should also zip to the top of your project and join, if you can.

    Here are some articles about the possible causes:

    http://digital.NI.com/public.nsf/allkb/C32368835ADAEE19862578500067A8C4

    http://digital.NI.com/public.nsf/allkb/7B52091D2FFA01EC86257C32005DF935

  • When I update my driver for the card ATI Mobility Radeon HD 3650 with live update my screen goes black

    When I update my driver for the card ATI Mobility Radeon HD 3650 with live update my screen goes black and stays black even after a reboot. I turn it off to go back to my office. nothing will be displayed, but the screen is powered.

    When I update my driver for the card ATI Mobility Radeon HD 3650 with live update my screen goes black and stays black even after a reboot. I turn it off to go back to my office. nothing will be displayed, but the screen is powered.

    Hello

    When you say "live update" are you talking about Windows Update?

    If so, you can go to the ATI site and download the latest driver for this video card. Here are the download links for the drivers later, Windows 7, 9.9 32-bit and 64-bit version for the Mobility Radeon 3000 series.

    ATI Catalyst Mobility Radeon Display Driver 32-Bit

    ATI Catalyst Mobility Radeon Display Driver 64 bit

    Hope this helps

    Thank you for using Windows 7 Ronnie Vernon MVP

  • Modification of the data types of the custom shared variables

    My application includes a library containing a number of shared single process variables. I use type defs to create the shared variable "of the custom control." I know that shared variables do not-automatic update since the type defs, so I'm updating shared variables (data type, do a right click, properties) whenever I update the type definitions.  However, if I make a change to a type design that does not change the data type, for example to change the labels controls, these changes will be reflected in the shared variable.  The data types of variable window shared list contains entries for each previous update, which indicates he uses the previous entries.  How can I make the window of properties of shared variables 'forget' my previous defs type wandering without deleting the variable total? Withdrawal and replacement would be troublesome because the done variable references throughout my project.

    Thank you

    Wes

    The variable is not in the Distributed System Manager, or Manager of the Variable, and cancellation of the deployment has not been resolved.  However, I found Labview from closing completely and reboot clears the memory of the previously used custom data types that sees the library.  Thus, the effective workaround I found is:

    1 make a significant change to the data type of the type (per your suggestion) FED. Record.

    2 - redefine the variable screw-notice type FED.

    3. save the project. Close and restart labview.

    4 - the old def type is now disabled.

    5. return the significant change of the def type, implement trivial change and save.

    6 redefine the variable using the type correct now def. Viola!

    Thank you!

  • Update Windows 7 breaks the card reader, causes random crashes

    Hi all

    I have a Satellite A500/026 that came with Windows 7 64 bit. Recently, I found only one) the card reader no longer works, and b) just after startup, I get an error message indicating that a component of software from Toshiba is broken down. Both developed these symptoms after a Windows Update, but I can't be sure that one.

    The card reader works OK if I start a live CD of Ubuntu, but do not work on Windows, so I guess the problem is with a Windows driver that has been "updated" during a Windows Update.
    Is there a set of drivers Toshiba I have to re - install after a Windows Update, or should I just wait that Microsoft fixes whatever-they-broke in whichever-update-it-was-that-broke-it?
    Any other ideas?

    Leigh.

    Try to reverse both previous OS using System Restore tool and see if this will fix the problem.
    For Windows update use important updates only. Do not install the updates options.

    Do back the OS first and send feedback.

  • How to add the card sharing on

    Is there a way to show the card of action action when a user long press a container? I tried this

            contextActions: [
                ActionSet {
                    actions: [
                        ActionItem {                        title: "Share"
                            attachedObjects: [
                                InvokeActionItem {
                                    query {
                                        mimeType: "text/plain"
                                        invokeActionId: "bb.action.SHARE"
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
    

    but when I click the icon + the action nothing happens is a toothed wheel when it is supposed to be a triangle thingy

    Thank you

    Maybe this thread will help you:

    http://supportforums.BlackBerry.com/T5/Cascades-development/how-to-share-URLs-using-InvokeActionItem...

    I don't know if onTriggered is necessary. Try to set the data when the query is initialized.

    UPD - I just noticed that you create InvokeActionItem inside ActionItem. Just create the InvokeActionItem directly instead.

  • Pass a reference to the shared variable

    I use two shared variables in a loop where I write one and read each other.  I need to repeat this loop 5 times, but each loop uses a different pair of shared variables.  These variables are shared between a vi on the computer and a cRio.

    It would be ideal to incorporate this loop into a Subvi where I can pass a reference to the two shared variables in and then read and write in threw these references.  Then I could just call this Subvi 5 times, instead of copying and pasting the loop 5 times.

    Is it possible that I can accomplish this?  I can't find an example that would achieve this.

    Thank you

    If I understand correctly, you can use the mode programmatic access to shared Variables and it would work.

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

    http://zone.NI.com/reference/en-XX/help/371361G-01/lvconcepts/usingdynvarapi/

  • Why it takes so long to open a connection to a shared variable, the first time?

    Hello

    I have an application to large scale developed with LabVIEW DSC, which covers multiple computers on a LAN.  In one of the VI I open variable connection shared by using the "open Datasocket' VI.  I notice that after restarting my computer and execution of this VI into the source code (I have not tried with an executable file yet) it takes about 20 seconds to get a successful connection to a variable share located on another computer.  The later 'Datasocket Open' claims the same computer to the same shared variable takes much less time, about 100 ms.  I reproduce this with 3 different computer, so the behavior seems to be reproducible, but it's not to do it every time but very often.  This scenario may occur also when I did not open a connection to another computer for awhile.

    Anyone have this experience? Is there something I can do all this to avoid this 20 seconds delay problem? Anyone have an explanation?

    All of my computers running Windows 8.1.  I'm using LabVIEW 2012.  All my firewalls are 'off '.

    Thank you

    Michel

    Here is a picture of my open VI.

    Recently, I did this for another client. You can emulate a timeout (and actually connect faster) by using the function "open in background" and then checking the variable.connected? property.

  • cRIO, shared Variables & stand-alone application

    Hello!

    I developed an application very simple acquisition of analog (NI9215) and the activation/deactivation of outputs signals digital (NI9472) using a cRIO (9012). Data are transmitted to the host through shared variables program.

    I created an executable of the code to be run by the cRIO, set it to the "launch on startup" and it worked.

    I did the same thing with the hosting program and created an exe installer. As I use variables shared the result of acquisition of pipes, I have them placed in the support directory (data) when you generate the executable file (Distribution.exe).

    This executable works perfectly on my computer.

    I used the Setup program to install the program on another computer. This computer as its IP address in the same subnet as my computer. But shared variables ever offer data other than their default values so I guess there is a problem of communication...

    Can someone help me?

    Hi zyl7,

    Thanks for the post!

    This is a common problem - I think...

    The problem is that you need to deploy two seté variables shared by two of the llb. You need 'real' variables on the cRIO - and deploy manually (see link) and a second llb on the host pc, which are related to real variables on the cRIO. This is because the local computer get variables shared, which of course are not those with the cRIO data locally.

    Perhaps in clearer terms.

    When you make an exe of a project using shared variables, you must have a local copy of the variables on the deployment computer which are then related to the 'real' shared variables stored on the target - cRIO, in this case.

    This means that in the view of your project:

    (1) Create static variable in the normal Manor on the cRIO.

    (2) create variables shared on the host PC - llb under the Pc host in the project and then select the aliasing and how to link to YOUR PSP.

    Let me know how it works,

    Kind regards

  • Sharing Variables economy on cRIO

    Hello

    I have a cRIO with a prog to RT. There are a few variables shared network that are hosted on the cRIO.

    I can update to a host application.

    If I reboot the cRIO, shared variables return what they have lately been defined.

    If RIO loses power, then is restarted, shared variables will come as soon as they were last record, not necessarily what they were the last updated also.

    Seems like a normal restart, shared variables are registered as part of the judgment, but on a sudden loss of power, they are not.

    Y at - there a command that I can send for the cRIO to force that he record it is common shared the values of the variables so that if she loses power it will restart with these values?

    Thank you

    Paul

    There is really no way to do what I know automatically.   The only reason SV persists between resets of RT is because SV resides in another

    process tagger.exe which continues to operate through a reset.  State of the SV is only saved in ram so it gets wiped out on a power cycle.   You will need to write code to read all of your OAS and then disk-based backup/restore.  As an alternative, I guess you could eventually save the State in the ownership of the initial value of the SV, which could then be saved-Flash and of course then would automatically restore as soon as voltage.

  • RT target does not read shared variable hosted by host

    Hello

    I just started to move my LabView application to a system of RT, and I came up with a problem. When I host a shared variable network-published on the RT target, I can access through vi running on the target and the host (which is good!). However, when I have this host on the host variable (such as by simply dragging on 'My Computer' in Explorer projects or all create a new variable), the vi running on the target RT is not read.

    I wonder if there is a problem with my installation of LabView, or if there is some step I'm missing. Any suggestions would be greatly appreciated!

    My host is running Windows 7 x 64, with LabView 2009 SP1 32 - bit. The objective of the RT is a real-time OS-powered desktop PC. I have attached a very simple project to illustrate this problem: I start 'Target VI' and 'Host VI' at the same time. On 'Host VI', I change the values of the two shared variables: 'hosted host' and 'target hosted. Only the changes made to the target "hosted" appear on the 'target VI'.

    Thank you!

    Andrew

    Take a look at this link (software configuration and firewall hardware to support National Instruments products) and this link (configuration of firewalls and routers network address translating shared Variables) to see if this highlights exactly what you need to explain in your application regarding the definition of the firewall exceptions.

    David has.

  • 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'.

  • VBAI: How to read a shared variable?

    I'm doing my inspection to do things that depend on the value of shared Variables. How to set the VBAI Shared variables, it is obvious, but I didn't understand how to read them and then create some kind of a structure of MATTER using this variable.

    Any ideas on how to implement such an architecture?

    I create two different States and use the transitions that are based on the value of the shared variable. You can read the value of the variables or the previous measures in stages that allow this (not all stages, but most don't) or transitions. To create a new State, go to the state diagram (click on the 'toggle window view hand' so the State-transition diagram is in the main part of the window). Right click in an empty part of the state diagram and select "create a new State".

    To create a transition, right-click on a State and select 'Create a new Transition' and drag the transition to the new State.

    To change the transition, double click it and you will be able to select the shared variable as measurement, and comparison operations to make the decision. If this comparison is false, the default transition is taken instead.

    Select help > Show context Help if you change the schema of the State for more details on how to use it.

    Hope this helps,

    Brad

  • Shared variable refuses to deploy correctly!

    My problem looks like one that has been met before, but without good answers on the documents OR or the forums. When you try to run a VI that deploys shared variables, I get an error that the shared variable engine was not found. This seems to be almost at random, because I was able to deploy perfectly shared variables. He could have when I rebooted my computer this problem started to occur.

    I tried to disable the firewall, which had no effect. LabVIEW 2009 reports the following when I try to start my VI:

    "LabVIEW: (Hex 0x8BBB0005) Impossible to locate the variable in the shared Variable engine."  Deployment of this variable may have failed.

    This error or warning occurred when writing the following shared Variable:
    \\.\fake_data\flow_sh
    \\.\fake_data\flow_sh".

    I will include all relevant files so that you can see exactly what I'm doing. The purpose of the fake_data program is just to practice using shared variables, very simple. Thanks for any idea that you can offer!

    my shared variables work once again, I just open cmd.exe and typed:

    net stop "national instruments variable motor.

    followed by

    net start "national instruments variable motor.

Maybe you are looking for

  • Messages on El Capitan - can't use nicknames?

    I have not found this issue anywhere, but I'm trying to get my contacts in Messages to display in Pseudo as defined in Contacts. Is this possible? I don't see why it wouldn't, currently nickname seems to work on my iPhone, not on my mac. Thank you Mi

  • Cannot install HP Software Solutions for C5550 on Vista

    I recently bought a new Photosmart C5550 all-in-one printer. I spent two full days, try to install the software on my Vista desktop. After countless hours on the phone with technical support to get the same results (fatal error & Windows Installer pr

  • Problems of Compatibility Mode

    Windows 7 RC x 32 Build 7100 I'm trying to run some games that are not supported by Windows 7, so I run it in compatibility mode.Right click > properties > compatibilityI set the mode to one that might work and I checked the box "Run as Administrator

  • E4200: no WAN access, can't Flash firmware

    Hey all,. I got my E4200v1 by yesterday and the installation was easy enough... Apart from two problems: 1. He's not through an internet connection. I use a de Vigor120 ADSL2 modem that connects to the internet just fine. When I plug in the router an

  • IR searchable hidden columns?

    I wonder if anyone knows a way to make the hidden columns available? I wish I had a hidden column full of tags, but I don't want to see the.I tried to change the column type "Hidden" and it does not work I also tried to remove the column from the IR,