Does the definition of "Execution State" equals "Bad" change between developmen​t environmen​t and run-time?

My basic question is:
If the execution state of vi is "bad" under the development environment, shouldn't it also be "bad" under the run-time environment?
So here is the background:
So I use SVN and I ran into this problem where I would be working on one piece of code without having my top-level vi open and would inadvertantly break the top-level vi.  And being in hurry or whatever I would not open the top-level vi to check the run arrow and I would check in my code, which of course breaks the top-level vi for everyone else and causes lots of problems. 
So to solve this I wanted to create a Tortoise SVN client side hook to check the check the top-level vi(s) to see if the run arrow was broken before I commit my changes.  I'm trying to use the Execution State to check this.  I am using an Equals primitive to compare it to a "Bad" constant. (as a side question is checking the execution state the best way to do this?  or is this even a valid way to do this?  It's the only way I've found so far to check the run arrow.).  
So the way I'm going about this is:
1.  I create a executable (written in LabVIEW) which is run by TSVN
2.  When TSVN calls it  (I set it up as a start-commit hook) I pass it a parameter which is text file which lists all the top level vi(s)
I do these first 2 steps in order to make it as generic as possible.  I can use it on any project with any number of top-level vis (or dynamically called vis) all I do is point it to a different text file.
3.  Inside the executable I just read the list of vis, open a reference to each one and check the execution state.  I do this inside a for loop, but keep the references open and close them after the for loop in case they share some subvis or libraries, so they stay in memory (could this be the cause of some of my problems??)
4.  Then after the for loop executes and the references are closed I simply fire off a popup if any of them are broken.
5. Then I simply exit LabVIEW to return control to TSVN.
So my problem is this:
In the development environment everything works as expected.  But when I try the exact  same thing in the executable it tells me the run arrow is broken.
Why the difference?  I'm checking the same list of vis and the runs arrows have not changed, they are still all good.
So it appears that checking the execution state to see if it is bad behaves differently in the run-time versus the development environment.
Can anyone confirm or deny that?
It seems to me that it should behave the same.
The help for the Vi.Exec.State property says that it works in the run-time (Read-only), so why am I getting different results?
On a side question if anyone knows of an easier way to accomplish what I want to do, please let me know. I went this route because I had some experience with writing TSVN hooks and I thought it would be pretty simple and it is if I can get this comparison to behave.
edited to fix a typo and to remove the duplicate attachment
Attachments:
Check Run Arrow_BD.png ‏6 KB

