CVI 2010 distributi​on not writing / updating files

Hi,
I have recently an installation/distribution of some software created in CVI 2010 to a client whoes PC's hard-drive had failed. They re-installed the software ok and it ran a test but when they came to save the data or any of the machine settings non of the files were updated.
They are using Windows 7 and I asked them to run the executable again as an administrator but still the same problem.
I then sent them a copy of just the application (which was the same as the one they had installed) and they manually copied this onto the PC  overwritting the version that had been installed and it all ran ok.
Is there something Windows 7 is doing with the installation and security/permissions? Is there anything I can set when creating the distribution that can overcome this?
Thanks

Hi Dave,
It sounds like there may be access rights issues with the files you are creating/saving within your program. Which windows directory do you write your files to from within the exe? For the example the root (C) directory by default on Windows is typically restricted in access, even for the Administrator until it's disabled.
Kind Regards,
Paul
http://www.paulharris.engineering

Similar Messages

  • Not writing to file

    Hi,
    I have made a program that reads a string, converts it to bytes, then writes to a file.
    Well i got the first two working, but its not writing to file. I know it should work cos i have written to file on my previous tests, but when i used a FOR loop it stoped working. Do ya know why. Below is the code...
    for (int a = 0;a = bytes.length - 1;a++){
    of.write(bytes[a]);
    System.out.print(" " + bytes[a] + " : " + bytes.length);
    My friend told me to use bytes.length - 1 as it is meant to stop the OUTOFBOUNDS error.
    OK,
    my regards
    Below is the whole program, its a bit messy cos i got lots of old code that i have blocked.
    import java.io.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.lang.String;
    public class sender implements Runnable {
    int i= 0;
    String mes;
    int count =0;
    int b = 0;
    boolean yes = false;
    public static void main (String[] arguments) {
    Thread th = new Thread (new sender());
    th.start ();
    //sender();
    //while (true){}
    public void run() {
    try {
    Thread.sleep(100);
    } catch (InterruptedException e) {}
    String mesdialog = JOptionPane.showInputDialog(null,
    "Enter your message");
    mes = mesdialog.toString();
    try {
    //FileOutputStream of = new
    //FileOutputStream ("send.txt");
    FileWriter of = new
    FileWriter("send.txt");
    //BufferedReader in = new
    // BufferedReader(fr);
    //while (true){}
    int i = 66;
    boolean eof = false;
    int inChar = 0;
    //String inChar;
    byte[] bytes = mes.getBytes();
    /* < disable / enable
    do {
    int n=Integer.MIN_VALUE;
    try{
    n = Integer.parseInt(mes);
    } catch (NumberFormatException nfe){
    //inChar = n;
    if (inChar != -1) {
    byte outChar = (byte)inChar* ;
    //char outChar = (char)inChar ;
    of.write(outChar);
    System.out.println("" + outChar);
    //of.write(mes,0,20);
    } else
    eof = true;
    } while (!eof);//*/
    for (int a = 0;a = bytes.length - 1;a++){
    of.write(bytes[a]);
    System.out.print(" " + bytes[a] + " : " + bytes.length);
    while (!yes) {
    if (bytes[b] == 32 )
    yes = true;
    else {
    of.write(bytes);
    System.out.print(" " + bytes[b]);
    b++;
    //System.exit(0);
    //outfile.write(input);
    } catch (IOException e) {
    System.out.print("AAA ERROR");}

    your friend was obviously wrong.
    for (int a = 0;a = bytes.length - 1;a++){ // that does nothing
    of.write(bytes[a]);
    System.out.print(" " + bytes[a] + " : " + bytes.length);
    }the above "for" loop says :
    1:initialize a with 0;
    2:do loop while a=bytes.length(<-that's completely wrong. it should be
    a boolean expression);
    3:for each loop increment "a" by one.
    try this:for (int a = 0;a < bytes.length;a++){
    of.write(bytes[a]);
    System.out.print(" " + bytes[a] + " : " + bytes.length);

  • Programme written in 6.1 is not writing to file in 7.0

    The programme written in 6.1 was designed to write data into file but i have installed labview 7.0 now and the same programme is not writing to file.

    Hi,
    Here is the detailed information.
    I am running this Labview VI for collecting data through a network analyser and controlling motion of motors through DAQ card. I have already run the cd of drivers given with Labview 7.0
    The exact subvi used for writing file is the hp8720 collect data. This thing has been installed in the Laptop with version 6.1 of Labview. What I have done is that I have taken the same programme and changed its algorithm in Labview 7.0 on a different comp and copied the file back. Then I installed labview 7.0 on the Laptop and tried running the new programme. But everything is working except the writing to file. Error handling has been put up and the message I get is Error reading/writing from/to file. Check file name.
    Kindly h
    elp out.
    Regards,
    Harshat

  • Announcement: LabWindows/CVI 2010 SP1 Run-Time Engine Updated

    A new version of the LabWindows/CVI 2010 SP1 Run-Time Engine (10.0.1.434) is now available for download. The new version includes Security Update 5Q5FJ4QW which resolves security vulnerabilities in components installed with LabWindows/CVI 2010 SP1 and earlier and LabVIEW 2011 and earlier. Further details can be found at KnowledgeBase Article 5Q5FJ4QW: How Does National Instruments Security Update 5Q5FJ4QW Affect Me? Installing the security update will have the same effect as installing the new version of the Run-Time Engine.
    The update can be downloaded from the Drivers and Updates page. The LabWindows/CVIRun-Time Engine is a free download.
    National Instruments
    Product Support Engineer

    The correct link should be this one
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • WSUS in Windows Server 2012 R2 is not downloading update files.

    I'm not using Proxy server and this is the only WSUS server in our environment and update source is to sync from Microsoft Update site.
    Synchronization completes successfully and every update files is not downloading. When I look at the download status from the main page, it said it downloaded, but when I look at the files from updates folder, it said failed to download.
    I'm getting following error messages:
    Content file download failed.
    Reason: The server does not support the necessary HTTP protocol. Background Intelligent Transfer Service (BITS) requires that the server support the Range protocol header.
    Source File: /c/msdownload/update/software/crup/2013/12/windows8.1-kb2903939-x64_a8ae5dc28899c892b46c9aa9c8aa71e2d3961a79.cab
    Destination File: e:\wsus\WsusContent\79\A8AE5DC28899C892B46C9AA9C8AA71E2D3961A79.cab
    John

    Hi,
    This is most likely a problem with a proxy server or firewall. Since you don’t have a proxy server, then firewall could be the culprit.
    Error message when you try to download a file by using the Background Intelligent Transfer Service: "Content file download failed"
    http://support.microsoft.com/kb/922330
    Make sure your firewall support HTTP 1.1 range requests. If it still doesn’t help, try the following workaround:
    If you are unable resolve this issue from the proxy/firewall side, then try these steps as a workaround on the WSUS server,
    Set BitsDownloadPriorityForeground=1 using osql.exe on WSUS SQL instance.
    net stop WSUSservice
    CD "%ProgramFiles%\Update Services\tools\osql"
    osql.exe -S <SQL instance name> -E -b -n -Q "USE SUSDB update tbConfigurationC set BitsDownloadPriorityForeground=1"
    net start WSUSservice
    Original post in this
    blog.
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope this helps.

  • Background process not writing to file

    Hi,
    i am encountering a problem when a process is started under root in background.The application is not writing the Information to the file.
    But when i start the same application from a telnet session it works fine
    Any solution to the problem
    regds
    subbu

    your friend was obviously wrong.
    for (int a = 0;a = bytes.length - 1;a++){ // that does nothing
    of.write(bytes[a]);
    System.out.print(" " + bytes[a] + " : " + bytes.length);
    }the above "for" loop says :
    1:initialize a with 0;
    2:do loop while a=bytes.length(<-that's completely wrong. it should be
    a boolean expression);
    3:for each loop increment "a" by one.
    try this:for (int a = 0;a < bytes.length;a++){
    of.write(bytes[a]);
    System.out.print(" " + bytes[a] + " : " + bytes.length);

  • Not writing the file second time

    hi Experts
    can anybody tell me after executing this code on windows the value is not written second time to file
    the code goes like this
    import java.util.*;
    import java.io.*;
    import java.net.*;
    public class Agent
         public static void main(String args[])
              File script=null;
              File outputFile=null;
              BufferedReader check=null;
              try
                   check = new BufferedReader(new FileReader("checkThreshold.txt"));
                   String checkStr;
                   while((checkStr=check.readLine())!=null)
                        checkStr=checkStr.trim();
                        //System.out.println(checkStr);
                        StringTokenizer st=new StringTokenizer(checkStr);
                        String commandStr=st.nextToken();
                        String paramStr=st.nextToken();
                        //String wThresholdStr=st.nextToken();
                        float wThreshold=Float.parseFloat(st.nextToken());
                        //String mThresholdStr=st.nextToken();
                        float mThreshold=Float.parseFloat(st.nextToken());
                        //String cThresholdStr=st.nextToken();
                        float cThreshold=Float.parseFloat(st.nextToken());
                        script= new File(System.getProperty("java.io.tempdir"),"script.vbs");
                        outputFile= new File(System.getProperty("java.io.tempdir"),"outputFile.txt");
                        PrintWriter writer=new PrintWriter(new FileWriter(script,false));
                        //System.out.println("command is:"+commandStr+" paramis:"+paramStr+"wThresholdStr:="+wThresholdStr+" mThresholdStr:"+mThresholdStr+"cThresholdStr:"+cThresholdStr);
                             writing a script for getting value and then comparing then
                        writer.println("Dim Wsh,cmd\n"+
                             "Set Wsh = Wscript.CreateObject(\"Wscript.Shell\")\n"+
                             "Wsh.Run(\"cmd.exe\")\n"+
                             "WScript.Sleep 1000\n"+
                             "Wsh.SendKeys \"wmic /output:"+outputFile+" path "+commandStr+" get/value{ENTER}\"\n"+
                             "WScript.Sleep 1500\n"+
                             "Wsh.SendKeys \"exit{ENTER}\"\n");     
                        writer.close();
                        /***********executing the script************/
                        Process p=Runtime.getRuntime().exec(new String[] {"cmd.exe", "/c", "\""+script+"\""});
                        int exitValue=p.waitFor();
                           BufferedReader in = new BufferedReader(new FileReader(outputFile));
                        String str;
                        int cnt=0;
                        while((str=in.readLine())!=null)
                             str=str.trim();
                             String tempStr="";
                             StringBuffer buffer=new StringBuffer();
                             for(int i=0;i<str.length();i+=2)
                                  buffer.append(str.charAt(i));
                             tempStr=buffer.toString();
                             if(tempStr.startsWith(paramStr))
                                  StringTokenizer token=new StringTokenizer(tempStr,"=");
                                  token.nextToken();
                                  float value=Float.parseFloat(token.nextToken());
                                  if(value>=cThreshold)
                                       System.out.println("critical");
                                  else if(value<cThreshold && value>=mThreshold)
                                       System.out.println("major"+value);
                                  else if(value<mThreshold && value>=wThreshold)
                                       System.out.println("warning"+value);
                                  else
                                       System.out.println("normal"+value);                         
                        cnt++;
                        System.out.println(cnt);
                        script.delete();
              }catch(Exception e)
                        System.out.println(e);
    }

    I tried to redo the config objects but still the same issue is there. anyone has any idea

  • JWS not downloading updated files first time

    We are experiencing a problem where JWS does not download the modified files when the application is launched the first time after the jar files were updated. When user launches it again, it gets the updates.
    This seems to happen mostly for users in remote locations (though not for all such users). For local users the frequency is much less.
    Any thoughts?
    Thanks,
    Raman.

    If the application has the offline-allowed specified,
    javaws has a timeout mechinism when checking for updates before launching an app. (i believe it's 1+1/2 seconds). If javaws cannot determine before the timeout if an update is needed, (and offline-allowed is specified) it will run the cached version, and continue checking in the background.
    Then when you run next time, the background checking will by then have determined an update is avail, and you will have to download before launching.
    /Dietz

  • UTL_FILE.PUT_LINE   not writing to file in real time !!!

    Hi All
    I have 3 statements and I am writing some thing to a file using UTL_FILE.PUT_LINE after each statement is over. Each statement takes mentioned time to complete.
    I am opening file in append mode.
    statement1 (takes 2 mins)
    UTL_FILE.PUT_LINE
    statement2 (takes 5 mins)
    UTL_FILE.PUT_LINE
    statement3 (takes 10 mins)
    UTL_FILE.PUT_LINE
    I noticed that I am able to see contents written by UTL_FILE.PUT_LINE only after statement3 is over, not IMMEDIATELY after statement1 and statement2 are done ?
    Can anybody tell me if this is correct behavior or am I missing something here ?
    Thanks a lot in advance.

    AnkitV wrote:
    Hi All
    I have 3 statements and I am writing some thing to a file using UTL_FILE.PUT_LINE after each statement is over. Each statement takes mentioned time to complete.
    I am opening file in append mode.
    statement1 (takes 2 mins)
    UTL_FILE.PUT_LINE
    statement2 (takes 5 mins)
    UTL_FILE.PUT_LINE
    statement3 (takes 10 mins)
    UTL_FILE.PUT_LINE
    I noticed that I am able to see contents written by UTL_FILE.PUT_LINE only after statement3 is over, not IMMEDIATELY after statement1 and statement2 are done ?
    Can anybody tell me if this is correct behavior or am I missing something here ?Calling procedure must terminate before data is actually written to the file.
    It is expected & correct behavior.

  • LR not writing XMP files in an exisitng catalog

    Hi Folks
    My problem is regarding XMP files. I read on a couple of forums that turning on the xmp files is a good idea...... (Automatically write changes into xmp) OK so I thought lets try it....
    If I turn this option on in my existing catalog it does not work, no xmp files are written.
    I have tried creating a new catalog and importing some RAW files and it seems to work just fine..... xmp files are created as expected.
    So is this option only for new catalogs or can I use it on existing catalogs....
    Many thanks in advance
    Regards
    batandball
    My config is the following
    LR 5.7
    Win 8.1

    The files that were previously imported prior to the activating the "Auto write to xmp" will have to be updated using the menu bar> Metadata> and selecting the option to write to xmp. (or Ctrl-S)
    Be aware that the develop module edits saved as xmp is only useful to an equivalent version of Adobe Camera Raw plugin in Photoshop.

  • File Receiver Adapter is not writing the file?

    Hi All,
    I am having a file to file scenario using NFS as both the source and destination are on server.
    File is getting picked up from server but not reaching the destination.
    In RWB for Receiver channel it only shows <b>Channel active and started correctly.</b>
    In SXMB_MONI  it shows the message scheduled for some later time.
    On reaching that time it tries again and reschedules :(.
    Please guide.
    Regards,
    Sumit

    Sumit,
    Now do one thing, just for check the directory for read/write permission by putting the test file manually on your target directory.
    The porcedure to put a file on server is as shown below:
    1. Save your file in your local machine.
    2. In <b>XI server</b>, enter the tranaction code "<b>SXDA_TOOLS</b>".
    3. In the input screen, enter:
    i) Object Type "DXPROJECT".
    ii) Program Type "BAPI".
    iii) Program "CREATE".
    4. Press Copy (Ctrl+F5) button.
    5. Now, you will get another screen in which you will see 3 blocks called as "Source", "Target" and "Copy with/without conversion".
    6. In Source block, choose the radio button "Presentation Server" and then take F4 help to select your source file. (file which you have saved on your local machine)
    7. In source block select the radio button "Application Server", check the box "Remote server" and take F4 help to select your application server.
    8. In the same block under "File Type" select "P physical file name" and under "File Name" write the path/directory name which you have mentioned in your communication channel along with the file name.
    Example: suppose file name in your Comm Chanel is "<b>demo.xml</b>" and directory path is <b>"/abc/testfiles/XML/</b>", then in step 8 write <b>"/abc/testfiles/XML/demo.xml</b>".
    Note: need not to do any thing in 3rd block.
    After doing all the above, let me know the results.
    Regards,
    Sarvesh
    ****Reward points, if it helpd you.

  • File adapter not writing the file correctly

    Hi,
    I am facing an issue where the file created on the destination is not with the correct data. eventhough the payload that was sent out from XI to the adapter is correct.
    Issue was with a mltiple element which was written once eventhough the payload shows multiple existance.
    we had changed the occurance of that element from 1 to unbounded.
    If anyone has any idea do let me know
    Regards
    Nikhil

    I tried to redo the config objects but still the same issue is there. anyone has any idea

  • Metadata not writing to file, metadata status "..."

    Until recently, I am sure that saving metadata to file worked fine.  Now, when I do it for a selection, it appears to write (with disk activity and dialogue of files being updated), but then afterwards I still have <mixed> status on the set.  Some within are updated, others show status <...>.
    Catalogue says there is no corruption - so what's going on?  How do I fix it?  And should I worry about teh state of my images?
    Thanks for any help

    Now see that when I save for some that show "Changed", it writes, then returns to
    say either "..." or back to "Changed".  It seem to think that the catalogue has some changes each time.

  • My computar is not writing AIFF files correctly

    It seems whenever it write an AIFF file (or a WAV, or an MP3 for that matter) the bass frequencys are boosted by about 4db. I used to think this was just a problem with Logic mixing (which also causes me a lot of frustration) but it now seems to be happening across the board.
    For example, I used wire-tap to lift a song of the internet, but upon listening to the said file it turned out the bass has been increased by a bizzare amount for no reason.
    The final proof came when I decided to rip a song off a CD and put it in Logic. Upon re-bouncing the file I discovered the bass frequencys had been pumped up in a most irritating manner. This happened again when I used wire-tap to rip the tracks off the CD as they were playing in the computer. This problem does not occur when I drag and drop the files off the CD and onto the desktop.
    I think this all points to something being wrong with my computer software.
    This problem is ruining all my very loud, sublimely beautiful mixes at the bounce stage and it's getting so bad now I'm thinking of backing up my files, formatting the hard drive, and reinstalling OS X.
    DISCLAIMERS:
    1. EQ on iTunes is SWITCHED OFF.
    2. My monitor equipment ALSO HAS A FLAT EQ.
    2a. When I play a track on my listening equipment from a CD IT SOUNDS FINE. Only after processing the VERY SAME track in LOGIC and BOUNCING IT does this problem COME UP.
    2b. This happens EVEN IF THERE IS NO EQ on either the MASTER OUT or the AUDIO TRACKS.
    3. I HAVE TRIED ALL FILE FORMATS, ALL KINDS OF DITHERING AND NOTHING CHANGES THE OUTCOME.
    4. This never used to happen.
    5. I am using the latest version of Logic Pro (7.1.1) compatible with Mac OS 10.3.9.
    If you fix my problem I will reward you with £10 to be paid into your pay-pal account (if you have one). I hope this underlines how sick I am of this problem and how desperate I am to get it fixed.

    Hi,
    This sounds so frustrating. If any processing of sound, e.g. through Logic, through Wiretap, or you might try Garageband (which I assume you have tucked away somewhere), produces the problem, then its hard to blame the software of the individual program. This leaves OSX and/or Coreaudio, or a hardware problem. Sorry if you've already reached this stage. This would mean a reinstall of OSX (or an upgrade, if you're thinking of it), or addressing the hardware issue. I know I had some very bizarre things (and repetitive) happen to me with faulty memory, or memory that just wasn't seated properly in its slot. You could start out by running the hardware test and go from there.
    Good Luck,
    Ray

  • CDC for Oracle in SQL 2012 not writing updates

    Hello...
    I have set up a CDC for Oracle Service and Instance for use with SQL 2012.  After the instance was started, I inserted six rows of data into my Oracle table and a few minutes later, it looks like the changes were picked up by the service.
    The instance status page contains the following information:
    Status = Green Checkmark
    Detailed Status = PROCESSING
    Last Transaction Timestamp = 7/22/2014 12:11:56 PM
    Last Change Timestamp = 7/22/2014 11:58:35 AM
    Transaction Log Head Change Number = 0x0A2C1C...
    Transaction Log Tail Change Number = 0x0A2C1C... (not the same value as the head)
    Current Change Number = 0x0A2C1C...
    Active Transactions = 1
    Staged Transactions = 0
    Completed Transactions = 0
    Written Changes = 0
    Read Changes = 6
    It looks like the six rows have been read, but they are not being written to cdc.CDC_TEST_TABLE_CT on my SQL 2012 database.
    I exported the diagnostic data using the "Collect Diagnostics" link, but there are no errors in the log.  Is there a primer for how to read the results of the diagnostics?
    I had the following error earlier today:
    "ORACDC517E:Oracle Call Intreface (OCI) method failed: ORA-01291: missing logfile 
    ORA-06512: at "SYS.DBMS_LOGMNR"
    But that error was resolved when my Oracle account was granted DBA and "execute_catalog_role" permissions.
    The account being used for the CDC Service and Instance has dbo rights on the SQL Server.
    Does anyone have an idea what the problem could be?
    Any help would be greatly appreciated.
    Thanks!

    Arthur, thank you for responding.  I appreciate it! :)
    I followed the instructions from Rakesh Parida's video on Technet.  Below are the individual steps I followed for creating the CDC Service and Instance.
    CDC Service Setup:
    I made sure that supplemental logging was enabled on my Oracle server.  I also made sure that my Windows account had DBA and "execute_catalog_role" permissions on the Oracle database.
    From the CDC Service Config MMC I ran Action>Prepare SQL Server which created the MSXDBCDC database.
    I then ran Action>New Service and entered the following information:
    Service name: OracleCDCService1
    Service Account: "This Account" radio button with my Windows username and password information
    Associated SQL Server: <My SQL 2012 Server>
    Authentication: Windows authentication
    I also provided a CDC Service master password.
    CDC Instance Setup:
    Connected to <My SQL 2012 Server> using the CDC Designer MMC
    Went through the steps of creating the Oracle CDC Instance
    Oracle CDC Instance Name = CDC_TEST_SOURCE
    Connected to my Oracle DB using Windows authentication
    Selected a single table that I wanted to try CDC on and left CDC Gating Role blank
    Ran the Oracle Logging script that enables table logging and supplemental log groups on the Oracle DB
    Ran the Status Check step and all passed
    Finished the wizard and started the instance
    A few minutes after the instance was started I added six records to the table in Oracle.
    Please let me know if you need more info.
    Thanks!

Maybe you are looking for

  • How to print two layouts in one take

    Hi, we are printing our employee cards with custom layouts created in the human resources module. We created 2 layouts, one for the front of the card and one for the back. Right now, we print one side and then we need to change the default layout to

  • Reasons why can't move image on its separate layer or combined?

    I am using Creative Suite 5.5 on my MacBook Pro...and today had issues demonstrating the simple process of dragging one person/image onto another, applying a quick mask to do some simple morphing. But...one, I couldn't drag the image from the interne

  • Axis2 Client encoding message problem

    Hi Experts, I developed an application (EAR + WEB + LIB) acting as a Webservice proxy for a healthcare service. Abap calls my proxyservice which then calls the other service. This application is developed as maven2 project with axis2 and dependent li

  • I message does not working

    i have tried all the things they said andstill can not getit t wrk

  • Opening website to previously opend page but not the current one

    I changed my cname setting yesterday pointing to a different server. earlier mail.davaonc.com was going to firstemailprovederserver and I changed it to secondemailproviderserver. its working on the computers who are visiting this link for the first t