Open/Create/Replace Dialog Help

Hi all,
I want to create or replace an excel file (it may be 2003 format or 2007 format).
When the dialog opens, in the "Save as type" field, there is option "All files".
Due to this, I have to write the extension .xls or .xlsx.
Kindly help me if i can set the values in that field... (.xls or .xlsx)
Srikanth Chilivery,
Attachments:
error.png ‏271 KB

windows wrote:
But using this, I could replace the file but not create new file.
What is your LabVIEW version?
Using the file dialog express VI, you can specify exactly what operations should be allowed. You just need to configure it accordingly Try it!
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Error 7 occurred at open/create/replace file

    Hello,
    I have searched the forum and could not find any useful information regarding my problem, so hope you may shed some light. MyVI can create a new csv (text) file by using the time to name the file, so every time the new file will be created with a different name and file path is not a relative path. I can run the VI in both development environment and stand along executable without any problem. But, 
    One of my colleagues  cannot run the executable exe on her machine because Error 7 occurred at Open/Create/Replace File in xxxx.vi Possible reason: LabVIEW: File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct.
    My question is why only she cannot run this exe on her machine. I have checked a few different PC in my office and all of them can run this exe without problem, so I am pretty sure the code is fine.
    I have already ask her to do,
    Run the executable as administrator
    Save the new file to other drives (not C: drive)
    but she still cannot run the executable. I dont think this is a premission issue, otherwise, LabVIEW would give a different error, Error 8 I believe.
    Both her PC and my PC is running Windows 7 professional 64-bit. The only difference I can see is that she is based in US and I am based Australia. Does anyone have any idea? Please help.
    Thanks,
    Sherman

    I’m not sure but expecting like below,
    As you said, your creating file name with Time. Make sure file name is correct and there is no special characters (like, / or : ). If your formatting time to string with “Format Date/Time String.vi” (while creating file name), based on UTC format, string will change.
    UTC format specifies if the output string is in Universal Time or in the configured time zone for the computer. If TRUE, date/time string is in Universal Time. The default is FALSE.
    Make sure you have access rights to create files into mentioned folder. Try to create new file manually.
    Munna

  • Error 5 occurred at Open/Create/Replace File in Write spreadsheet String.vi

    Hi everyone,
    can anyone help me with this problem?
    "error 5 occurred at Open/Create/Replace File in Write spreadsheet String.vi "
    I've been using this part of the program for over a year an suddenly this error occures. But not always, mainly at the very beginning of my tests when the file should not be open.
    Info: I'm using a realtime PXI-System. Maybe the amount of data can cause the problem? (about 2MB)
    Grüße
    Meike
    Attachments:
    writeResults.jpg ‏345 KB
    error5.jpg ‏52 KB

    Hi Meike,
    is the file opened by a different program? Do you try to access it by FTP in parallel to your VI?
    You could use basic file functions instead of WriteSpreadsheetFile. That way you could open the file before starting the loop, keep it open all the time and close it once you're finished - with the added benefit of easier error handling…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Error7 occured at open/create/replace file

    Helo
    The vi attached is supposed to log current vs power.im supposed to see current changes on the front panel
    under the current(A) string but it remains zero even when the current setting is not zero.another problem is when i run the vi i get the error message
    error7 occured at open/create/replace file
    can someone help with this
    thanks
    Attachments:
    PSC-ETH TCP Demo applicationver4.vi ‏164 KB

    duplicate post

  • Modification to Open/Create/Replace file vi in Labview

    I'm a relative newbie to LabView so this modification described below is a daunting task for me, given the complexity of the block diagram in the Open/Create/Replace file vi .
    I want to change the dialog box and choices when you have selected a file that already exists from Replace or Cancel as the only 2 options to:
    ReplaceFile  AddToExistingFile  RePromptForANewFile QuitApplication  (this 4 option choice is my first preference)
    or at minimum
    ReplaceFile  AddToExistingFile  Cancel (adding AddToExistingFile as an option) 

    First of all, you should know that playing with the VIs supplied with LV is not always a good idea and open\create\replace is an example for a particularly not-good-for-editing VI. In any case, you should not overwrite the original.
    In this case, you can use Edit>>Find to find the 2 button dialog you're seeing. When I look at where it's located, it's enough to discourage any thought about changing the VI. At the moment it has a single output (overwrite?). You could replace it with a subVI which will have all your buttons, but you will need to add code to handle the extra buttons, which can be very dangerous.
    You may wish to create a much simpler logic instead which will do what you want yourself (using the VIs in the File I/O>>Advanced palette, like Open File and File properties), which will probably be safer.
    Try to take over the world!

  • "open/create/replace file"

    Under the file I/O functions palette there is a vi named "Open/Create/Replace File.vi". My application builder has trouble with this file name. Is there any reason  to name a vi with /'s? Seems to me that is not a valid file name convention in Windows.
    PaulG.
    7.1.1
    2000/XP
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

    Yes it's a pain.  Yes it's not very compatible.
    Yes you can rename it to include "-"s instead of "\"s and stick it in the same llb as the original.  I always make a copy, draw a nice big red X on the old one and leave them side-by side in my VI.lib folder.  That way I get around the problem.....
    Hope this helps
    Shane.
    Message Edited by shoneill on 03-30-200602:34 PM
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
    Attachments:
    Changed file IO.png ‏4 KB

  • Bug in Open/Create/Replace File

    I found this problem in LabVIEW 2009. The boolean indicator doesn't seem to work properly in the first snippet. It returns TRUE even with a valid path. With some trial and error I found a workaround that will make it work properly for now. I just wire an Error Out after the Open/Create/Replace File (second snippet). Is this a bug?? Am I doing something wrong?? 
    I've got a lot of code that uses this to test to check for existing files and then wire the output to a case statement. I also know there is a Check if File/Folder Exists.vi available. I would hate to spend a lot of time changing all my code if this is a known bug and it will be fixed in the next update. If it is not a know bug, where can I submit this??
    Solved!
    Go to Solution.

    Its not a bug. You have race condition between indicator and close ref.
    Use it in this way:
    Andrey.

  • How to use Open/Create/Replace File.vi

    How to change Open/Create/Replace File.vi to Open File?

    Use the routine Write Characters to File.vi found under the File IO palette. It has a boolean control on the front panel. If this is set true, data is appended to the end of an existing file, or a new one is created if the file doesn't exist. If the control is set to false, the file is always created new--overwriting any existing file with the same name.
    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

  • Odd Open/Create/Replace File Behaviour

    Hi all,
    I will make my question as general as possible as I believe someone must have come accross this behaviour before. I am using the Open/Create/Replace File function to programmatically open a file, by giving a path input created in an earlier vi. The odd behaviour I observe is that although Labview returns Error 1 when I give my file programmatically, it reads the file OK if I give it as a constant. The path constant I give is exactly the same as the one I am tryinng to give programmatically.
    Any suggestions? Is it to do with some string formatting problem? I have attached my portion of VI dealing with the path_in section.
    Thanks for your time,
    Regards,
    Harry
    Solved!
    Go to Solution.
    Attachments:
    Read_File_VI.JPG ‏262 KB

    Wild guess: You need to use "build path" instead of "concatenate strings" to built the path.
    (Also use a path diagram constant (not a string!) for "c:\ni-rt\" and get rid of the "trim whitespace" and "string to path".)
    See if it makes a difference. (build path is OS independent while string operations are not).
    Never operate on paths as strings. There are very few instances where that would be appropriate.
    LabVIEW Champion . Do more with less code and in less time .

  • Open/create/replace file.vi for Excel

    I have a macro enabled Excel file (.xlsm) that I would like to pr0grammaticaly open and then run the macro.  Shouldn't I be able to use the "open/create/replace file.vi" to open the file?

    I believe the Report Generation Toolkit has a subpalette for Macros but I don't know what you can do with it.  The Report Generation toolkit comes with some versions of LabVIEW 2014, I think Full and Professional, but was separate before that.  At the end of the day ActiveX will need to be used somehow.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Error 1430 occurred at Open/Create/Replace File in NI_Fuzzy_Logic_API.lvlib:FL Load Fuzzy System.vi- Untitled 3 Possible reason(s): LabVIEW: The path is empty or relative. You must use an absolute path. Not A Path how can i copy it in new vi plz help

    when i am copy the vi that is in find example>fuzzy>fuzzyEx with pi control the follwing error occuring 
    'error 1430 occured at open/create/replacefile in NI Fuzzy logic API.LVLIB FL LOAD FUZZY SYTEM.vi
    untitel 3 possible reason the pat is empty or relative you must se use an absolute patth <not apath>
    plz help me i only want that i can copy this vi in new vi but when i do so the above error occur and fuzzy logic cotroller is highlited 

    Hello Nofil,
    This is probably happening because you have made a copy of the VI without changing the name/ location on the disc. I have saved a copy of the VI for you, it is in LabVIEW 2010 SP1, please ask if you want this in a previous version.
    Regards
    Andrew George @ NI UK
    Attachments:
    Fuzzy Tanks with PI.vi ‏31 KB

  • How to avoid dialog in Open/Create/Replace File? (yes, I set 'no adv.dialog')

    I would like to avoid the dialog box which seems to
    appear whenever I can successfully open a file:
    I tried both 'advisory dialog' FALSE and TRUE for the following, as well as all file modes (open,create,etc):
    path:"C:\labview" file:"test.txt" ERROR 8
    path:nothing file:"C:\labview\test.txt" dialog box!
    path:"C:\labview\test.txt" file:nothing ERROR 8
    path:"C:\labview\test.txt" file:"C:\labview\test.txt"
    ERROR 8
    as well as other less sensical combinations.

    I'm guessing that you put the filename into the 'default filename' input.
    Instead you need to put the path (including filename) into the 'file path'
    input. The 'default filename' input is for when you want to allow the user
    to input the filename but give him a suggestion of what would be
    appropriate.
    "Grover" wrote in message
    news:[email protected]..
    > I am having the same problem when trying to programmatically create a
    > file. I have made sure I have a legitimate file path/name, no other
    > app/vi is denying access, I have 2k, but I am admin plus the folder
    > where I try creating the file has permissions for everyone set to full
    > control. Any ideas??

  • Open/create/replace

    Hello,
    I'm  a bloody beginner with LabView and I have a really simple problem. I hope to find somebody who has a little(, or big) advice.
    My problem:
    I need to open a certain number of files (*.txt)
    and to export these files into ONE new file.  The result should be a new file with all the opened files in a vertical row.
    It could like: open new files window > chose path >mark files > press open> export to / create new file> enter new name> press export> done.
    I alraedy found the open/create/replacetofile function but I don't how to use it!
    Thanks for your efforts!
    Stefan

    What's your Labview version?
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • Open Create Replace problems with saving file patterns

    Hello, I got a problem with open/replace/create function. Could you please clarify each function how it works? As you can see in my file, I try to save into the specified file path. The values appear in the text file but when I change some values in the data mainstream, it replaces the old value it has been. I want to have the whole data in one file till I close it and open another file for the operation.
    How can I do it??
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    Values Measurement 1-main.vi ‏34 KB

    Hi,
    I can't see your VI as it is in a newer version of LabVIEW than I have, so if you want any more specific help you'll need to save the VI as a previous version. (File -> Save as previous version) I have LabView 2009.
    However, I have made a quick little example you could use. You don't need to use Set File Position if you use Shift Registers, as shown in the attached picture.
    David.
    Attachments:
    WritetoFile-simple.png ‏21 KB

  • Open/Create file dialog can only create the file

    Hello,
    Very strange problem I got.
    The system is LabView 2014, on Windows 8. All 64bits.
    For long time I was happy and had no big problems with LV. However, after a few months without working on LabView, the LV got the problem.
    When I'm trying to open file using the file selection dialog (for example: insert SubVI, or select data file in LV program) I cannot. I can type a new file name and the press OK in the file selection dialog and have no problems with that. But I cannot open any existing file. When I press OK in the file selection dialog nothing happens. I can open VIs, projects, but nothing inside opened VI. Files I'm trying to open are not Read-Only, and the are no "insane", as the same problem I have for LV example files.
    Looks like something on the level of OS, but I'm not sure where to start to look. I have tried to reinstall LV (just remove/install without additional cleaning, if any exist). Did not help.
    Any suggestions ?
    Thanks.

    Code? You may be telling the code to only use new files, or more likely there is an unreported error causing trouble.
    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

Maybe you are looking for

  • MacBook Pro running slow and lagging during app switches/start

    I mean, it's really getting bad. I have to force quit repeatedly and then by some miracle - something takes and the program opens. Most of the time this happens with Photoshop and Firefox (which is what I use most often). PS does not have a bunch of

  • No. of records in the table

    Is any system table or a program that gives us the # of records by SAP metadata table name ?.. i have a list of table names & need to know the # of recs in all of them...so can try looking at the larger ones for analysis.. ?

  • Online Gaming and Latency

    A couple of us here (my son and I) like to play World of Warcraft. I'm using a MBP 2.4G with 4G ram and OS 10.5.6 My son uses a MDD Dual 1G with 2G ram and OS 10.5.6 and an ATI 9800 Pro video card. My network is a combination wired/wireless. When eve

  • Change request parameters

    Hi, I have a servlet and would like to change the request parameters before forwarding that request to another servlet. But how can I change the parameters? I thought it would work with request.setAttributes, but the parameters are not being changed.

  • How to find the leave request layout in standard JavaWebdynpro ESS busi pac

    Hi Gurus, How to find the Intial leave request layout from the standard webdynpro ESS business package. Can you tell me the exact component that i need to look for this particular layout. Its a urgent requirement can you guys send me the answers ASAP