I believe that plugins rely on the libraries being located in a specific location. The installer can place these libraries in the specific location or some other installer can do that. You can create code that scans the library directly to "learn" what packages/libraries are available. Then you would build the path to that VI and open the reference to it.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • HT1689 since doing the 7.0.4 update i notice that my mobile data has doubled and i am running out of data mid month.  I've disabled apps s not many running.  Any suggestions?

    since doing the 7.0.4 update i notice that my mobile data has doubled and i am running out of data mid month.  I've disabled apps s not many running.  Any suggestions?

    I am having the same issue even with the newer 7.1. I have a 1-100 KB data push on both my husdand's and my phone every hour on the hour (i.e. my will be at :23 of the hour and his will be at :13 of the hour and it will change). This is whether we are on a WIFI and with all apps, background refreshes, push notifications, etc turned OFF.

  • 've redeemed my itunes card and at the top of the itunes stores it states "$20. in your account" but when i try and purchase a song it still comes up with my billing info and dosent pick up the card at all??

    I've redeemed my itunes card and at the top of the itunes stores it states "$20. in your account" but when i try and purchase a song it still comes up with my billing info and dosent pick up the card at all?? plz help me

    If the amount of the purchase is close to $21.07, then you need to take into account taxes may be added.
    If you go beyond the credit from a gift card the balance will be billed to your credit card account.

  • Does the SD - X D slot on HP C410c PREMIUM FAX AIO Printer recognize and read SDHC and SDXC cards?

    Does the SD - X D slot on  HP C410c PREMIUM FAX AIO Printer recognize and read SDHC and SDXC cards? 

    Does the SD - X D slot on  HP C410c PREMIUM FAX AIO Printer recognize and read SDHC and SDXC cards? 

  • The Microsoft Exchange administrator has made a change that requires you to quit and restart outlook.

    Then I get this once outlook is open:
    Cannot start Microsoft Outlook. Cannot open the Outlook window. The set of folders cannot be opened. The operation cannot be performed because the connection to the server is offline".
    Outlook 2013 client
    Exchange 2010 SBS
    I have recreated the profile, doesn't work. Recreating the OST doesn't work. Starting Outlook in any safe mode doesn't work. Disabling hardware acceleration and add-ins does not work.
    repair account does not work -  I get the Congratulations message, confirming it was able to get everything from the server... and when I restart Outlook:
    "The Microsoft Exchange Administrator has made a change that requires you to quit and restart Outlook".
    BJN
    Also the user in question is not getting new mail.
    And I have tried this
    outlook /resetnavpane to no avail.

    Hi,
    Please confirm if the issue happens to all users in your Exchange server.
    In client side, please check the Connection Status when the issue occurs:
    Please open Outlook - press CTRL key - right click on the Outlook icon from right bottom corner taskbar –Connection Status to check the connection.
    Please notice the Server name, status, protocol and Type information.
    In Exchange server, please check whether all Exchange services are started and running in Exchange 2010. Also check whether there is any error information in Event Viewer.
    If the issue only happens to one user, please update the Outlook client with the latest patches and service packs to have a try.
    Regards,
    Winnie Liang
    TechNet Community Support

  • How to change the default search engine? I accidentaly change it from google to yahoo, and I can't get it back. I changed my homepage too, but it isn't solved. Thanks

    dear, there.
    how to change the default search engine? I accidentaly change it from google to yahoo, and I can't get it back. I changed my homepage to google too, but it isn't solved. Thanks

    Clarification:
    I believe now you potentially lose all extensions, plug-ins when you use the new reset function, but you will let me know.
    If that is the case, your find corrupt file method maybe better. However, I reviewed the two help articles and there appear to be more files than just the delete search.json file and a possible search.sqlite file in the Firefox Profile Folder. I am confused. Then I have to find the folders. I think help articles mentioned how to find the profile containing the files, but not sure.

  • When I open 2 or more browsers of Firefox, click to open and close email it pops up the First Firefox browser since I have verrsion 6 as of yesterday. And some times the tool bar dosen't appear or have to refresh it.

    Question
    When I open 2 or more browsers of Firefox, click to open and close email it pops up the First Firefox browser since I have verrsion 6 as of yesterday. And some times the tool bar dosen't appear or have to refresh it.

    Question
    When I open 2 or more browsers of Firefox, click to open and close email it pops up the First Firefox browser since I have verrsion 6 as of yesterday. And some times the tool bar dosen't appear or have to refresh it.

  • I just bought a new Iphone and when I connected it to itunes and I downloaded the backup from my last device, now I can't pass this step and every time I connect it to itunes is the same thing.

    I just bought a new Iphone and when I connected it to itunes and I downloaded the backup from my last device, now I can't pass this step and every time I connect it to itunes is the same thing. And I can't download any app because problems with my account regarding the credit card but the information is correct and it says it is not!!!

    You'll have to contact iTunes store support regarding your credit card information problem: http://www.apple.com/emea/support/itunes/contact.html.  I'm not clear on what you're saying about your backup.  Are you saying that when you connect to iTunes it's asking you to restore from backup even though you already have?

  • MS Outlook 2013 Error message "The microsoft exchange administrator had made a change that requires you to quit and restart outlook"

    I am currently running 2 HP Servers, SAN Storage. I have Exchange 2013 installed and MS Outlook 2013 randomly appears with the message
    "The Microsoft exchange administrator has made a change that requires you to quit and restart outlook" It is happening very frequently and is appearing every few seconds on a lot of users.

    Hi WeeMac22,
    If you migrated from Exchange 2010 to Exchange 2013, I found a KB for your reference:
    Outlook 2013 cannot connect after an Exchange Server 2010 mailbox is moved to Exchange Server 2013
    http://support.microsoft.com/kb/2934750/en-us
    If not, I suggest using OWA to verify whether this issue remains.
    1. If everything works well in OWA, it seems an issue on the Outlook client side.
    I suggest run Outlook under safe mode to avoid some AVs and add-ins.
    I suggest re-create profile to refresh the caches.
    I suggest re-install the Outlook if all methods above not working.
    2. If this issue remains in OWA, please verify whether all users on the Exchange 2013 have this isse.
    If only one user has this issue, I suggest create a test user to check whether the test user has this issue.
    If the test user works well, I suggest try to re-create the specific user account.
    Please make a full back up before re-creating.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • The Microsoft Exchange Administrator has made a change that requires you to Quit and restart outlook in Exchange 2013 CU3

    I have a Exchange 2013, That has been running for a few months now since we moved it over, but now I get the Microsoft Outlook Message "The Microsoft Exchange Administrator has made a change that requires you to quit and restart Outlook." It only
    shows up on certain users but not on others. What could be the problem? The only answers I have seen are for Exchange 2010.
    All Help is much appreciated

    This one? http://support.microsoft.com/kb/2934750

  • After updating my 4s to ios6, I'm having the same problems with wi-fi switching to cellular on it's own and running up my data usage.....anyone else having this problem?

    After updating my 4s to ios6, I'm having the same problems with wi-fi switching to cellular on it's own and running up my data usage.....anyone else having this problem?

    The iPhone is DESIGNED to switch to cellular data when asleep, unless it's connected to a power source, in which case it will stay logged onto the WiFi network.  iPhones have ALWAYS behaved this way.
    Either turn cellular data off at night, or leave your phone connected to a power source to continue the WiFI.

  • Big Colour and detail changes between Original Nikon RAW files and the images created on the Preview page!

    Big Colour and detail changes between Original Nikon RAW files and the images created on the Preview page! Yes there are distinct visual changes when I preview my Nikon NEF RAW Files.Please note I do not use iPhoto at all.
    If you view it as a contact sheet straight from the original folder there are no alterations but the moment you double click and want to 'Preview' it, this new preview page introduces very noticeable distortions : lighter shading goes missing and colour goes darker e.g orange turns red and mid blue goes deep blue!  Alarmingly the little column on the left of the preview page showing the collection shows the original file colours and then after a few seconds show the new distorted image...you can see this visible change and it takes place after a few seconds once you double click! Also if you use Apple's 'Cover Flow' to preview, this function will replace your original RAW file with the new 'altered preview' image!
    I have raised this with Apple but they have yet to reply...has anyone ever experienced this? I have used my Mac book for 18months only noticed it about 5 days ago!
    I went to Apple store and we tried it in other laptops and Macs and it happened to all of them so we think this is a software issue and not down to the laptop.
    Any help is much appreciated!

    Big Colour and detail changes between Original Nikon RAW files and the images created on the Preview page! Yes there are distinct visual changes when I preview my Nikon NEF RAW Files.Please note I do not use iPhoto at all.
    If you view it as a contact sheet straight from the original folder there are no alterations but the moment you double click and want to 'Preview' it, this new preview page introduces very noticeable distortions : lighter shading goes missing and colour goes darker e.g orange turns red and mid blue goes deep blue!  Alarmingly the little column on the left of the preview page showing the collection shows the original file colours and then after a few seconds show the new distorted image...you can see this visible change and it takes place after a few seconds once you double click! Also if you use Apple's 'Cover Flow' to preview, this function will replace your original RAW file with the new 'altered preview' image!
    I have raised this with Apple but they have yet to reply...has anyone ever experienced this? I have used my Mac book for 18months only noticed it about 5 days ago!
    I went to Apple store and we tried it in other laptops and Macs and it happened to all of them so we think this is a software issue and not down to the laptop.
    Any help is much appreciated!

  • When I download a PDF, a user manual for instance, the page is black and the font is green, how do I change this to a white page and black script?

    When I download a PDF, a user manual for instance, the page is black and the font is green, how do I change this to a white page and black script?

    Try opening it with Adobe Acrobat Reader. 
    Note: Appleworks is the Apple office like application that stopped being able to run with Mac OS X 10.6.8.  If you have a question particular to 10.9, I would ask in the 10.9 (OS X Mavericks) forum.

  • Why does the song i downloaded keep asking me to authorize it for my computer, and when i do it plays a differant song

    I downloaded Fast AS You from I-Tunes. When I click on it to play it a pop up box says I have to authorize the song for my computer and asks for my password. When I enter my pass word it plays 6th Avenue Heartache. Over and over, even after a reboot it does the same thing. Any ideas?
    Thanks, Don

    Delete and redownload it if doing so is free in your country.
    (102451)

  • What protocol does the NI-DSA THD driver (or any harmonic analyzer driver) use to find and interpolate if necessary, harmonic frequences and corresponding amplitudes?

    When using the NI-DSA THD driver to obtain harmonic data, I find that the haromic frequencies found sometimes doesn't come close to the expected harmonic frequency.
    For instance, if I use a 20kHz span and 400 lines of resolution I would expect 50Hz bins. So if my fundamental is 500Hz, I would expect to see 6000Hz at the 12th harmonic but the THD driver can be off by up to 150Hz (ie, 6150Hz or 5850Hz).
    The output of the harmonic analyzer driver is an array of bundled values that contain x0, dx, and a data value array. Is it safe to say I can use this data to calculate exact harmonic test data (ie,
    x0=0, dx=50 so x(10)=harmonic amplitude at 500Hz and x(120)=harmonic amplitude at 6000Hz)?

    If it is that bug, the fix is in 3.17.3 which is in [core] now.
    My experience is crashes like that are usually hardware instability.  Last time it happened to me it was because my RAM.  I had to underclock it to make it stable.  If the kernel update doesn't help you, you could try running a stress test like Prime95.
    http://www.mersenne.org/download/
    If your hardware is unstable it will usually crash after only 5-10 minutes.  If you can run it for multiple hours that can help rule out hardware.

