Xcontrol problem in exe

I have an xcontrol with a push button. When the button is pushed there's a check whether the vi is running or not. Problem is, when opening the vi as a built exe the xcontrol always says it is running, even if it's not!
What is going on?
Lars Melander
Uppsala Database Laboratory, Uppsala University
Solved!
Go to Solution.

The VI class property Exec.State returns the value Running not only when the VI is actually executing, but as long as it's not idle (meaning statically called by another VI which is running). Because in an executable the top level VI starts running automatically, all the VIs in its hierarchy are in the Running state.
I don't think there's a way to know whether a VI is actually running or not without adding special code to it, such as setting a flag when it starts running and unsetting it when it stops. XControls already do this, where you get a special flag in the XCtrl, but I'm assuming that's what you're already using and it shows you that the VI is running (because it's actually checking the State property of the VI).
In any case, you should be aware that even if you load the VI completely dynamically and it's not actually in the Running state before you explicitly run it, there are still many things which you can't change in an executable.
Try to take over the world!

Similar Messages

  • Problem running .exe files

    I cannot run .exe files on Windows 10. A pop-up window shows a message that the .exe file I am trying to run is missing. What can I do to solve this problem ?

    Keep in mind that the Win 10 build "refresh" operations are clearing parts of the registry back to default values, so some things you've installed might end up uninstalled or only half installed after an upgrade to a new TP build.
    What EXACTLY is going wrong?  In other words, exactly what are you trying to do, and what is the exact content of the message(s) you're seeing.
    Details matter.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

  • Stacked plots problem in exe

    Hi,
    Ive got a problem with creating .exe application where 2nd chart functioning properly.
    2nd chart is in subpanel as a stacked plot. I pass via main form numbers of stacked plots. In builder it works perfectly, in .exe not at all..
    Any ideas?
    Attachments:
    WykresOnlineCAN.zip ‏73 KB

    Ok sorry I didnt explain well whats the point.
    There is no problem with properly "refreshing"  of subplot - works fine even without static reference(but thanks anyway, I missed that).
    I cannot changed the number of staked plots in the screen(constanly 1) - in editor mode it changes according as number of flaged plots.
    The problem is show in the pictures below.
    Attachments:
    editor mode.png ‏60 KB
    in exe.png ‏57 KB

  • I want to update to 3.6.4 but don't want to risk the problems container.exe is causing that am reading in this forum.

    There are quite a few having problems related to container.exe due to updating to 3.6.4 as I see from this forum.
    I don't have video problems, never did, and sounds like if I update, it's going to start having problems..
    It is possible for ff to make a patch so that we can have a user friendly and safe disable (without system code?)
    I appreciate firefox very much and thank you developers for your hard work and care.
    I just don't want to update until this is stable..too risky..
    Thanks!
    == Operating system ==
    winvist

    Also be aware that if you add a quiz to the project, that the drag and drop and quiz affect each other.
    In a way we have been cheated into thinking that is also a learning tool for repeated attempts. With a quiz in the project it does not work.
    I also tried it without the quiz. When learners now use it, the drag and drop will "hang" at times. EMBARRASING when a client phones you with a stuck learning session!!
    I have spent hours with the online Adobe dudes. It some or other "buG".
    "BUG" is IT code for "we designed something but did not test it well enough and now we pretend that it is some mysterious organic organism that is maliciously undermining our design"  

  • Problem With EXE File In WAR

              Hi,
              I have a web application packaged as a war file which contains a EXE file. I also
              have several JSP pages within the same WAR that point to the EXE file. When using
              basic authentication, there is no problem. The client can click on the link and
              gets prompted to save the EXE file.
              The problem happens when I use form-based login. When the user gets prompted to
              save the EXE file, the '.exe' extension is lost, and the file is therefore saved
              without the .exe extension.
              Does anyone know what's going on, nad how I can correct this?
              Thanks very much.
              Dan
              

    This application is purely doing analysis of data taken by a different system. The data is input to this code by using dialog to identify the path to a stored data file and then this code does some pulse analysis. But there is no GPIB, serial port or anything (?) that I know of hardware wise is involved. Nor do I think there is any NI-VISA involvement.
    The numeric value is a time (in seconds) between two events in the data file. The value should be close to 12.5 usec or 12.5E-6 as read out by the numeric indicator. On all the machines where this code works ok, that is what you get but on this one laptop we consistently get 0.00E+0. If it wasn't for the E+0 telling me that at least this indicator is reading in scientific notation, then I
    would think somehow this indicator just had the wrong format or precision but since the E+0 is there, it seems to say that zero is being fed into this point in the code.. ??
    Also, I had the owner of the laptop tell me how many folders he found in his C:\Program Files\National Instruments. His answer was three, Data Socket, Measurement Studio and Shared. And inside Shared he has at least the 6.1 Run Time Engine as he would have to have to run these executables. But he DID NOT have NI-VISA. Does anyone think it would need to be there??
    Also, we tried the .ini file approach that was suggested in another post but that didn't help... Any thoughts?? thanks... paris1

  • CFP Channel browsing gives problem in exe

    We have configuration screen in which user can assign CFP channels for specific data acquisition. For browse purpose we are using "FieldPoint IO Point" control.
    In VI everything works fine. But if I create Exe, if I select "bwowse" option then brows window doesn't pop up.
    We found it is searching for "rtd_getdevice.vi".
    If anybody knows solution ,please let me know.
    Attachments:
    Trial Code.zip ‏35 KB
    untitled4.JPG ‏116 KB

    The FP file is a copy of what i have on my computer. I also have used the "network" version of the file. The problem occurs when pressing the Browse button and works fine as long as it's not an executable.
    Attachments:
    error.png ‏10 KB
    error1.png ‏10 KB

  • DAQmx channel browsing problem in exe

    Hi guys, 
    I created a project and added "Cont Acq&Graph Voltage-To File(Binary).vi" example in Labview 8.6. Then I tried to build an exe file using the default options. This is the result as you can see from the screenshot. I've tried this with several examples, result is always the same. If I run the source code,everything works fine. The problem is with .exe only.
    Can anyone please tell me how to solve this problem? Is it another bug or I am too sleepy?I need to use this "DAQmx Create Virtual Channel" vi in my application. Any help is appreciated. 
    Thanks in advance.
    ilter
    Attachments:
    error.jpg ‏57 KB

    Dear Jeff,
    I've read your reply and checked the block diagram again after having a long sleep. :-) As you said, the channels I create are deployed when I build the exe. But this is not what I need. I need the "browse dialog" to appear when I click the "browse...".
    As I mentioned before, when I run the .vi file, it works fine, but it doesn't when I run the .exe file,instead it shows that error message as you can see from the previous attachment. I am attaching block diagram of NI's example for your reference. I think there is nothing wrong with the example. It is either some settings I am missing, or another bug as seen with CFP channel.
    Thank you for your reply.
    ilter
    Attachments:
    block_diagram.jpg ‏113 KB
    error.jpg ‏57 KB

  • Compatibility Problem Itune.exe

    I have looked at all the posts on this topic, I tried everything. I can't find the itunes.exe file.
    Can I delete itunes and reinstall it without losing all of my music? Spent three days trying to fix it.

    yes, you can get rid of itunes safely. First, locate your music. Is it in a file on your computer? Are all your songs there? itunes converts the files to mp3, but wont acutally change the file. itunes is just a program to run music that already exists. If you're worried, back up your music my copying the files. just find them, click to highlight the first file name, scroll to the last file name, click and hold SHIFT, then drag all the highlighted songs to a safe file you can leave them in (not on your computer. Use a USB, CD, or even ipod). Delete itunes. Reinstall. It will locate all your music files and load them into your library. If you have problems, you have a consolidated back up copy of EVERYTHING. Delete and redo. It all takes about 5 minutes for the reinstall.

  • Problem Apache.exe, help me please!!!!!!

    I have a problem, it appears to me the following error
    with Dr. Watson:
    Apache.exe
    Exception: access violation (0xc000005), address: 0x60234d16
    my versions are:
    ORACLE Portal:3.0.7.6.2
    db ORACLE 8i:8.1.7.0.0
    how can to resolve this?
    thank by any idea

    Apply the 8.1.7.1 patch to the 9ias database (and I'd recommend doing it to the database where portal is installed). There were some fixes to the Net8 listener that fix this. Ever since I applied the patch I haven't had anymore Dr. Watson's.

  • Instal problem NVAREM.EXE Win XP

    Hi, Im building a new PC and got a FX5200 VT128 and windows XP.
    I,m getting a message that the NVAREM exe has a problem and couldn't load.
    I tried to install the software with the remote sender in an out?
    I tried to uninstall the drivers and instal the remote first.
    Still ggot the problem. Can anywan help me ?
    THXS....
    Dreen

    I've been having the same problem as everyone else. The problems started when I updated the drivers, first from the Windows Update site, and then from both MSI and nVidia.
    I tried the 'seabee solution' but this didn't work for me, although I did get the remote to work by removing nvgpio.dll from system32 folder. I then had tp put up with a 'test' box appearing everytime I booted-up, which said 'Load nvgpio.dll fail' and the 'OK' button. Clicking the 'OK' button twice got rid of it but what else was not going to work?
    I finally decided to try a clean install of WinXP Home. So having reformatted and installed WinXP I then put in the 'NVIDIA PERSONAL CINEMA CD version 2.25' and let it go through the full install process. Next I intalled the diplay driver from the MSI Multimedia 'Beyond 3D' CD, and ONLY the display driver (v45.33)
    I appear to have everything working now, and have no intention of updating my drivers or anything else.
    I hope this helps to cure the problem for some of you.
    Cheers

  • Problem building exe with dynamic vi

    Hi all, i'm using LV 8.2 evaluation version to build an executable file for my test platform. This platform calls for individual test vis dynamically.
    I can export the platform vi into exe alright but it always fail to run the test vis dynamically when called by the platform. I know the platform is working alright as it's able to successfully traverse through all my operating states, but when it comes to the state which contains a subVI which calls these test vis dynamically, nothing happens and it just proceed with the next state. The even wierder thing is that the program then enters my default state (which isn't even on the list of states for that particular operating mode!)
    Based on this result i can say that the platform is working fine as it was able to call various subvis and traverse through the defined states (except for the default state case). Thus i guess it must be something which i did wrongly during the build process which caused it not to run my dynamic test vis. I spent the whole day trying various build options but it still doesn't run my dynamic vis.
    Any ideas?
    PS: Does the build process automatically import the MAX settings?

    No, it's not a cracked version just to make myself clear.
    Dennis, i don't think it's a problem with the path as the exe does not have any problem loading other text configuration files. Yes, i've included them under the dynamic vi and support files option.
    Attachments:
    Build option for LV8.2 eval.JPG ‏31 KB

  • PROBLEM IN .exe CREATION

    Hi,
    I am using labview 7.0,have got trouble in creating ".exe" file of my project.
    without creating .exe there is no error in my project, so I there I can easily jump to next screen but  Once Exe is created it shows me some error.
     pls check attachment I which I have given snaps of error that my .exe is showing while run time.In my .exe main screen is working properly 
    as I wont but once I click on button to jump next screen then it shows VI break error.(i.e. missing subvi merge error in vi_ _ _ _xyz _ _ _ _.vi
    pls tell me the reason behind this error
    1] In my project i have used HTML report creation using REPORT GENERATION TOOLKIT, as we add supporting file for EXCEL REPORT i.e..   "_exclsub"
    similarly is there any supporting file for HTML report which I have to add while creating .exe
    2] DSC runtime engine file is not there in my PC.
    Attachments:
    erro2.jpg ‏2881 KB
    error3.jpg ‏2881 KB
    errror1.jpg ‏2881 KB

    You cannot be serious!
    Attaching ~9MB worh of useless images (one a picture of a broken run arrow!) is not efficient! Are these BMPs renamed to jpg?
    LabVIEW Champion . Do more with less code and in less time .

  • Problems executing exe file outside vignette(HAL)

    Hi, when trying to execute my exe file generated with vignette I'm getting an error:
    C:\WINDOWS\system32\cmd.exe - cas33.bat
    The NTVDM CPU has encountered an illegal instruction
    CS:05a7IP:016b OP:63 65 64 20 77 Chose 'Close' to terminate the application.
    The thing is that I've executed it before in other computer and it was working. But now I've to execute it in other computer where I have to specify other parameters in my .ini file ( as server, user, password, filename...)
    Any idea??
    Thank you

    Hi,
    No I just write them in the ini file(replacing the old values with the new ones).
    I don't have dll in the folder. It was working in the other computer by just executing the .bat file...I don't know what is happening know.
    Thank you so much

  • Performance Problem: qttask.exe 100% CPU

    I have a new 2nd Generation iPod Shuffle. So I only want music files, and at this point they are all from my existing CD's and Windows Media Player files.
    I run on an HP machine 640 mb memory, AMD 1295mhz running Windows XP Home SP 2. Definitely an old dawg.
    I loaded iTunes and QuickTime. Everything works but the qttask.exe program runs at close to 100% CPU even with iTunes closed. Which slows everything down a bit...
    I could not get iTunes to run w/o QT. I unchecked all of the video and graphics selection and updates on QT, but no luck. Does anyone have suggestion for settings or one of the QT 'clones' that don't have or use all of that video overhead or ???
    Thanks!
    Grutzbo

    I am not sure why, but after doing all of the cleanup, unload and re-install recommended by Apple - the gttask.exe still ran at 100% CPU. So I took a shot at your recommendation and unflagged it in the Startup tab in the msconfig menu.
    And iTunes seems to be working ok and the CPU usage bounces around between 30%-50%. Which aint bad for this broken down old box! So thanks, Mr Black!!
    I am of course curious about what qttask.exe is supposed to do and why everything works without it? But I don't understand how water gets into the upstairs faucet so I don't need to know unless there is some risk. (I only use it for my G2 Shuffle so I can live without most of QT functionality.)
    Thanks again!!
    HP   Windows XP   Old Dawg

  • Problems building exe that includes dsc (vi's always in memory, causing an error)

    Hi,
    Thank you for your time and expertise. I am trying to build an executable (Win2000, Labview 6.0.2 and DSC) but am consistantly being told that a group of vi and ctl files are already in memory. I have removed all non-essential cards, restarted my computer and attempted to build from a blank vi. Nothing should be in memory. Would there be a service running (from boot up) that is causing this? There is nothing left in my icon tray that would indicate that this is so.
    Please note that one of the vi's is entitled "dsc_Engine Status.vi."
    Nathan

    Here is the problem:
    You are attempting to build an application that uses VIs that are in memory. They are in memory for two reasons: One, you are using VIs that are used by LabVIEW, and two, they are used by LabVIEW DSC when it runs, by the service manager.
    There are two solutions. One will get you there quickly. The other, will solve all of your applications building problems now and forever.
    I will give you both and let you decide, however, I recommend the first, as it will solve your problems anytime you build an application.
    Solution 1:
    Open your top level VI(s). Open the VI Hierarcy. Select the option that allows you to view the path of the VI when you do a mouseover. Go to each and every VI, global, and control. Ensure that each is in your development or deployment directory, and NOT in /National Instruments/LabVIEW...etc directories. These are NI Core functions, and you should build with a copy only. This will take a lot of time, and may cause crashes (I had problems changing things in the hierarchy.) Try doing a "save all" about every 3 or so VI that you change. To change the location, you must first stop all services. Goto the Service Manager and select "Stop all Services". This should unload all the callers for these functions. Now, go to the hierarchy, and for everything in the LabVIEW directories, open it, and "save as" in your directory. This will cause the callers to look in your directory for the copy you are using. As I said, save all once in a while. Also, when prompted to affect the change in all VIs in memory, select YES.
    When you have copied all resources, save all once again, and close everything, including LabVIEW. Now close LabVIEW. Take the directory into which you moved all of these functions, and move it off the computer temporarily (don't rename, remove to a different drive, or a zip drive). Then restart LabVIEW. If anything got moved incorrectly, you will be asked to search for it. Open a new VI, and select save all, to remake the file search paths stay with LabVIEW. Do NOT have your project open when you do this.
    Now, replace your folder where it was originally, and restart LabVIEW. You can now build your application.
    Solution 2:
    Start LabVIEW. Goto the Service Manager and select "Quit Service Manager". When prompted, select yes to stop all services and quit.
    Now build your application.
    The reason the first solution is better is because you always want a copy of all NI Resource VIs, Globals, and Controls in separate location for your build. This not only prevents issues such as the one you mention above, but also solves a lot of other issues, including any changes to those core functions that may occur in newer versions of LabVIEW that may affect your program.
    Good luck.

Maybe you are looking for

  • Preview window has no text

    since installing the worst upgrade ever, maverick, mail no longer displays the mail's text in the preview window - it is simply blank. it also has killed firefox, but that's another problem....

  • How to use amazon webservice in jsp-netbeans

    hi all, i want to use amazon free webservice in my project...... i read lots of articles and other helps from net but m not able to do it...... it needs the wsdl link which m unable to trace plz help me soon

  • Users cannot see "additional actions" menu in MS Outlook contacts

    Hi, I am having issues with some Outlook 2007 clients not being able to see any items in the Additional Actions menu, this should display contact cards phone numbers and call with edit options. Cisco's fix (Restart outlook) below does not help me. Ha

  • Enabling horizontal scroll in UIWebview

    Hi all, Is there any way to load a pdf document in a UIWebview so that it can scroll horizontally instead vertically? Is it possible?.. If so pls some one gimme me the way to do this.. I wanna pick the words in pdf as we can do in a webview and also

  • Boris FX 9.2 with Premiere Pro - HELP

    Hey Everyone, Well I recently I got myself a copy of the latest Boris FX (Boris FX 9.2) which I was pretty excited about until I found out it didn't work as I wanted to. I've seen many tutorials and screenshots where the plugins from Boris FX can be