Return to the last code position

When I'm searching through cases of a large event structure or a case structure to investigate its LabVIEW code it would be helpful to have the possibilty just to jump back to the last position inside the code. (like in C# with "STRG + .") Even better it would be to jump back along a whole history of positions.
Solved!
Go to Solution.

I have this JKI RCF plug-in in the LAVA Code Repository.  The tree in the second image is a list of all the states in my VI.  The state navigation feature sorta works
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

Similar Messages

  • Is there a way to save the last curor position in Numbers?

    Is there a way to save the last curor position in Numbers? We have a custom Budget spreadsheet but every time we open the file, we have to scoll to the bottom of the spreadsheet.
    There are several thousand entries, and every time we open it, we have to scroll to the bottom of the screen which is getting fairly annoying.
    Every time we open it, regardless of what sheet or cell we are in when it is saved previously, it opens at the top....
    Any suggestions?
    Thanks!

    reverse the order of you entries and add rows at the top of the table.  That is have newest date entries at the top and oldest at the bottom

  • How can I return to the last selected item in a dialog box

    In OS 9 using Dreamweaver (for example) when I was adding images to a document, each time I added one the dialog box would return to the last selected image and I could just arrow down to the next in the list, add it (exiting the dialog box) and then repeat the process until I had added all the images in the folder. Now, using OS 10.4, after I add an image, and return to the add image dialog box it goes to the first item in the folder list instead of the last selected item. this really slows the process down, and when I'm adding 100 items or so, it's a real drag. I figure there has to be a way to get the dialog box to return to the last selected item, but I don't know what it is. Help!

    sorry, that is not what I want to do.
    I want to return to the initial state before I quit the app.
    Actually, I want to return to the intial state after I click a row in a table the second time.
    Sorry, I didn't say clearly.

  • [JNI Beginner] GC of Java arrays returned by the native code

    Hello all,
    I am beginning with JNI, to integrate a C library that pilots an industrial equipment, into a java UI. This library enables to exchange various proprietary PDUs (protocol data units), with the equipment, up and down (request/replies). Both requests and replies are arrays of bytes (+char*+).
    "Request" byte arrays are constructed by Java code, which passes them to the JNI code that glues with the lib. "Reply" byte arrays are returned to the Java code, which analyzes them.
    The "return reply" part is very similar to this [tutorial example|http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.html] , which returns bytes read from a file. However there's something I don't understand with regard to garbage collection of the returned byte array:
    - in this stock example, the C code creates a Java byte array fills it, and simply returns it (example code stripped to highlight only the parts relevant to my question):
        jByteArray=(*env)->NewByteArray(env, size);
        (*env)->SetByteArrayRegion(env, jByteArray, 0, size, (jbyte *)sourceBytes);
        return (jByteArray);What will happen to this Java array (jByteArray) with regard to garbage collection?
    - if it's no more referenced (the example Java code just systemouts it and forgets it), will it be eligible to GC?
    - if it is referenced by a Java variable (in my case, I plan to keep a reference to several replies as the business logic requires to analyze several of them together), do regular Java language GC rules apply, and prevent eligibility of the array to GC as long as it's referenced?
    That may sound obvious, but what mixes me up is that the same tutorial describes memory issues in subsequent chapters: spécifically, the section on "passing arrays states that:
    [in the example] the array is returned to the calling Java language method, which in turn, garbage collects the reference to the array when it is no longer usedThis seems to answer "yes" to both my questions above :o) But it goes on:
    The array can be explicitly freed with the following call:
    {code} (*env)-> ReleaseByteArrayElements(env, jByteArray, (jbyte *)sourceBytes, 0);{code}Under what circumstances would one need to explicitly free jByteArray when it's about to be returned to the Java calling method? Or does this sentence apply to completely different situations (such as, when the array is +not+ returned as is to a Java method)?
    The tutorial's next section has a much-expected +memory issues+ paragraph, from which I quote:
    By default, JNI uses local references when creating objects inside a native method. This means when the method returns, the references are eligible to be garbage collected.I assume this means, +unless the references are assigned, in the Java code, to a Java variable+, right?
    If you want an object to persist across native method calls, use a global reference instead. A global reference is created from a local reference by calling NewGlobalReference on the the local reference.I assume this enables the C code to maintain a global reference to a java object even if it's not referenced anymore from the Java variables, right?
    I also checked the [JNI specification|http://download-llnw.oracle.com/javase/6/docs/technotes/guides/jni/spec/design.html#wp1242] , but this didn't clear the doubt completely:
    *Global and Local References*
    The JNI divides object references used by the native code into two categories: local and global references. Local references are valid for the duration of a native method call, and are automatically freed after the native method returns. Global references remain valid until they are explicitly freed.
    Objects are passed to native methods as local references. All Java objects returned by JNI functions are local references. The JNI allows the programmer to create global references from local references. JNI functions that expect Java objects accept both global and local references. A native method may return a local or global reference to the VM as its resultAgain I assume the intent is that Global references are meant for objects that have to survive across native calls, regardless of whether they are referenced by Java code. But what worries me is that combining both sentences end up in +All Java objects returned by JNI functions are local references (...) and are automatically freed after the native method returns.+.
    Could you clarify how to make sure that my Java byte arrays, be they allocated in C code, behave consistently with a Java array allocated in Java code (I'm familiar already with GC of "regular" Java objects)?
    Thanks in advance, and best regards,
    J.

    jduprez wrote:
    Hello all,
    I am beginning with JNI, to integrate a C library that pilots an industrial equipment, into a java UI. This library enables to exchange various proprietary PDUs (protocol data units), with the equipment, up and down (request/replies). Both requests and replies are arrays of bytes (+char*+).
    "Request" byte arrays are constructed by Java code, which passes them to the JNI code that glues with the lib. "Reply" byte arrays are returned to the Java code, which analyzes them.
    The "return reply" part is very similar to this [tutorial example|http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.html] , which returns bytes read from a file. However there's something I don't understand with regard to garbage collection of the returned byte array:
    - in this stock example, the C code creates a Java byte array fills it, and simply returns it (example code stripped to highlight only the parts relevant to my question):
        jByteArray=(*env)->NewByteArray(env, size);
    (*env)->SetByteArrayRegion(env, jByteArray, 0, size, (jbyte *)sourceBytes);
    return (jByteArray);What will happen to this Java array (jByteArray) with regard to garbage collection?It will be collected when it is no longer referenced.
    The fact that you created it in jni doesn't change that.
    The array can be explicitly freed with the following call:
    (*env)-> ReleaseByteArrayElements(env, jByteArray, (jbyte *)sourceBytes, 0);Under what circumstances would one need to explicitly free jByteArray when it's about to be returned to the Java calling method? Or does this sentence apply to completely different situations (such as, when the array is not returned as is to a Java method)?
    Per what the tutorial says it is either poorly worded or just wrong.
    An array which has been properly initialized it a just a java object. Thus it can be freed like any other object.
    Per your original question that does not concern you because you return it.
    In terms of why you need to explicitly free local references.
    [http://download-llnw.oracle.com/javase/6/docs/technotes/guides/jni/spec/design.html#wp16785]
    The tutorial's next section has a much-expected memory issues paragraph, from which I quote:
    By default, JNI uses local references when creating objects inside a native method. This means when the method returns, the references are eligible to be garbage collected.I assume this means, unless the references are assigned, in the Java code, to a Java variable, right?As stated it is not precise.
    The created objects are tracked by the VM. When they are eligible to be collected they are.
    If you create a local reference and do NOTHING that creates an active reference elsewhere then when the executing thread returns to the VM then the local references are eligible to be collected.
    >
    If you want an object to persist across native method calls, use a global reference instead. A global reference is created from a local reference by calling NewGlobalReference on the the local reference.That is not precise. The scope is the executing thread. You can pass a local reference to another method without problem.
    I assume this enables the C code to maintain a global reference to a java object even if it's not referenced anymore from the Java variables, right?
    It enables access to it to be insured across multiple threads in terms of execution scope. Normally you should not use them.

  • When I open firefox it is returning to the last viewed page instead of my homepage even though I have the settings set to clear history every time I close Firefox. I check and all of the previous history is still there and not deleted..

    When I open firefox it is returning to the last viewed page instead of my homepage even though I have the settings set to clear history every time I close Firefox. I check and all of the previous history is still there and not deleted..

    Make sure that Firefox closes properly and that that there are no longer Firefox or plugin-container processes left on the Processes tab in the Task Manager. Otherwise session restore will reopen the page(s) from the previous session.
    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • About " Return To the last visited slide" feature

    Hi everyone,
    I have a question regarding to the function of Return to the last visited slide, and how I can customize the system variable, cpInfoLastVisitedSlid to limit some accessing in the project.
    Since I don't know anyway to keep my word concise and clear, I will try to explain my question more...
    Version I use: Captivate 5
    Currently, I am working on a project that includes the course content and a navigation guide together.
    Each Course Content Slide has 3 buttons:
    Back to previous slide
    Go to the next slide
    Navigation Guide (goes to the navigation guide menu page )
    The Navigation Guide is a 30-slide little session telling our audience how to navigate and print with pdf version. Here is how we structure the Guide:
    menu Page, in the menu page, there are 4 button
    button to go back to the last visited slide
    button to section A
    button to section B
    button to section C
    Section A in the guide
    Section B in the guide
    Section C in the guide
       On each Section, there are buttons that can go to their sub sections and return to the menu...
    the user accesses from any course content slide to the navigation guide. The frist slide they will see after entering navigation guide is the menu page with 4 buttons. If the user click " go back to the last visited slide" button, the button will takes to where the user was in the course content slide.
    However, if the user click the other buttons to view the content in the guide. when they return to the menu, the last visited slide become the last page they view in the guide.... hence they can not exit the guide and return to the course unless we assign a button to go to a particular slide in the course content...
    Here comes the question:
    Is there any possible way to condition  the system variable, cpInfoLastVisitedSlid, not to remember slide it visited in the navigation guide, and only remember the slides from the course session?
    Thank you for your patience to finish reading my long question...
    and thanks to Lilybiri and RodWard answered my question about How to create user variables to track question slides?
    for the unknown reason that I can't login to my previous account anymore.... but I really want to say you guys give me a big help.

    Yes.
    Our user had entered the group of slides explaining navigatio.
    but, I don't know how to set the user variable for group of slide.... and if I should I combine the user variable with the cpInfoLastVisitedSlide... (Since it is all slide number...)
    What I have tried is that created a conditional advanced action...
    if
    rdinfoCurrentSlide > the second slide of the navigation guide
    rdinfoCurrentSlide < the last slide of the navigaiton guide
    action
    expression cpInfoLastVisitedSlide system = cpInfoLastVisitedSlide system - rdinfoCurrentSlide
    else
    return to last visited slide
    It doesnt work the way i want at all...
    My probolem is to structure the logic relationship between these variable, and also how to create a user variable for a group of slide......
    thank you .

  • Not returning from the native code

    Hi,
    I am trying to access the native code using java applet. My java code seems to load the DLL(created using the VC++ 6.0) properly. Then when i call the native method called crypto, it does not seem to return from the nayive code . I am signing the applet and putting it a signed jar .Any suggestion is appreciated. I mite be wrong in the design too ...pleas ehelp. I am pasting the java code and the C code.
    cryptoJNI.java
    import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.applet.*;
    public class cryptoJNI extends Applet {
         String uname=null;
         String b=null,ret=null;
         String a=null;
    public void init(){
              System.out.println("in init");
         public void dll_load(){
              b="before dll";
              System.loadLibrary("Msgimpl");
              a="after dll load";
         private native String crypto(String store);
    public void paint(Graphics g) {
              g.setColor(Color.blue);
              g.setColor(Color.magenta);
              load_dll();
              g.drawString(b, 5, 5);
              g.drawString(a, 15, 15);
              g.drawString("first call const", 25, 25);
              cryptoJNI app = new cryptoJNI();
              ret=app.crypto("My");
    g.drawString(ret, 75, 75);
              g.drawString("Signed 11", 120, 80);
              stop();
    CryptoJNI.c
    #define WIN32WINNT 0x0400
    #include <windows.h>
    #include <jni.h>
    #include <wincrypt.h>
    #define MY_ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING)
    #include "cryptoJNI.h"
    BOOL APIENTRY DllMain(HANDLE hModule,
    DWORD dwReason, void** lpReserved) {
    return TRUE;
    JNIEXPORT void JNICALL
    Java_CryptoJNI_crypto(JNIEnv * jEnv,jobject obj,jstring jstore) {
    //     char               name[256];
         const char *msg;
         msg = (*jEnv)->GetStringUTFChars(jEnv, jstore,0);
         //printf("Before context\n");
         //(*jEnv)->ReleaseStringUTFChars(jEnv, jstore,msg);
         return (*jEnv)->NewStringUTF(jEnv, msg);
    In my applet, i have some debugging statements that helps me verify that the Msgimpl.dll loads properly. When i invoke the app.crypto() it just "hangs". Please help
    Thanks,
    Vivek

    Hi,
    This is the exception that i am getting?? my cryptoJNIImp.c is is in the same directory as the my java file,c:\vivek work\signedcode. and i have added this to my path env variable...If u see the output, it executes the init() and then loads the Msgimpl.dll. So its got nothing do with loading a DLL. Any pointers on this..
    in init
    before loading dll
    After loading dll
    java.lang.UnsatisfiedLinkError: crypto
    at cryptoJNI.crypto(Native Method)
    at cryptoJNI.paint(cryptoJNI.java:65)
    at sun.awt.RepaintArea.paint(Unknown Source)
    at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this was Safari preferences, open new window to homepage...

    I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this under Safari preferences, open new window to homepage...

    Safari is opening using the resume feature. To disable that, quit Safari using Command+Option+Q or Hold Option when choosing the menu item Safari>Quit.

  • I work a long list. Each line has a link that I click on to work. I then click submit. It does not return to the last line worked. Goes to the begining.

    I go to the Insurance Auto Auction website to access a list of vehicles up for auction. When using "explorer" I can follow the link and set a bid value then click submit. It will return me to the last position on one the list. Firefox will sometimes doe this too but more often than not it brings me back to the top of the list. When I am looking at 300 units this becomes very frustrating.

    Try opening each link in a new Tab, and when you're done with each Tab, close it. The "list" page will be sitting exactly where you left it, ''unless that page did an automatic refresh to add newer information while you were viewing a different tab.''
    Middle-click a link
    or use { Ctrl + click }
    or right-click and use Open Link in New Tab

  • JSP for Vcard cannot strip carriage return in the last line of the file.

    I am using JSP to output a Vcard (http://en.wikipedia.org/wiki/VCard)
    The following code works great in Windows but fails on the mac:
    <%@ page contentType="text/x-vcard" %><%--
    --%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--
    --%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%--
    --%>BEGIN:VCARD
    VERSION:2.1
    <c:choose><%--
    --%><c:when test="${not ((empty param.lan) and (empty param.fin)) }"><%--
    --%>N:${param.lan};${param.fin}
    FN:${param.fin} ${param.lan}
    </c:when><%--
    --%><c:otherwise><%--
    --%>FN:${param.org}
    </c:otherwise><%--
    --%></c:choose><%--
    --%>ORG:${param.org}
    TITLE:${param.title}
    TEL;WORK;VOICE:${param.phwork}
    ADR;WORK:;;${param.st};${param.city};${param.state};${param.zip};
    EMAIL;PREF;INTERNET:${param.email}
    REV:20080424T195243Z
    <c:out value="${fn:replace('END:VCARD','\\\r','')}" escapeXml="false"/>After some tests, I discovered that Mac (I used Tiger, latest update, not Leopard) needs extra white space and carriage returns stripped off. Once this is achieved, the vcard will automatically import into Address Book. I have followed other forums which advice on using JSP comments as in the code above. But for some strange reason the last line of the JSP outputs an extra carraige return. How do I get rid of the carriage return at the end of the file? the replace function from JSTL is not working.
    Edited by: shogo2040 on Dec 18, 2008 7:11 PM : I added more detail to the Subject

    I originally had that END:VCARD without any carriage return.
    But I still get an extra carriage return at the end when the JSP renders to VCF
    I'm using Tomcat running on Linux.
    I found this, article which implies (but does not explicitly say) JSP in general adds a newline to the last line:
    http://www.caucho.com/resin-3.0/jsp/faq.xtp (But its not tomcat either, so maybe this info is irrelevant).
    Edited by: shogo2040 on Dec 22, 2008 3:31 PM - changed rendered to VCF from rendered to JSP

  • Default Carriage return in the last column when data is downloaded to Excel

    Problem:
    When you download data into Excel and if the last column of your excel is a numeric field, XMLP will add a carriage return (special character) to your numeric field. This feild will be considered as character field by excel.
    Work Around:
    When you build the template, create an empty column as your last column and leave E (or end-for-each) in that empty column.
    Note:
    If the last column is a character column then you do not have to do this.

    I originally had that END:VCARD without any carriage return.
    But I still get an extra carriage return at the end when the JSP renders to VCF
    I'm using Tomcat running on Linux.
    I found this, article which implies (but does not explicitly say) JSP in general adds a newline to the last line:
    http://www.caucho.com/resin-3.0/jsp/faq.xtp (But its not tomcat either, so maybe this info is irrelevant).
    Edited by: shogo2040 on Dec 22, 2008 3:31 PM - changed rendered to VCF from rendered to JSP

  • Why does the screen shift to the last tool position

    I have a large diagram, so it involves sliding the screen back and fort to see the whole diagram.
    If I wire an item then slide the screen over to select another item, the item is selected, however, the screen shifts automatically back to were the previous tool position was. Then I have to re-slide the screen to see my newly selected item. It does this all the time with a large diagram.
    Why does LV do this?

    Save the vi, even though the title does not show "*", but save it just after your move your screen and want to maintain that view.
    Joe

  • HT4009 How long does it take for apple to return with the needed code for in app purchases.  We have a developer working through elance that states he submitted a finalized version last friday to apple and is still waiting to get the code back from Apple?

    We are being told by our elance developer that he is just waiting on apple to return the code for in app purchases with our app.  he says he had to submit a complete version before they would give it to him and that he did that last friday.  Needless to say i don;t beleive him.  Can anyone validate for me the process of getting the code installed into our app and how long it should really take.

    I'd say an average of one week, depending on backlog. Expect two if you are outside the US.
    The outage has caused some lingering effects that seem to be delaying things for some, however.
    Patience is key in all things when it comes to being a developer

  • How do I return to the last screen I was on without getting an err message?

    I am in an SAP transaction (COR2, chg proc order) that has tabs. I built an additional tab using a user exit screen and code. In the Process after input I deliver a pop-up message and want to return to that screen(user screen, or I'd even go to another of the SAP delivered tabs.
    When I say "leave to screen 5115" I get this err mess"'SET SCREEN not allowed in subscreens (screen: SAPLXC01)"
    Here are the details, I'd like to return to either one of these screens:     Thank-You
    SAP screen:
    Transaction          COR2        
    Program (screen)     SAPLCOKO    
    Screen number        5115        
    Program (subscreen)  SAPLCOKO    
    Screen number        5190        
    Program (GUI)        SAPLCO40    
    GUI status           VVKOPF      
    Or the custom screen:
    Transaction          COR2      
    Program (screen)     SAPLCOKO  
    Screen number        5115      
    Program (subscreen)  SAPLXCO1  
    Screen number        5100      
    Program (GUI)        SAPLCO40  
    GUI status           VVKOPF

    Thomas
    Check this tutorial: * Multiple Menus with GPRM based button jumps *.
    I think it's what you need.
    Hope that helps !
      Alberto

  • Is there a way (config setting/etc) to stop FF from automatically scrolling to the last "remembered" position on the page while navigating back?

    I realize this is supposed to be a "feature" but I find it really annoying. Say I view forum topics, click one way down at the bottom. Navigate back, page loads (always takes FF forever these days), so after things begin to populate I scroll down to where I want to go/was/whatever. When after long while FF is finally done loading the page, it auto-scrolls my screen up or down. Aaaaarrrrrrgh! If there is a config value to have it not do that on back (and better yet also reload) it would save me a whole lotta daily aggravation.

    No, say I just downloaded the new Spoon album and want to listen to it while I'm looking around in the main music list at other stuff.
    I'd drag the new Spoon tracks into my static playlist named "Now Playing"
    By static I mean, not a smart playlist.
    I could just as well decide to listen to a Genius mix or itunes DJ, or even a smart playlist such as genre=jazz.
    Any playlist but the main Music playlist, so I won't have to deal with that annoying jumping around while I'm working with other tracks.

Maybe you are looking for

  • How do I send a link or page with Windows 7

    In Vista in was able to send a link or page from the file button on top, now I do not have this option. I don't know where to find this option or how to do this?

  • Trying to upgrade my broadband

    Hi, my current broadband package is option 2, 40gb limit/unlimited evening  and weekend calls with unlimited calls as an add on.I pay £18 for the broadband /evening weekend calls, £5.15 for the unlimited calls add on and £15.45 monthly line rental.I

  • Connecting to A/V Reciever for Best Sound

    Hello, I want to stream an internet radio station from my MacBook Pro into my A/V receiver...which has a number of inupt options, including HDMI. My question is how to do this with the very best sound quality??? Thanks!

  • My Fire Fox is just gone! I click on Icon and NOTHING.

    My Fire Fox is just gone! I click on Icon and NOTHING. Tried to re-download and it keeps telling me Fire Fox is running it can't download until I close it. BUT there is nothing open! I have shut my Lap Top down and re-started ,then tried download aga

  • Is it ok if I get rid of 06?

    Guys, I have just installed Keynote 08 Trial and I'll test it for another 2 weeks before I buy my license. I've been checking folder with "WhatSize" and I could see that K06 is incledibly bigger than K08. On folder is 1.9GB big while the other doesn'