Debugging with Subpanels

I am building an application that uses two subpanel controls in its front panel. The main purpose of these is according to the logic of The LabVIEW Style Book: simply to reduce the complexity of the Main VI's block diagram, to keep it at least somewhat readable and manageable.
The program runs fine, but is beastly to debug for several reasons:
1. There seems to be no way whatsoever to use debugging tools on a VI running inside a subpanel. At least, LabVIEW has resisted every effort on my part to open the block diagram of a VI running in this matter. Am I right? Or is there some way to do it anyway.
2. Is there some way, through the use of clones or whatever, to allow a subpanel to operate even if its VI is already open in the editor?
3. If my program crashes or I have to use the abort button, the VIs running in the subpanels do not stop! And next time I run, I will see the message, "LabVIEW: The VI is not in a state compatible with this operation. Method name:  Run VI." This gets really tedious and annoying. I wonder, is there a way, as my program starts a second time, to have it hunt down and kill any previously open or running instances of those VIs?
Dear designers of LabVIEW, if you're listening: subpanels are great idea for program cleanliness and organization. But the need to use VI Server to set them up is terrible! Too much machinery required, and too hard to debug. Please, could we have a simpler, cleaner mechanism for the case of subpanels that only ever run one VI?
Ken

Hello,
In regards to:
1) I have found that putting breakpoints in the subpanel code will make the block diagram appear separate from the instance of the subpanel
2) This I have not been able to do, which is why the above workaround was used
3) You can use Application.All Vis in Memory property node to find those VIs, recursively get the references to them and them use the Abort Method upon them. We've built an "Abort all runing Vis'" program that we just keep on the desktop for this purpose (again only for Abort cases). I have also created a LV2 stop global that I can call on program start, which would stop all Vi's into which it is incorporated. A little extra work, but it helps a lot.
-Mello
Data Science Automation
CTA, CLA, CPI
SHAZAM!

