NUM of Ref pb to save the file

Hello

I have a problem of registration when you use the file refnum of one vi to another

I use AE to memorize the file refnum, it s ok if done everything in a single sequence, but not if the reading is done in a vi

a writing and close in another.

If an i use probes to know the value of refnum I have the same registration than all the other actions of reading works correctly, I do not understand where is the problem?

here my screws

Any ideas?

Tinnitus

LabVIEW refnums all have a so-called garbage collection operation. This means that the refnum is eliminated from the first level VI in which the refnum hierarchy has been created/opened idle. There are several solutions:

(1) keep the part in which you opened the active refnum for the duration that you want this object the refnum is referring to the provision.

(2) not pass refnums autour, but the paths and reopen the file whenever you need to do something

(2) is obvious, 1) can be achieved in several ways, but what I do is usually to have the main frame that still holds assets in any case, do the opening of refnums to use in the sub-panels laid.

Tags: NI Software

Similar Questions

  • Why the highlighting of text in a PDF document does not work after you save the file

    Why the highlighting of text in a PDF document does not work after you save the file

    What application you use to highlight?

  • where to save the files under options the file name is duplicated how to remove an additional folder with the same name

    Under Options in Firefox, I clicked on save the files under downloads, but the file name twice and an additional file with the same name is created in the folder, i.e.:

    G:\Akbar's Songs\HAMARA DOWNLOADS\HAMARA FORUMS DOWNLOADS FORUMS

    As you can see the file repeats, how can I fix it?

    Also the music files, I download from a site of downloads as a WinRar file and I need to open it. Y at - it an option where the file opens automatically in the folder I chose?

    Thanks a lot for your help.

    Hi Akush, when you install 7 - zip, make itself the default application to open .zip and .rar files. So if you double click on the .rar file, it should open in 7 - zip. If you prefer to decompress immediately, right click the file and look for new 7 - zip items in the menu. I can't think of a way to do this automatically, however.

  • How to stop Firefox playing mp3 files and allow me to save the file

    I've upgraded to Firefox v28. I want to record an mp3 file to play later as earlier versions of Firefox. When I click on the file, it starts playing and does not give me the option to save the file.
    In the Options, the settings of 'application' for the file MP3 is on "save file". The quicktime plugin is disabled.
    The media.windows - media - foundation.enabled is set to false in: config
    How can I restore Firefox behavior to be like the older versions
    Thank you

    That fixed it! Thank you!

  • Firefox 19 may allow installation of software from web sites, or must there always save the files on your computer first

    Firefox 19 may allow installation of software from web sites, or must there always save the files on your computer first

    You must save the files on your computer before running them.

    In this way your security software can scan the file to see if it is safe.

  • I can't download Firefox. When I hit the download button the pop-up box asking me if I want to open or save the file disappears without me click an option.

    I tried to download Firefox without success.
    I hit the download button and, normally, a pop-up window appears asking me to open or save the file. An empty box appears briefly and then disappears.
    The problem may be with Internet Explorer 6.
    However, I tried to update to IE 8 and the same problem above occurs on the Microsoft Web site.
    I think that there is a little lack of IE 6.
    Any ideas?
    Thank you
    Sandra

    Thank you.
    In the end I had someone send me the file installation and it worked.
    Thanks for your time.

  • I use to manage my DSL modem via an ip address. When I enter FF8 I wonder where to save the file. Why and how can I prevent the FF8 to do this?

    I use to manage my DSL modem via an ip address. When I enter FF8 I wonder where to save the file. Why and how can I prevent the FF8 to do this?

    And now, whenever I'm in an ip address that I wonder if I want to download the file.

    This happens when the modem server does not send the file in text/html, but with a different MIME type.

    I tried adding index.html in the event that the server can send this file as text/html.

    If your DSL modem has a support Web site, then you can try asking it there advice on how to configure the server modem.

  • Where Cookies-Exceptions are stored so that I can save the file?

    I have access to my computer using 'Accept cookies from sites' - 'Exceptions'.

    Whenever I have reinstall FireFox, I have to manually add the sites one by one to this list of exceptions.

    If I knew what file these exceptions were stored in, I could save the file and do not have to recreate them each time.

    Thank you.

    All permissions except password exceptions are stored in permissions.sqlite in the Firefox profile folder

    The permissions.sqlite file stores exceptions allow and block for cookies, images, pop - up windows and installation of the extensions (software).

  • Unable to print the web page - want to save the file instead!

    I'm unable to print a page of web... pop box appears, asking you to save the file. When cancelled, unknown error message appears. Other browsers ok.

    This has happened

    Don't know how many times

    is in the last week

    Make sure that your printer is selected at the top of this dialog box, and who print to file is not selected in the middle of this box.

    http://KB.mozillazine.org/Problems_printing_web_pages

  • Qosmio F20-136: scanned TV guide channel - save the file so you can recharge?

    I have a Qosmio F20 - 136 running XP Media Center. My question is does anyone know the name of the file that has the channels scanned so that if I do a re scan and don't get all channels from the list, because of my reception antenna I can re - load the file on the system with a complete list?

    What happens, if I make a new analysis of the channels of television at home I don't get that nearly 20 tv channels, but if I take the laptop to work, where I guess it's a better reception from the transmitter, I travel 35 channels found. I would like to save the file when its 35 channels scanned and have the opportunity to replace it in the directory, if I do a re scan at home.

    Thank you.

    Hello Mike

    Your validation list is very impressive and you should be an expert Qosmio. ;)
    I have F20 too and I also noticed that I can't watch all the channels available on cable TELEVISION here at home.

    Have you already found something interesting about it?

  • Save the file on the user's desktop

    Hi all, just a simple question (I hope!)

    I am writing a program and I want to save the file .txt output to the office. Of couse, different computers will have on their desktop to different directory paths (for example C:/Documents and Settings/Bob/Desktop - the user name will be different in all cases).

    Is there a specific command that you can use to specify what system you are looking for the office, regardless of the rest of the path of the directory? If it makes no sense at all.

    Thank you!

    Yes.Use get the system directory in a file i/o under file constants.

  • Save the file automatically in a default folder

    Hello

    I have a problem with the selection of a default directory to save the file (write on the worksheet). I want WriteToSpreadsheet automatically as a NEW FILE without inviting the user to click on the Ok button every time on "save file as" dialog box.

    Please find the attached photo to find the code.

    Analogy: I just want the program automatically save the file with a new file name each loop without pop up a dialog to the user to confirm the action.

    Thank you!

    Aerts

    Well, you already have the constant where he must go by default data.  You can just use it.

    Another option would be to create a Subvi to only call the file dialog box when the first call and record the path of the folder in feedback.  Then the selected folder has only one in need first.

    Probably the best option would be to have the user to select the folder where the program for the first time and this way through the while loop.

  • How to incorporate the timestamp and file name automatically select and save the file dialog?

    Hello

    I try to incorporate the name of the file that is the registration of the end user with the timestamp in the selected and save file dialog box. Can you help me?

    Thank you

    Hi Mike227,

    I couldn't find a way to immediately make the bat. I guess you need to mess with ActiveX to do. I found an msdn page that could help with this.

    Have you considered simply concatenating the name of the file and the time stamp with a path of the file and save the file when you create it, without inviting the user?

  • Why DAQmx read 200714 error when you save the file?

    In particular vi that I created, I have 3 analog inputs coming in and are graphically represented.  If I choose to save the information to a file, a dialog box appears and I can choose what to save it under.  If I take too long to save the file (aka about 8-10 seconds if the sample read rate is 500/s) then I get this error once the file has been saved:

    Error-200714 occurred at .vi DAQmx Read (analog 1-d NChan DBL 1Samp)
    Possible reasons:
    Acquisition stopped because the driver could not transfer the data from the device to the computer's memory rather quickly. This was due to limitations of the computer system.
    Reduce your sample clock rate, the number of channels in the task, or the number of programs on your computer that is running simultaneously.

    Why the DAQmx bed vi I have this problem when the vi has been idle for 10 seconds then I choose where to save the file?  How can I fix this error?

    Hi child of pre-school age,

    I think your error might be caused by the read buffer overflow. my suggestions for you would be to either the following four ideas:

    1. stop the acquisition before writing the file. This should mean that the DAQmx Read function will no longer be reading and therefore does not generate an error.

    2. If you still want to read the data but also write data as well, I think you'd be best suited for use live TDMS. TDMS allows the user to stream to a reading of filewhilst.

    3. the configuration backup dialog box file before starting the acquisition. Download the user to enter all data in the file before you start to acquire.

    4. change the buffer to unlimited so that you have enough time to navigate the record window.

    If you send your VI I can advise others

    Let me know how you go,

  • How to capture a .gif of a spectrum analyzer file and save the file in PC

    I want to capture a .gif from a spectrum analyzer file and save the file to the PC, but I have a problem when reading data from the instrument. I don't know how to format the string has obtained from the instrument, when I use '%s' or '%t' as string format to read the data from the instrument is truncated.

    my code are, could someone tell me where I'm wrong?

    char resultsArray [5000];

    viPrintf (hSpectrumInstr, ": MMEMTORCR ' CIMAGE.") GIF "\n"); "
    viQueryf (hSpectrumInstr, ": MMEMATA? '") CIMAGE. (' GIF'\n ', '%t', resultsArray);
    printf ("%s", resultsArray);
    GetChar ();

    as you can see your code is not readable, can you post a screenshot or, as before, a Word document?

    When you use "%b" table must be of type ViInt8

Maybe you are looking for