Maybe you are looking for

  • HT201269 i purchased a song last night on my iphone  and it is not showing up on my computer in my library

    i purchased a song on my iphone and it is not showing up in my library on my computer. How do I get this on here so that i can put it on my daughters ipod.?

  • NTSC monitor as second monitor??

    INTEL Tower, dual. I'm running a Cinema display, and another 16:9 LCD display. Is there any way I can use a SONY NTSC monitor as my second display coming out of the DVI? Replacing the 2nd LCD of course. And without having to reduce my Cinema display

  • Email folder view issue with netbook laptop

    Help!  Cannot see my email folders listed when I use my Samsung netbook.  Clicking on folders opens the folder list on the right side but there is nothing to click on on the left side.  The folder list is visible on the left side when I use a desktop

  • Newline/carriage return replacement

    I have an output from a database that has one column with embedded newlines or return carriages as well as a newline at the end of the record. When i export the data to a text file, the embedded newline/returns seem to contain those characters. I hav

  • Z77A-GD65 USB3 port with Seagate Freeagent go desk issues

    I have a Z77A-GD65 motherboard, with an intel i5 Ivy Bridge 3570k processor. Kingwin LZP-550 PSU and have attached via USB3 (using a USB3 cable of course) a seagate Free Agent Go Desk 2TB external hard drive. On my old system the drive when the syste