Similar Messages

  • Computer won't start up after recent version of mountain lion.  My power Mac was running extmely slow this morning, so i shut down to restart.  As it is starting the screen goes black, says something about debugging with the word panic in parentheses. was

    I upgraded to latest version of mountain lion yesterday, this morning my power Mac was running extremely slowly (while typing, had to wait a second or two for words to appear), I shut down to see if problem would clear up.  When starting up, screen went black with programming jargon, something about debugging with the word panic in parentheses.  Screen then goes back to gray, says Mac encountered a problem and has to restart once I push a key.  Apple logo comes on gray screen, icon keeps circling and nothing happens.  This has happened three times in a row after shutting down and trying to restart.  Any thoughts?

    When verifying disk, said could not repair disk, back up as many files as possible then re format disk.  Computer now doing Internet recovery. Should I. Do the following in this order
    1 restore from back up on time machine
    2 re install osx
    These are the options coming up on osx utilities window

  • Built app with subpanels works for me, but not for him

    Using labview 8.6 I have successfully built several revisions of an app that has multiple subpanels.  It has successfully executed on several different hosts.   However, with the most recent version I received a report that it launches, but the sub-panels do not load.  Of course, WFM (works for me) -- the sub-panels are compiled into the app and they load just fine for me.  The other user is using the free 8.6 LabView runtime.  Again, previous app revisions have worked fine, and I don't know what is different about this build that could affect loading of the subpanels.
    On my PC I renamed the path to the source files just in case the built app was picking up some missing file directly from the original VI directory.  Still works for me.  I even monitored it with FileMon (sysinternals.com) and confirmed that it never tried to open any other file (which further confirms that all the sub-panels are successfully incorporated into the built application).
    The only other significant difference is that the app is designed for 1280x1024 screen and the other user is running on a 1024x768 laptop.  But how could that affect loading the sub-VIs?
    Does anyone have any idea what would cause a built application with subpanels to work fine on one host but not display the sub-panels on another host?
    Thanks and Best Regards,
    J.

    How are you getting the software on the other computer? Did you build an installer?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Gung Ho security team vs Debug with replace in development

    Hi fellow developers. I'm trying to talk our security team off the ledge and I want to conduct an informal poll regarding the responsible use of debug with replace in a DEVELOPMENT environment.  For the newer developers.. replace is much more powerful in debugging because you can change the values of variables and some system fields like sy-subrc which makes it very powerful.
    Our development environment is setup as follows:
    Client 300, ABAP Development \config.  We promote to QA, and Prod from here but can't unit test because no data allowed.  Debug with NO replace allowed here.
    Client 320 Unit testing, debug with replace is allowed.
    both of these clients are on the same instance, same sid so they share client independent information.
    Our security team claims that it's a security risk to allow debug with replace in our Client 300 because someone could change a security profile or something like that.  Here's my question...
    Are you authorized to debug with replace in your development environment and if not, what's the reason you were given?  I'm looking for arguments one way or the other to use as precedent for a meeting.
    Your prompt response is appreciated.
    Dan

    Hi
    I think the option can be dangerous in QA or PROD system because you can skip some control and change the data normally can't be changed.
    A classicl example is trx SE16: by debug you can change directly the data of the most of tables.
    But I don't believe can be a risk in development system, in this enviroment the developer should have no limit, otherwise to work and test can belong very hard.
    Max

  • Error opening test scripts in Build and Debug with Screens

    Hello,
    I am testing scenarios in the Build and Debug with screens mode in OPM. I save each scenario as a test script by clicking the Export button and saving. Some test scripts are able to be opened again, yet when I try to open others, I get the error message shown at the link below and am unable to load the test script.
    http://imgur.com/uqh80
    This did not happen previously, it just started today. All of these test scripts were created today, and the attributes have not been changes since the test scripts were created. This is seriously hindering my scenario testing ability.
    Does anyone know how to rectify this problem?
    Thanks,
    Christine

    Hi Kristy,
    I am in OPM 10.2.
    To troubleshoot, I tried redoing the test scenarios that werent working from scratch (rather than building off a previous scenario), and this time it worked. I am not sure why it works now and didnt before, and I am also not sure if they will continue working.
    I will continue creating the scenarios and will be sure to update if it fails again. In the case it does fail, I will try your export recommendation.
    Christine

  • How debug with Ant

    Hi All,
    I am running my application with apache-ant-1.6.5.
    Can anybody give suggestion to debug the my application using jdb with ant.
    Is there setting in ant so that when i run my program using ant i can debug with jdb.
    waiting for reply,
    Thanks,
    Nitin.

    assuming you are running the app through ant using the <java> tag, you should be able to add a
                   <jvmarg value="-Xdebug"/>
    tag inside the <java> tag, to enable remote debugging with jdb

  • How to debug with newer version of the player

    I want to debug a fla project that runs correctly with the player supplied with flash CS5.5 but it crashes with player version 11.
    I downloaded the debug version of the player 11 and i installed on my pc. Then i even tried to overwrite the flashplayer in /players/debug folder but when i open flash and try to debug my fla, it always start the debug with the player old version.
    What am i doing wrong?

    Hello,
    Here you can download the newer versions of ODBC drivers with or without Oracle Universal Installer:
    http://www.oracle.com/technology/software/products/rdbodbc/index.html
    I wait that this can help you!!
    Best Regards,
    Paola Pullas
    http://www.ecuoug.org

  • OC4J debug with Eclipse

    I been trying to debug a oc4j application with eclipse but so far I can only see variables like
    ' this IndexAction,
    arg0 ActionMapping,
    arg1 null,
    arg2 EvermindHttpServletRequest,
    arg3 EvermindHttpServletResponse' ,
    I did setup Ant compile to create an *.ear in debug.
    classpath="${libclasspath};${build}/${classes}" debug="true"
         debuglevel="lines, vars, source"/>
    Also, I cannot place a watch file in any variable.
    Is there a configuration that I need to do with the java compile or OC4J to be able to see the content of the variables.
    Thank you
    P.S. with Jdev I'm able to debug with the embedeed-OC4J but the config of the \j2ee\home\config\*.xml files are totally different.

    Starting oas server with this command, -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=4000,
    Eclipse debugger cannot connect anymore but apparently dt_shmem is used for windows machines and dt_socked for unix.
    Any hints would be greatly appreciated.

  • Apex 4.1 remote debugging with dbms_debug_jdwp - breakpoints not working

    Hi all,
    I'm using remote debugging with sqldeveloper like described here:
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/remote-debug/index.html
    http://sueharper.blogspot.com/2006/07/remote-debugging-with-sql-developer_13.html
    It works great with my sqldeveloper 3.0 and Apex 4.0.2
    Now i tried the same on two other servers with Apex 4.1
    The debugger is connecting. I can see the connect and diconnect message in the debug windows in the sqldeveloper.
    But the breakpoints are not working.
    Is the debugging working in Apex 4.1 for anyone here?
    Any ideas why the breakpoints are not working?
    BR,
    Björn

    Hi Björn,
    In your APEX application, have you tried updating the URL to include the parameter REMOTE, in order to initiate the remote debug connection? e.g.
    f?p=100:1:&SESSION.::REMOTE::Using the REMOTE parameter cuts out the need to specify debug code surrounding statements in the APEX PL/SQL.
    The steps are as follows:
    1) In SQL Developer, set break points in the the PL/SQL code, and compile using the "Compile for debug" option
    2) Execute the following two grants
    grant DEBUG CONNECT SESSION to <PARSE USER>;
    grant debug on <PROC> to public;  <-- might not need public but just whoever the DAD is running as.5) In SQL Developer, right-click on your connection and select the "Remote Debug..." context menu item. This will launch the "Listen for JPDA" dialog.
    5) Run the APEX Application page containing/activating the code you wish to debug, and update its URL with REMOTE in the debug parameter of the URL, and then hit Enter.
    6) Carry out the action on the page to trigger the breakpoint in your code e.g. submit the page, or click a button on the page, and you should be redirected to the breakpoint in the code in SQL Developer.
    Although I'm running with the latest release of SQL Developer, version 3.2.2 (http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html), and APEX 4.2, the 'REMOTE' parameter was introduced with our 3.1 release so will also be available for you to use in 4.1.
    Regards,
    Hilary

  • Remote debug with gdb

    Can anybody help?
    I try to use remote debug with gdb-5.0 on Solaris8 x86. When I issue "target cisco ..." I get "No such file or directory" message.
    What is the problem.
    Thanks.

    Solved for me
    FlasCC/sdk/usr/bin/g++ -c -g -O0 main.cpp ## additional flags
    FlasCC/sdk/usr/bin/g++ main.o -emit-swf -o main.swf ## additional flags
    changet to
    FlasCC/sdk/usr/bin/g++ -g -O0 main.cpp -emit-swf -o main.swf ## additional flags

  • OPA 10.2 crashes on XP on Debug with screens

    Running OPA 10.2 IDE on a windows XP machine, and when debugging with screens there is an immediate slowdown upon clicking the first link, and somewhere leading up to the decision report OPA crashes. Debugging without screens is fine, as is Build and Deploy. Checked known issues in 10.2 release notes, didn't find anything.

    If you build and deploy web determinations can you attach the debugger to it? To do that you'll need to make sure the enable.debugger property is set to true in Web Determinations' applications.properties file and then use the 'Attach to existing Oracle Web Determinations Website' option in the debug options.

  • Debugging with JDeveloper 2 with JDK 2

    Oracle Jdev team,
    I am running jdeveloper 2 (JDK 1.2), build 343. Whenever I
    attempt to debug an app i get this error dialog:
    Cannot debug project with Target JDK 'java
    version "JDK1.2_JDEVELOPER'", can only debug with Target
    JDK 'java version "1.2"'.
    My Project Properties Target JDK Version is pointing to the java
    1.2 java.exe that came with Jbuilder.
    Path of java.exe
    D:\Tools\JDeveloper20\java1.2\jre\bin\java.exe
    Classpath
    D:\Tools\JDeveloper20\java1.2\jre\lib\rt.jar
    Sourcepath
    [D:\Tools\JDeveloper20\java1.2\src.jar]\src\
    I've attempted to use various 1.2 jdks to get the debugger to
    work, but always with the same version.
    The project began as a JDK 1.2 project (did not attempt to
    switch from a jdk 1.1.x project).
    I;m sure you've seen this before, what am I doing wrong???
    THanks in advance, Peter
    null

    I have the same problem but even wierder.
    When I try to debug my project JDeveloper says
    Cannot debug project with Target JDK 'java version
    "JDK1.1.7_JDeveloper'", can only debug with Target JDK 'java
    version "1.1.8'".
    I do indeed have such a Target JDK defined, but I have not
    compiled anything in the current project with that. In fact I
    haven't switched JDKs at all in this project, nor in this
    workspace.
    What gives?
    Markus Burle (guest) wrote:
    : JDeveloper Team (guest) wrote:
    : : Hi
    : : JDeveloper allows to use different JDK's but the debugger
    only
    : : works with JDK's that come with JDeveloper. If you are
    pointing
    : : to a JDK outside it will still work but the debugger will be
    : : disabled.
    : : regards
    : : raghu
    : The original poster (see below, marked with an X) IS using the
    : JDK that comes with JDeveloper. I'm also using it and have the
    : same problem.
    : Markus
    : : Peter (guest) wrote:
    : : : Oracle Jdev team,
    : : : I am running jdeveloper 2 (JDK 1.2), build 343. Whenever I
    : : : attempt to debug an app i get this error dialog:
    : X : Cannot debug project with Target JDK 'java
    : X : version "JDK1.2_JDEVELOPER'", can only debug with Target
    : X : JDK 'java version "1.2"'.
    : X : My Project Properties Target JDK Version is pointing to
    the
    : X java
    : X : 1.2 java.exe that came with Jbuilder.
    : : : Path of java.exe
    : : : D:\Tools\JDeveloper20\java1.2\jre\bin\java.exe
    : : : Classpath
    : : : D:\Tools\JDeveloper20\java1.2\jre\lib\rt.jar
    : : : Sourcepath
    : : : [D:\Tools\JDeveloper20\java1.2\src.jar]\src\
    : : : I've attempted to use various 1.2 jdks to get the debugger
    to
    : : : work, but always with the same version.
    : : : The project began as a JDK 1.2 project (did not attempt to
    : : : switch from a jdk 1.1.x project).
    : : : I;m sure you've seen this before, what am I doing wrong???
    : : : THanks in advance, Peter
    null

  • Debugging with iPlanet

    Has anyone been able remote debug with JDeveloper 3.1 and iPlanet 4.1? In order to enable JSPs on iPlanet, I had to point iPlanet to the JDK that comes with JDeveloper.
    If anyone could tell me how to configure iPlanet and JDeveloper for this, I would appreciate it.
    Thanks,
    Chris
    null

    I don't have an iPlanet installation here to try this with, however the iPlanet documentation must include information for how to support remote debugging.
    JDeveloper's remote debugging supports both JPDA (Sun's standard for remote debugging, it's an add on component of JDK 1.2.2 and built-in starting with JDK 1.3). as well as OJVM protocol (Oracle's VM specific extensions).
    I'd find out from the iPlanet documentation how to allow a JPDA debugger to attach, and then just let JDeveloper use the standard JPDA mechanism to get this to work. This works on Tomcat, Apache JServ, as well as many other envionments (I debug my Java application on my Linux machine from JDeveloper on my WinNT desktop)
    Hope this helps,
    Rob
    null

  • How to set up on device debuging with J2ME SDK 3.0 and window mobile 6.5?

    I got some infomation about setting up on device debuging in J2ME SDK 3.0 with real device(e.g samsung windown mobile B7330). When I start debuging on device, I got exception when open RMS
    javax.microedition.rms.RecordStoreException: error opening record store fileHere my code:
    public void saveProfile() {
            byte[] data = toByteArray();
            try {
                rs = RecordStore.openRecordStore("kunkunProfile", true);
                for (RecordEnumeration e = rs.enumerateRecords(null, null, false); e.hasNextElement();) {
                    int id = e.nextRecordId();
                    rs.deleteRecord(id);
                rs.addRecord(data, 0, data.length);
                rs.closeRecordStore();
            } catch (Exception ex) {
                System.out.println("Exception in OpenRecordStore..." + ex.getMessage());
                try {
                    rs.addRecord(data, 0, data.length);
                    rs.closeRecordStore();
                } catch (Exception e) {
                ex.printStackTrace();
        }Anybody help me? I am stuck here.

    Hi dominikg,
    At first, You can try to restart the device-manager from system tray.
    If it doesn't help, then try the following:
    - stop the device manager
    - Remove c:\Docement and Settings\<your User>\javame-sdk folder.
    - Ran the device manager from <SDK>/bin directory
    - try to debug again.
    Did you tried to change port 51307 to another.
    Early access build had some problems with device manager, I hope that final release will be better :)
    BR,
    Igor

  • I cannot debug with SQL server 2008 SSMS asks for Firewall permission?

    hi friends,
    I run SQL server 2008 R2 developer edition on windows 8 basic edition. SQL server is installed in my local machine. when I tried to debug a sql script it asked the firewall permission as show on image
    when googled I found this
    Article from MSDN with fix tool but it cannot installed on my Windows 8 OS, is there way to fix it without giving any unauthorized access to my system?
    thanks
    I use Visual studio 2012 Ultimate and SQL server 2008 developer edition!

    Hi,
    The hotfix you provide applies for Windows Server 2008.
    The windows firewall on this machine is currently blocking remote debugging.
    According the message, the following ports need to be enabled for remote debugging. Use the procedure that is described in the section
    Configuring a Port in Windows Firewall to enable the following ports through Windows Firewall:
    Ports
    Protocol
    135
    TCP
    Required
    500, 4500
    UDP
    Required if your domain policy requires   network communication to be performed through IPSec.
    See the below article for more information:
    How to: Enable Transact-SQL Debugging
    http://msdn.microsoft.com/en-us/library/vstudio/s0fk6z6e(v=vs.100).aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • Question with updating JTree Display

    Hello all, I have a question about how to change what a JTree is displaying. Currently I have classes called ElementTreeFrame, ElementTree, ElementTreeModel, and, of course, Element. The ElementTreeFrame is simply the frame where I store a ElementTre

  • My Apple is was stolen. I can't log in. I can't change my password.

    My Apple is was stolen. I can't log in. I can't change my password.

  • FaceTime (and Photo Booth) do not recognize my internal camera

    I don't believe I have made any substantive changes to my system but my camera is no longer recognized on my iMac (late 2009, 10.8.2).  Facetime is working on my MacAir and iPhone.  It isn't working on the computer as I tried another account.  It jus

  • Importing AVCHD (.MTS) video files- what is needed?

    I cannot import AVCHD files (.MTS extension on file name) from my hard drive into my (old) version of Adobe Premier Elements (version 3.0). Am I doing something wrong, do I need to re-install the program, or do I need a newer version of Premier Eleme

  • Filters - planar tiling; kalaidescope

    I was looking to buy some filters to replace what I used to use with Kai's Power Tools. Like its planar tiling and kalaidescope filters. I found that Corel has taken over this software, and the filters listed do not appear to contain these two that w