How can I avoid refnum no longer valid?

Was hoping someone may have a suggestion...I mentioned previously I use VI scripting to create a bunch of controls and indicators from a text file.  Along with that, it stores a reference number for each control in an array.  I copy these controls/indicators to a separate VI, then register the contents of the refnum array with dynamic event registration, the goal being that a value change on any of the controls will trigger the event structure.
I started testing and found that the contents of the refnum array, although valid when I began testing, changed to "Refnum no longer valid" after I closed the VI.  I guess this makes sense...I guess what I need in my case is effectively an "absolute refnum", basically a single reference that will be associated with a control at all times, and will persist regardless through program execution and shutdown.  Do such references exist?  The only other alternative I can think of right now would be to build the array of references at runtime each time, but I'm not sure how I would do that...things are put in the array in a specific order when I run the VI script, so right now I don't see any way that I could re-capture that order by building the array at runtime (i.e. through some use of Scan for GObjects VI that finds each control one by one and gets a reference to it).
Surely there's an easier way to make it persist?

Hi bmishoe,
Please refer to this forum. 
Refnum is No Longer Valid - Discussion Forums
http://208.74.204.114/t5/LabVIEW/Refnum-is-No-Longer-Valid/td-p/539259
Thank you

Similar Messages

  • How can I delete a no-longer-valid email address from iPhone's Mail?

    My son has changed his email address, and I have made the changes in the Adressbook (they sync correctly via MobileMe). But his old email address continues to pop up in the Mail application. I know how to delete this from the desktop's Mail application, but don't know how to do this on the iPhone.
    Any suggestions/pointers? Thanks in advance. Cheers, Veit

    The only way to remove this data from your phone is to restore the phone as a "new" device, & not from a backup. Of course, if you do this you will lose all saved data & have to sync back your itunes content. Some view this as a feature, others a PIA. You need to decide for yourself if it's worth going through restoring as new or just living with it. You can leave feedback here:
    http://www.apple.com/feedback/iphone.html

  • When I create an email signature, the text I type is repeated twice in the actual email sent (above and below a line).  How can I avoid this?

    When I create an email signature, the text I type is repeated twice in the actual email sent (above and below a line).  How can I avoid this?

    Try validating your installed fonts and fixing any errors that show up. To do this see this article: http://reviews.cnet.com/8301-13727_7-20085570-263/safari-in-os-x-lion-replacing- text-with-block-a-characters/

  • How can i avoid restarting tomcat server when servlet is modified?

    please advice me that how can i avoid restarting the tomcat server, whenever a servlet file is modified in my application. is their any way ?

    No probs. Here's how I do things...
    1. Install tomcat as normal (e.g. I install to C:\Apps\jakarta-tomcat-5.5.4)
    2. Create a webapps directory in your eclipse project with the following directory structure
    MyEclipseProject
       - src
       - conf
       - webapps
          - MyApplication
             - META-INF
             - WEB-INF
                - classes
                - lib
                - pages3. Set the project's output folder (e.g. bin folder) to webapps/MyApplication/WEB-INF/classes
    4. Put all your jar files in the lib directory
    5. Put JSPs / HTML in the pages directory (you may also want to create additional directories for TLDs, config files etc)
    6. Ensure your web.xml is in the WEB-INF directory
    7. Although it isn't essential I create a context.xml file and store it in META-INF, e.g.
    <Context reloadable="true">
        <!-- Default set of monitored resources -->
         <WatchedResource>WEB-INF/web.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/struts-config.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/tiles-defs.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/validation.xml</WatchedResource>     
    </Context>I use this to set monitored resources that will trigger an automatic appliation reload and to configure JAAS (not shown). See the Tomcat documentation for additional information.
    8. In the 'conf' directory I create a server.xml file used to configure Tomcat (you can copy the one from your <TOMCAT_HOME>/conf/server.xml).
    After copying the file change appBase attribute in the host element to be the full path to the webapps directory. You can also change the HTTP and HTTPS ports if you wish
    9. Download and install the Tomcat Launcher plugin from Sysdeo.
    10. In Eclipse's Preferences menu you will see a new entry for Tomcat. Click this then
    a. Set your Tomcat Version
    b. Set your Tomcat Home
    c. Set "Context declaration mode" to server.xml
    d. Set the configuration file to the full path to your server.xml file created in step 8
    On the "Advanced " sub page select all relevant projects to add to the Tomcat classpath
    On the "JVM Settings" page add all the jars in your WEB-INF lib directory to the class path
    On the "Source Path" page select all relevant projects
    Now if you start Tomcat using the Tomcat icon, you will be able to remote debug your application. If you change web.xml (or any other file in your context.xml watched resources) it will automatically reload. Any changes to JSPs will automatically be picked up (providing your tell your browser not to use the page in cache - e.g. CTRL+F5 in IE)
    There are some limitations that I'm still working on however. Primarily that I haven't included the Tomcat Manager application in my webapps directory, so Sysdeo cannot perform a reload. This means that if I change a source file, and eclipse auotmatically rebuilds, Tomcat doesn't pick up the change unless I either change a watched resource file (e.g. web.xml) or stop and restart Tomcat.
    There's no reason why this can't be fixed, I just haven't got round to it yet.
    I'm sure there are lots of other (probably better) ways of achieving the same thing. This was the first method I tried and it worked, so I stuck with it. I'm not a Tomcat config guru and I'm sure other forum users could provide some improvements should they wish.
    Post if you get into trouble, however I won't be able to respond until next week.
    Cheers,
    Steve

  • How can I avoid bit stuff?

    ---- card=pci-can/2---
    how can I avoid bit stuff?
    when i am using ncgetattr.vi,the return value of series2 error/arb captue is 10100010.
    Then how can i resolve the problem!
    thanks.
    Work hard and enjoy life.
    Love CVI and Labview!
    Certified Labview Developer

    Hi 侠客
    The Series2 error/arb capture register indicates where the last error happened. In this case, the bit stuffing rules (not more then five consecutive bits of the same state) where violated. Typical causes are:
    Baudrate mismatch (most likely no commmunication at all possible)
    Improper termination (please see chapter 4 of the NI-CAN Hardware and Software Manual for more information)
    Wirering schema not compliant with the CAN specification (ISO 11898), e.g. stub/drop length too long, star-type setup instead of a chained setup 
    -B2k

  • I am trying to make a iphoto book but every time i click on a single photo or folder it opens up a new book. How can I avoid this? This is iphoto 10.

    I am trying to make a iphoto book but every time i click on an individual photo (or folder) it opens up a new book. How can i avoid this?

    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailer like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    NOTE:  If you're running iPhoto 9.5 the export options will be different.
    OT

  • I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?

    I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?

    Hello Michael,
    Thank you for your response.  My operating system is XP.  When I try to open a pfd document I just get a series of letters and symbols in a dialog box.  The top of the box says "select the encoding that makes your document readable".  I can choose Windows, MS-Dos, or other (there is a long list to choose from).  None seem to make a difference.  If I save the document to my desk top I can right click on it and choose an option "Open with  AdobeReader 9" and it opens fine.
    Thank you,
    Rick 
    New Edge Technologies
    6525 Peninsula Dr.
    Traverse City, MI 49686
    231.620.2521
    231.941.1284 (fax)
    [email protected]
    Date: Wed, 8 Jul 2009 06:22:51 -0600
    From: [email protected]
    To: [email protected]
    Subject: I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?
    Hello:
    What operating system does your computer use? What happens when you attempt to open a PDF document rather than saving it first? Please include any/all error messages. Also, have you tried opening documents from other locations or just one in particular?
    Thanks,
         Michael
    >

  • How can I avoid music playback stopping when starting an App

    Whenever I listen to music on my iPAD3 and switch from the build in original musicplayer to any App, the music stops to play.
    I need to go to the taskbar and go to the very left to press the play button again.
    That helps me to use the App choosen before and listen to the music.
    If I open another App or switch there with "sideswapping", music stops again.
    How can I avoid this ?

    Revit must be using the discrete graphics and possibly a fair amount of cpu as well.  This has nothing to do with memory or memory allocation (which you can't do on a mac since it doesn't use shared memory like some low-end PCs do.  Getting hot is not a problem as long as the fans speed up to increase the cooling.  If the system is overheating, it will shut down on its own.

  • How can i avoid EOFException?

    Dear Friends,
    here raf is RandomAccessFile
    and Record is Object
    my doubt is when i execute is code, it was executed. and also it throws EOFException. i know what is the problem(EOF)
    how can i avoid this exception ?
    please give corrected code..............
    boolean _bolVal = true;
    while(_bolVal)
    try
    objectSize = raf.readInt();
    System.out.println("The Object Size : " + objectSize);
    byte[] byteData = new byte[objectSize];
    raf.read(byteData);
    ByteArrayInputStream bais = new ByteArrayInputStream(byteData);
    ObjectInputStream ois = new ObjectInputStream(bais);
    Record auditObject = (Record)ois.readObject();
    catch(EOFException e)
    _bolVal = false;
    e.printStackTrace();
    Thank You

    Don't read past the end of the file.
    If you don't know how long the file is or which is the last record, you can't avoid EOFException, and there's no reason why you should try. That's what it's there for, to tell you that you're reading past the end of the file.

  • Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • I have made a book of my I Photo pictures. In certain layouts there is a textframe. How can I avoid the frame becoming visible in the print if I don't want to write anything? Should I just leave it or should I delete the text "Write your text here" ?

    I have made a book of my iPhoto pictures. In certain layouts there is a text frame. How can I avoid the frame becoming visible in the print if I don't want to write anything?  Should I just leave it untouched or should I delete the instructing text "Write your text here"?

    Most pages have layouts for pictures only or pictures with text boxes. Either select the same layout for that page but the one without the text box or put a space in the text box.
    Putting a space in the text box will avoid getting the warning when ordering that there's an unfilled text box in the book. The box will not be visible in the final product.  You can and should check the book before ordering by previewing it as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it
    Happy Holidays

  • How can I avoid (on a mac) getting called on Skype...

    How can I avoid (on a mac) getting called on Skype when I'm not signed in?
    It's really annoying.
    I'm not sure if it's supposed to be that way, but suddenly I get the skype-calling-sound, and I have to log into the skype app to abort the call. The persistent calling bastards kept on calling after I aborted the call and left the app, so I ended up muting my speakers for a while. It really shouldn't have to be this troublesome.

    That's like asking how many cows can I get into a field.  It depends on the size of the field, size of the cows, the terrain of the field, etc.  We could use a bit more information on what you're trying to accommplish:
    1 - where are the photos being downloaded from.
    2 - how big are the photos?
    3 - where are you going to put the photos, i.e. into folders, into an iPhoto library?
    4 - how big is the hard drive in the Mac Pro and how much free space do you have on it?
    etc., etc, etc......

  • How can i avoid displaying runtime error in intractive report

    hi gurus
    my question is, in interactive report when i reach 20th secondary list after that am getting runtime error when i click again. So i wanted to know how can i avoid that run time error.
    regars
    imran

    Hi Imran,
    Basically we can have one basic list and 20 interactive lists.
    Once when we reached to 20th list then it goes to shortdump.
    So, inorder to avoid that we can modify the system field
    SY-LSIND.
    Just see this example and try this. I hope this will be useful for you.
    REPORT  ZSAMPLE1111.
    data: begin of itab occurs 0,
            matnr like mara-matnr,
            mtart like mara-mtart,
            mbrsh like mara-mbrsh,
            end of itab.
    data: begin of jtab occurs 0,
          maktx like makt-maktx,
          spras like makt-spras,
          end of jtab.
    select matnr mtart mbrsh into table itab from mara up to 10 rows.
    loop at itab.
    write:/ itab-matnr, itab-mtart, itab-mbrsh.
    hide itab-matnr.
    endloop.
    at line-selection.
    select maktx spras into table jtab from makt where spras = 'EN' .
    case sy-lsind.
    when '1'.
    loop at jtab.
    write:/ jtab-maktx, jtab-spras.
    endloop.
    when '20'.             * changes see here.
    sy-lsind = 1.
    when others .
    write:/ 'name',sy-lsind.
    endcase.
    I hope this will be helpful for you.
    <REMOVED BY MODERATOR>
    Cheers,
    Swamy kunche
    Edited by: Alvaro Tejada Galindo on Apr 15, 2008 4:01 PM

  • How can I avoid a full scan when ...

    Hello
    How can I avoid a full scan with I apply the aggregate function "MIN"
    SQL> select min(c1) from hh;
       MIN(C1)
             1
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE
       1    0   SORT (AGGREGATE)
       2    1     TABLE ACCESS (FULL) OF 'HH'Regards
    James King

    The table 'hh' does not have statistics. Assuming that there is an index on the column c1, statistics are computed on the table and its indexes, you may see a
    INDEX (FULL SCAN (MIN/MAX)) of the index on column 'c1'.

  • How can I avoid crash of my iphone 5.

    How can I avoid crash of my iphone 5.

    You swipe left to right on the song, press the red delete button.
    If that does not work, turn off iTunes Match and try again.

Maybe you are looking for

  • TS4136 Apple Mail ActiveSync issue during Exchange 2007 to Exchange 2010 migration

    When customer configures the ActiveSync account on Apple Mail (using Exchange Server 2010 CAS array name) for the user whose mailbox is on Exchange Server 2007, they are not able to get any mail and account displays offline. It shows the mailbox empt

  • Sticking components in JPanel to GridLayout

    Could please anyone help in the following. I have an application where some JPanel with several Swing components positioned with help of GridLayout. What I need is to remove and place components during runtime, but the problem is that when I remove c

  • Get LUN ID and TARGET ID

    Given an entry in /dev/rmt, how do you programmatically get its LUN ID and target ID? It shows up in dmesg's output but I'm wondering if there's a call to uSCSI to get in. Under Linux, you can use ioctl(fd, SG_GET_SCSI_ID, &info) to get it. Thanks, Q

  • HT1386 How do you manually add a song to an iPhone/iPod in iTunes 11.02?

    Earlier versions of iTunes allowed us to drag/drop similar to how the Playlist section is still set up. This was very easy and intuitive.  I do not want to synch the whole library, but now there is not an option for manually updating individual songs

  • How to get iWord to use hotkeys for runic letters and accents . . . ????

    Hi - Just got my first mac ever (an MBP) last week, and I'm working away on my PhD in medieval literature and loving this new computer! In MS Word, my PC has flexible hotkey options, which allow me to choose combinations to produce runic letters (the