Can I read/write global variables that are in other PC?

I attach the vis and the executables.
My problem is that when I run( continuosly, because in other way, I read the default value of the variable) getvalue.vi and setvalue.vi, I don´t have any problem, I can read/write the global variables, the two vis is running in the same PC.
But when I do the exe and I run them continuosly , it doesn´t work.
Any solution?
Thanks in advanced!
Graci
Attachments:
Get_Value.vi ‏30 KB
Set_Value.vi ‏30 KB
Exe.zip ‏272 KB

Hello Bichillo,
By running the vis continuously you are running into race conditions. If you cannot control when you are writing to or reading from a global variable, you cannot know whether the value writen/read is the right one or not.
In your case the global variable value that is read is sometimes the last value writen and sometimes an empty string.
To make the global variable behave as desired, that is, keeping its last value, the global variable must be in memory when you access it using VI Server. If it is not in memory, the returned value is an empty string. That´s why you sometimes get a non-empty string: when you access the global variable to read its value, it happens to be in memory because you´ve just writen to it.
To ensure that the global
variable is always in memory and it keeps its last value, you must include the global variable into your block diagram. I am attaching modified vis that implement this.
Hope it helps.
César Verdejo
Training and Certification | National Instruments
Attachments:
Get-_Set_Value.llb ‏48 KB

Similar Messages

  • Setting global variable that are static but I want them to change

    I'm trying to set a global variable so I can let the user change the state in the Plugin Manager.  I've created a checkbox (in PluginManager.lua)
    f:checkbox {
         title = 'Show HTTP response',
         value = _G.showHttpResponse,
    that references the global variable (in PluginInit.lua)
    _G.showHttpResponse = true
    The state of the checkbox accurately reflects the initial value as set.  Everything seems fine but after unchecking the checkbox, the value is always true in my plugin.  I expected _G.showHttpResponse to change to reflect the setting in the checkbox.
    What have I overlooked?  Is this only for setting static globals?
    Abe

    Reading the Lightroom SDK manual seemed to indicate that using globals would be the way to go.  I'm thinking that it is only appropriate for static text.
    I've taken both your suggestions and have used the plugin preferences.  I didn't think you could get and set them in the Plugin Manager but they work just fine.  Now I set my debug flags in the plugin manager screen and they are available to the plugin and are persisted as well.
    Thanks for the suggestion.  Everything is working.

  • While syncing it says that it can't read/write to the iPod. I've reset to factory settings and it still won't work.

    Every time I connect it to sync it says it's been sync'd with another library and do I want to erase and sync w/ the current itune library.....it has never been sync'd with another itunes library....just this one on my mac.  When it starts to sync and says that it can't read/write to the ipod. I've restarted it, reset it and made sure my itune is the most recent.  HELP.

    When you still have the problem after restoring to factory defaults/new iPod then you very likely have a hardware problem and an appointment a th Genius Bar of an Apple store is in order.

  • I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • How can we deinitialize the global variable........?

    how can we deinitialize the global variable........?

    It would possibly be more performant to...
    DBMS_SESSION.MODIFY_PACKAGE_STATE (DBMS_SESSION.REINITIALIZE);
    Bearing in mind that reinitialize is not exactly the same thing as deinitialize ;-)

  • HT204380 Can you FaceTime between 2 iPads that are using the same apple ID but separate emails?

    Can you FaceTime between 2 iPads that are using the same apple ID but separate emails?

    Yes......I do so all the time.

  • I can no longer open any attachments that are sent to me. I click on and get cannot preview (but have had this for ages). I am clicking on download and nothing happens. It does not download. I clicked to install a new version after updating and clicking r

    I can no longer open any attachments that are sent to me. I click on and get cannot preview (but have had this for ages). I am clicking on download and nothing happens. It does not download. I clicked to install a new version after updating and clicking repair. But still the attachments won't open including invoices I have received today. It is all attachments not just pdfs.

    Angela Richens wrote:
    It is all attachments not just pdfs.
    Then most likely it is not caused by Adobe Reader.
    Anyway, perhaps someone has some idea, if you give us some details: operating system, browser, email client, ...

  • Why can't I access the updated that are pending on my phone?

    Why can't I access the updated that are pending on my phone? I've turned the phone off and also closed all the apps. But still won't allow me to access the updates. Just a blank screen.

    Another post is reporting that applying the 6.1 update fixes their issue. I'll have to wait until I am back on WiFi to try that.

  • How can i delete old email addresses that are no longer in service?

    How can I delete old email addresses that are no longer in  use from my apple computer

    Yes, just open mail and click on the window menu and select previous recipients, when the window opens start edit your email addresses.

  • HT203180 How can I delete old rental movies that are still on my iPad, but no longer viewable?

    How can I delete old rental movies that are still on my iPad, but are no longer viewable because the rental has expired?

    I have a similar problem.  The default answer on the web is to open Videos on your iPad, then touch and hold the movie you wish to delete, then tap the little cross that appears. Alternatively, you can connect to iTunes, select your device in the list, scroll down to the Rentals summary and delete from there.
    I have a problem with both of these solutions!  The Video App on my iPad does not contain any video icons, just an option to browse my shared library, so I can't delete it from there... ANd in iTunes, the movie in the Rntals tab on my device summary is greyed out, so I can't do anything from there either.  But the movie is taking up 2.5 Gb....
    Can someone please offer an alternative to resetting the device entirely?!

  • Can time capsule keep backup files that are removed from my computer

    Can time capsule keep backup files that are removed from my computer? I am a photographer and have a ton of files that take too much space on my computer. I'd like to have a backup of them but keep them off of my computer. Does time capsul allow this?

    files you remove from your computer will be removed from your time machine backups sooner or later.
    better store important files on an external HD which, if connected directly to your computer and given enough space on your TC, can be backed up using time machine.

  • I recently upgrade to an iPAD Air. I gave my old iPAD (1st gen) to my wife.  I restored it to original factory conditions.  Now we cannot install iBook on it since it requires iOS 7.  What can we do with older iPADS that are still 100% functional.

    I recently upgrade to an iPAD Air. I gave my old iPAD (1st gen) to my wife.  I restored it to original factory conditions.  Now we cannot install iBook on it since it requires iOS 7.  What can we do with older iPADS that are still 100% functional except for the fact that you cannot updrade the iOS above version 5?

    Look at this similar problem in getting Netflix on an iPad 1. Same technique should work for you.
    https://discussions.apple.com/thread/5753106?tstart=30
     Cheers, Tom

  • Why can I not open up photos that are being text to me?

    Why can I not open up photos that are being text to me?

    Hey Uptogetdown,
    Check out the following article:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    It is for troubleshooting issues with the Messages application on iOS devices, so I'd go through the steps listed and see if that resolves the issue.
    All the best,
    David

  • How can I get rid of numbers that are covering my entire desktop, caused by right-clicking "Clean Up Selection" on an icon?

    How can I get rid of numbers that are covering my entire desktop, caused by right-clicking "Clean Up Selection" on an icon?  The Apple OS X Mavericks blue & green desktop is totally gone.  HELP!

    Here's a screenshot of my desktop, as of a few minutes ago:  http://lewgoodman.com/desktop.tiff

  • Where can I find the Tables script that are used in the Documentation

    Hello All,
    Where can I find the Tables script that are used in the Documentation, Like Sales, Customers, employee, department.......
    Appreciate any Help
    Thanks & Regards
    Madhu K

    10g
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/scripts.htm#sthref77
    9i
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96539/scripts.htm#4216

Maybe you are looking for