Shared variables not updating in exe

Hi,
I've created a project with 2 vi's, they share data via Networked Shared Variables, one vi writes while the other reads.
The data is passed between the 2 vi's whilst running in the Labview 2009 SP1 development environment, but when I create an exe, the screen values in the reader vi do not update at all.
In the build specification I've tried both including the vi's which reference the shared variables and the
option to list the shared variable libaries for deployment at run time, as methods to overcome the problem.
Please, any clues why the exe should fail to allow shared variables to pass data ?
 thanks,
Gary. 

Hey Gary,
I've just created a project to replicate the issue you are having and indeed when I built the application, the Shared Variables were no longer working. This is because I hadn't deployed the Shared Variables in code; which I think may be the problem that you're having at the moment. When create a Network Published Shared Variable library in LabVIEW, it auto-deploys itself for the development environment; but this is definitely not the case for when you build an executable. Instead, you must deploy the library yourself in code.
In the attached zip folder, please follow the following instructions and hopefully you'll be able to fix your VI:
Unzip the folder and extract the files.
Open up the project.
Look at the project layout. Notice the SharedVariableLibrary.lvlib and inspect the Shared_Double variable.
Look at how the Reader.vi and the Writer.vi interact with the variable.
Go into the Main.vi. See that I make an Open Application Reference VI and Invoke Node to manually deploy the library in code. You'll have to change the path to this library to match the directory structure of your own computer, so just make sure it navigates to the library in the extracted folder.
Check out the Build Specifications. I've done nothing here except ensure I only include the Main VI. Finally build the VI and run the executable. 
You should see that this will give you a working Shared Variable setup. The Machine Name input for the Open Application Reference is blank because you only want to communicate with the localhost i.e. Your computer. Therefore by explicitly deploying all libraries you require, your VIs should be able to communicate effectively.
Does this solve your problem?
Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)
Attachments:
GlobalVariableProject Folder LabVIEW 9_0SP1.zip ‏26 KB

Similar Messages

  • Modbus I/O Server Shared Variable Not Updating Immediately After Flush

    Hi everyone,
    Weird issue here... If I create a Modbus I/O server in a LabVIEW project, bind a shared variable to a holding register, write to the shared variable, flush, and read back, the value returned in an immediate readback is NOT the value I previously wrote. I've attached an example snippet.
    In this example, PLC Command Complete is TRUE coming in. I write a FALSE to it. I flush the shared variable buffer. I read back PLC Command Complete. When I do this, PLC Command Complete will return TRUE (???), and after 100ms or so, return FALSE. How is this possible??
    Some notes:
    The shared variable is NOT network buffered.
    The slave is NOT altering the value of this variable; only this snippet of code is.
    Altering the refresh rate of the Modbus server does not affect the outcome.
    If anyone has any idea as to what's going on, I would greatly appreciate it!

    Couple of points.
    First, your screenshot shows network shared variables, not single process!
    Next, network shared variables take time to update (much longer than NI tell you!) If you knock up a little timing noddy to set a variable and then loop reading that variable until the transition comes through you get results like this (runnng from the programming environment, I've not tried with a compiled exe):
    Network shared variable, no flush - approx 20ms (NI say is should be 10)
    Network shared variable, flush buffer - very fast (faster than the ms clock resolution) but still took between 14 and 20 iterations of my loop before the change percolated through (certainly not what you would expect)
    Single Process variable - instant (even without the flush)
    This has caused me so many problems in the past (my own race conditions are bad enough without NI throwing in extra ones with this unexpected behaviour) that I try to avoid network shared variables now.
    Change yours to single process and you should be fine (or do they need to be NS?)

  • Datasocket read stop but shared variable can update

    Hello ,
    I program with datasocket open/read, sometimes the read stops and after some time,maybe 10s, it go on reading, I compare this with shared variable (DSC) and found
    the shared variable can update ,I don't know what happen to my program.
    ( the reason I'd like to use datasocket is that I need to change the ULR dynamically , I have many OPC tags to read ( 100 PLCs time 80 tags per PLC )  )
    thanks for your help!  
    Solved!
    Go to Solution.
    Attachments:
    shared variable VS datasocket.jpg ‏23 KB
    shared variable VS datasocket.vi ‏17 KB

    Hi~
    The read function waits for items to be updated, and 10ms is the default time for this waiting. Setting wait for updated value to false will probably solve this issue.
    PS: URLs of variables could be changed programmatically, see this document if you like.
    Good day

  • I/o server shared variable not working in deployment system ( error no-1950679034 (0x8BBB0006) (Warning))

    Hello ,
             am using shared variable from opc client in labview when am run a exe file at development system its working fine but when am running it in deployment system its not working am using same configuration file in opc server at development and deployment system error -1950679034 (0x8BBB0006) (Warning)

    First Root cause needs to be identified before any actions.
    I would suggest first check if you can access the shared variable hosted in PC from RT using other ways like using SVE API (Logos and PS protocols, Datasocket etc..)
    Check if antivirus or firewall is playing...
    Check the same experiment with some other PC if you can.
    You can also try creating another Shared Variable in RT and binding the same to the PC and try to access it...
    Since you have did all the reinstallations already
    Best Regards,
    Vijay.

  • Shared variables not working on PC

    Can anyone tell from the attached screen shot, why my one shared variable is not working with the labview application I'm running on my PC. I set the variable to 48 (I thought), and yet in the NI Distributed System Manager the value doesn't changed. 
    Solved!
    Go to Solution.
    Attachments:
    shared_var_not_working.JPG ‏255 KB

    Its not likely to be a deadband problem if you haven't touched the settings. I would check it out just in case though. In the project window, right click on the shared variable>>properties and select Update Deadband. See attached image. If it's not this, I shall have to think some more about what else could cause this.
    As for ensuring it works when setting it from DSM...from your screenshot you appear to have a VI that writes to the SV. Change the code ore create a new VI so that it reads the SV and then double check that if you change the value in DSM, the VI also reads back the updated value. It may be that the number changes in DSM but does not update the SV in the VI - this would indicate a problem with the shared variable engine or the deployed variable library...Reboot PC and retry... if the problem persists let me know or attach the SV library!
    Regards,
    Dave
    Senior Software Engineer
    www.Adansor.com
    Attachments:
    SV_deadband.PNG ‏8 KB

  • Variables not updating in Snippets

    Hi there.  I'm currently still on RoboHELP 8 and about to upgrade but I've found this issue is still a problem when I've upgrading my project to a trial version of RoboHELP 9 (with the critical update applied).  It's on my local drive - no networks involved.
    I've got a large project (around 2364 topics) and I use variables and snippets a lot in the project.  The developers have had a total redesign of the software interface and I updated a couple of the variables to guage how much work it will take to totally update the help.  In normal topics there doesn't appear to be a problem - but when a variable is in a snippet, the values aren't updating in the view (as per the above image).
    If you preview the topic, the variables update but each time you open the topic, it's reverted to displaying the wrong values.
    The compile uses the correct value so it's only a visual thing.
    The problem is that every time you open one of these topics, it looks wrong and you have to check the snippet to make sure it's been updated.  I'm very concerned that I will get complacent thinking that what's displaying on the screen is a visual firfie and actually overlook a variable that I haven't updated.
    Has anyone else experienced this problem?  Any comments would be greatly appreciated.
    We will be updating very soon and at least I can turn the snippets into html in each of the topics to fix the display issue but that would be defeating the purpose of having snippets.

    Hey Gary,
    I've just created a project to replicate the issue you are having and indeed when I built the application, the Shared Variables were no longer working. This is because I hadn't deployed the Shared Variables in code; which I think may be the problem that you're having at the moment. When create a Network Published Shared Variable library in LabVIEW, it auto-deploys itself for the development environment; but this is definitely not the case for when you build an executable. Instead, you must deploy the library yourself in code.
    In the attached zip folder, please follow the following instructions and hopefully you'll be able to fix your VI:
    Unzip the folder and extract the files.
    Open up the project.
    Look at the project layout. Notice the SharedVariableLibrary.lvlib and inspect the Shared_Double variable.
    Look at how the Reader.vi and the Writer.vi interact with the variable.
    Go into the Main.vi. See that I make an Open Application Reference VI and Invoke Node to manually deploy the library in code. You'll have to change the path to this library to match the directory structure of your own computer, so just make sure it navigates to the library in the extracted folder.
    Check out the Build Specifications. I've done nothing here except ensure I only include the Main VI. Finally build the VI and run the executable. 
    You should see that this will give you a working Shared Variable setup. The Machine Name input for the Open Application Reference is blank because you only want to communicate with the localhost i.e. Your computer. Therefore by explicitly deploying all libraries you require, your VIs should be able to communicate effectively.
    Does this solve your problem?
    Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)
    Attachments:
    GlobalVariableProject Folder LabVIEW 9_0SP1.zip ‏26 KB

  • Problem with Bind Variable not updatable.

    Hi all,
    I'm using Jdev 11.1.2.3.0. In my VO, I created a Bind Variable and set it NOT UPDATABLE. Then I created a View Criteria with some other Bind Variables.
    I use this View Criteria in a search page, but at runtime I see also an inpunt text for the variable that is set NOT UPDATABLE and I can change its value.
    Of course if I try to change the value and I do the search, I get an error.
    This is the VO source:
    <Variable
    Name="UlssVar"
    Kind="where"
    Type="java.lang.String"
    IsUpdateable="false">
    <TransientExpression><![CDATA[adf.context.current.sessionScope.get('ulss')]]></TransientExpression>
    </Variable>
    Is it a ADF bug?
    Thank in advance.

    Hi,
    try selecting the bind variable and open the Property Inspector, under UI Hints, set the "Display Hint" to hide. This should hide it (No bug for this reason)
    Frank

  • Global variable not updating in main vi

    Hello Friends,
    I had already prepared a vi with global variables assigned in it previously... now I have updated 4 more global variables to this vi... The output at the read jet data sub vi is updating whereas the force and the rpm values are not updating in this main vi.... I call this as main vi because I just see the final output here, all in one front panel...
    If i click on run once, I get 1 value and in order to get another value i should stop and run again.
    Could you please suggest me how can I get it updated continuously?

    LabVIEW will execute whichever one who wants to first.
    You can use error wires to force an order of execution.
    I would recommend looking at the online LabVIEW tutorials
    LabVIEW Introduction Course - Three Hours
    LabVIEW Introduction Course - Six Hours

  • Using shared variable not in the project.

    hi all
    I have a project with the 2 RT targets and the development PC which were i currently deploy all my shared variables, But I need to finally deploy these shared variable in a different stand alone windows based machine. To do this I created separate application which does nothing but deploys the shared variables in this PC. but when i tried to bind to this variables (frount panel binding) from my RT targets it woudnt work, the led does not glow, it is always transperent. but when I tried to connect to these variables from my development PC it works fine. I double checked the firewall problem, that is not the case here. Can anyone tell me what am i doing wrong?
    Thanx
    Arun

    Hi Prashanth
    Thanks for the reply. I did realize that the front panle connection would not be supported in RT, now i have the shared variables on my RT machine which has te source as the windows machine. If the windows machine is my development machine the shared variables connect fine, but if its a different PC the shared variables connect for few seconds and with the error info "shared variable value 0" then the connection gets disconnected.
    Also i read a note in the shared variables help, it said to subscribe and publish on a network shared variable all the shared variable which connects to this variable should be active. does this mean that if there are 2 RT targets that subscribe data and one of them is not switched on the shared variable does not work.?
    Thanks again for your support.
    Regards
    Arun

  • Shared Variable Not Deploying

    I'm having a hard time getting the shared variable to deploy on the C root of the computer.
    The following error comes up each time I try to deploy the Lib
    Deploying Untitled Library 1\\192.168.0.12\Untitled Library 1 deployment failed (error: -1967362042, IAK_SHARED:  (Hex 0x8ABC7006) Unable to start service.)
    I've tried uninstalling and installing labview and it's components.
    I would appriciate any help.
    www.movimed.com - Custom Imaging Solutions

    Joey,
    Thanks for the response.
    The service will not start. I get the following error attached.
    The document suggest reinstallation of the DSC Module, problems is I do not have DSC installed. We do not have a lincense for it.
    Dan,
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Service Start Error.png ‏27 KB

  • Variables not updated after repository merge

    Hello,
    I am using OBIEE 11.1.1.7 and i am having issue with RPD patch merge.
    I have updated the value in the Variable and created a patch out of it.
    when i am trying to merge or apply this patch other RPD , it is not updating the value in the variables.
    can you please help me with this.
    Thanks.

    Anybody on this?
    Why do the labels of Project Variables not change in Weblogic Enterprise Server 10GR3 although they change in BPM Studio?
    I also tried deleting these project variables from the Engine Tables --> PPROCINSTANCE and PPROCINSTEVENT
    Restarted Weblogic
    Restarted the Engine
    Restarted the workspace
    Redeployed a fresh BPM project.
    But nothing changed?

  • Shared icalendar not updating on other devices

    Hi all, I share my calendar with two others, one using an iPhone the other an iPad both with iOS6. My updated calendar does not update on their devices. I understand that the syncing process occurs when the device is connected to WiFi & being charged? Am I correct & is there any other reason why they are not updating?
    Regards,
    Roy

    I'm having this same problem. Suddenly no shared libraries can be seen. At first I thought it might be a software issue (all computers have been upgraded to iTunes 7.1.1). But now from reading this, I think it must be a router issue. I just replaced our router this week, switching out a Linksys 4-port router for another one almost identical. I did no configuration to the router, just plugged it in, reset it a few times, and it worked. I connect to my ISP via DHCP, so no settings required.
    But it must be the new router that's causing the iTunes problem. Does anyone know of a router configuration that might help? Maybe some port forwarding? Does anyone know the port over which itunes would be sharing its library?

  • Updated reports saved to shared directory not updating for users.

    We are using Crystal Reports XI to generate reports based upon our application (EZ-CAP).  When we update a report, and save it to our shared report folder on the server, the users "see" only the original report when the open it in Crystal Reports.  This behaviour persists even if they reboot their systems. We see this by looking at the timestamp in the Open dialog, which is not the current date/time.  The data is not refreshed, either.
    However, if the users close Crystal Reports and manually "find" the report by browsing the reports folder, when they next open Crystal Reports, the "new" file is available.
    We suspect the reports are being cached inside Crystal Reports, but don't know how or why.  We are not using the Repository at this time.
    Any insight will be appreciated.

    Hi Vickie,
    When your user browse for the new file, are they following the same netowkr path as the Open FIles in Crystal?  Is it possible the folder the reports are saved to may be mapped to a duplicate folder somewhere else on the network? 
    That's a dumb response but I've run across that situation before. 
    The reports are saved with .rpt extensions and no spaces?  Since Crystal's Common Dialog is looking for files with that extension. 
    In the File Open, if you change the Files of Type to All Files, do your users see the new reports?
    Good luck,
    Brian
    Edited by: Brian Dong on Feb 2, 2009 11:57 PM

  • Quiz variables not updating

    I am experimenting with the quiz variables in Captivate 4. I
    have a Flash file that loads a Captivate file. In Flash, I am
    pulling some of the variable data from Captivate... however, only
    some of the variables seem to be updating and I am not sure why.
    For instance, I have a few slides with click boxes that are set up
    to report quiz data.
    The following variables don't seem to update... at least
    publically that I can pull from Flash:
    cpQuizInfoLastSlidePointScored
    cpQuizInfoPointsscored
    cpQuizInfoTotalCorrectAnswers
    The following variables seem to be updating fine:
    cpQuizInfoTotalQuizPoints
    cpQuizInfoTotalProjectPoints
    I can also create a custom variable that seems to update
    properly.
    Thanks in advance.
    gregb

    Hi,
    The below variables gets populated once you start taking the
    Quiz.
    cpQuizInfoLastSlidePointScored - returns the points scored
    for your last question. You need to have this variable after every
    Question slide.
    cpQuizInfoPointsscored - returns the total points scored for
    the Quiz. You need to use it after the last Question.
    cpQuizInfoTotalCorrectAnswers - returns total correct answers
    after taking the Quiz.You need to use it after the last Question.
    Below variables gets prepopulated and need to not require
    taking Quiz -
    cpQuizInfoTotalProjectPoints - Total points for the project.
    cpQuizInfoTotalQuizPoints - Same as above one
    Please take the Quiz and check if the variables are getting
    populated appropriately and let me know if it helped.
    thanks
    ravi

  • Shared calendar not updating

    Hello,
    I am sharing a calendar with a friend. But if I edit and change the calendar my friend does not receive the updates.
    Does anyone have an answer or solution to this problem?
    Thanks in advance,
    Mike

    Hmm, something is wrong then.
    The calendars shoukd be updatet and synced almost simultanusly on both your accounts. That is if you have set it up to push updates. Check that.
    If you still have troubles, I would try to set it up again. And I would create the calendar at www.icloud.com (I have the experience that things will work better then). Set uo the calendar, click share, set it up as a private calendar and add your friends iCloud email and send the invitation. I think it should be OK then

Maybe you are looking for

  • I am trying to sign up for creative cloud as a teacher and the website keeps giving me an error message...

    I am trying to sign up for creative cloud as a teacher and the website keeps giving me an error message: "We're sorry. Something seems to be wrong on our end. Please try again later. If this continues to fail, please contact Customer Support."  Can y

  • PO_LINES_ALL how to identify POs of types "Standard POs" and "Blanket POs"

    Hello everyone, I have to create a report that contains all PO lines (from PO_LINES_ALL) and this report should only include the following document types: Standard purchase orders and Blanket purchase orders. Is there a field that identifies if a PO

  • Roaming issues

    Hi, I bought my iPhone 3G in Boston, but am spending a month in Dublin, Ireland. Ever since I have been here I have had the usual issues with 3G and signals getting dropped, battery draining etc... However, the biggest problem I have is that I cannot

  • Minor bug in vi snippet ?

    I created a snippet but the content of a cluster constant wasn't displayed in the png, however it shows up if I dragg it into a diagram. It doesn't happened with a 'selfmade' cluster. But if I do a create constant on a sine waveform , mark it and cre

  • SWT vs SWING

    Anyone here can help me decide about what�s the better enivoronmente to develope low-consumption resource app, SWT or SWING. I have some desktop ERP application developed with SWING but i have poor results (responsiveness talking). Also we have here