Can't un-write protect TDM files

I am using the storage VIs to manipulate a TDM file that was created using the TDM header writer API. When I try to do any operations on it (specifically, deleting a channel), i get error -2561 "Data storage is write-protected.". I have checked the permissions on the file and they should be correct.
I ran some tests and found that i can create a TDM file using the storage VIs and delete a channel without any issues. According to LabVIEW, the file created using this method has the same permissions of the problem file.
Do you think this could be a bug with the TDM header writer VIs? Or am i missing something obvious?
I have attached  files showcasing the issue.
Thanks in advance for any help.
Attachments:
TDM test.zip ‏131 KB

Bazookazuz-
The standard is described in the Developer Zone described above.  TDM files are binary files written such that it follows a particular pattern.  That way the data can be easily retrieved and interpreted later.  It is written in the fashion to save disk space and to be created/modified quickly.  All TDM files acquiring data from multiple channels follow the same format alternating between each channel taking each sample (also described in the Developer Zone article).  By converting the data to End-to-End, it makes all the data for each channel together. 
In order to distinguish between the modified and unmodified tdm files, there is no way to just look at the file type and know without a naming scheme.  Programmatically, you can parse out the first few data sets and see if they are the same channel and then you can determine from there. 
Regards,
Mike S
NI AE

Similar Messages

  • How can I Read/write a ascii file?

    How can I Read/write a ascii file? like this:
    101     0.0000     -1.0000 +
    102     -0.1887     -0.9485 +
    103     -0.3578     -0.8639 +
    104     -0.5022     -0.7516 +
    105     -0.6177     -0.6177 +
    106     -0.7018     -0.4689 +
    107     -0.7533     -0.3120 +
    108     -0.7723     -0.1536 +
    109     -0.7603     -0.0000 +
    110     -0.7198     0.1432 +
    111     -0.6543     0.2710 +
    112     -0.5682     0.3796 +
    113     -0.4660     0.4660 +
    114     -0.3531     0.5284 +
    115     -0.2345     0.5660 +
    116     -0.1152     0.5791 +
    117     -0.0000     0.5689 +
    118     0.1069     0.5375 +
    119     0.2020     0.4876 +
    120     0.2823     0.4224 +
    121     0.3457     0.3457 +
    122     0.3911     0.2614 +
    123     0.4180     0.1732 +

    import java.util.*;
    import java.io.*;
    class BallB{
         public static void main (String args [])
         throws Exception {
              String str=" ";
              String myString="";
              try {
                FileReader fr = new FileReader("test.txt");
                BufferedReader br = new BufferedReader(fr);
                   FileWriter fw = new FileWriter("test1.txt");
                   while(str!=null){
                        myString = str+"\n";
                        str = br.readLine();
                        fw.write(myString);
                   br.close();
                   fw.close();
              }catch (Exception e) {
                   e.printStackTrace();
    }

  • How can i remove write protection from a Hard drive

    Cant write to HDD on win7 keeps saying "the disk is write protected"  Drive is in a removable IDE caddy, I put the drive in a USB caddy and was able to format the drive, but still get the same error when i try to write to it, I took ownership of the drive and it shows me as the owner. The drive was used in XP previously but i no longer have an XP system since upgrading to Win7. I have removed the partition with Paragon drive copy and re partitioned the drive, renamed the drive but still gives the same error.

    I used succesfully diskpart (on my Windows 7).
    In "Command prompt" (Start -> Run -> cmd) type "diskpart" and press enter.
    (I wrote "cmd" and then on right click menu I clicked on "Run as administrator").
    In diskpart utility (in the same dos window) you have to type "list volume".
    You can see your disk (I see all my 4 partitions on the disk that give me the problem) with a progressive number index.
    Type "select volume #" and press enter, "#" is the number corresponding to your disk/partition.
    Wait the response.
    Then type "attributes disk clear readonly" and wait (I wait 2/3 minutes) for the result.
    It says that operation was completed, and I can write on my partitions (and run checking/scanning on it).
    Hi,
    The hard drive I had problems with had 3 partitions and at least one was write-protected. Just to make sure I used the above "diskpart" commands on each volume and it cleared the write-protected attributes and was able to format the 10Gb partition I used
    just for storing the Pagefile.sys file.
    The write-protect attribute on this WD AV 1Tb h/drive may have been added as it was previously used in my Foxtel IQ box. I used Ghost 11.5.1 to clone my failing WD 1Tb h/drive that had 1376 delays and 50 bad sectors when scanned with HDD Regenerator
    onto the previously used Foxtel IQ h/drive.
    Cheerz ;)
    Thanks again, I was pulling my hair out to find a solution.

  • How can I print a protected pdf file if I know the password in Acrobat Reader 9?

    Hi,
    I have just received a password protected PDF file (Password isn't for opening the file, but to change security settings like copying, editing etc. only). I have the password for the file, but have no idea as to where I should enter this password in Adobe Acrobat Reader 9?
    Someone pls give me the steps to find the password field in Adobe Acrobat reader 9 to enter this password.
    Hope I don't need Adobe Acrobat 9.0 for this and reader would suffice?
    Thanks in advance.

    You can change the protection with Adobe Acrobat and the password. Not possible with only Adobe Reader.

  • Acrobat 8.1 and C# - How can you detect password protected PDF files?

    I am modifying our existing C# code that opens PDF files.  But when ever we hit a password protected file, we are prompted for a password.  This is an automated process, so if we detect a password protected file, we move the file to a manual processing folder to be processed later.
    We are using Acrobat 8.1 Standard.
    Our code looks like this:
    using 
    System;
    using 
    System.Collections.Generic;
    using 
    System.Linq;
    using 
    System.Text;
    using 
    Acrobat;
    using 
    System.IO;
    using 
    Word = Microsoft.Office.Interop.Word;
    using 
    System.Reflection;
         AcroApp app = new AcroApp();     app.Hide();
         try
              if (app != null)          {
                   app.CloseAllDocs();
                   AcroAVDoc av = new AcroAVDoc(); 
                   if (av.Open(filename, "Test") == true)               {
                        AcroPDDoc doc = new AcroPDDoc();                    doc = (
    AcroPDDoc)av.GetPDDoc(); 
                        doc.Save((
    short)Acrobat.PDSaveFlags.PDSaveFull, 
                        Utilities.GeneratePath(FileVersion.TEMP) + fi.Name.RemoveFileExtension() + ".PDF");                    doc.Close();
         catch (Exception ex)     {
              ErrorLog.LogError(filename.RemoveFileExtension(), ex);     }
         finally
              app.CloseAllDocs();
              app.Exit();
    This works great for non-password protected PDF files, but it prompts for a password if the file is password protected.  I was looking at the FileOpenEX functionality, but I can not find the reference to bring into my C# project.  It looks like it is only for C++, since I could only find C++ examples.
    Any help would be appreciated.
    Thanks,
    Tom

    There are no methods in the Acrobat SDK for C# for what you wish to accomplish.

  • Can't open password protected PDF files.

    As per the thread title, I can't seem to open password protected PDF files via the Mail app.
    I've read that you can open them if they're synced and opened via iBook, however, this is not an option for me.
    I get sent several password protected PDF for work per week and would like to be able to read them directly from the Mail app just like a regular PDF file.
    Does Apple know of this issue and will they implement a fix in the near future?

    Get this:
    http://itunes.apple.com/us/app/pdf-expert-professional-pdf/id323133888?mt=8

  • Can't copy write-protected folder to new location

    After doing a clean-install of Snow Leopard, and restoring home directory from Time Machine, I am unable to use the Finder to copy certain write-protected folders to a new location. Folder and all contents are owned by me, and using the Terminal to *cp -r* the folder and its contents works just fine. Trying to Command-C and Command-V the folder to the Desktop, say, or to click-drag or option-click-drag the folder itself cause a grayed-out version of the folder to appear briefly on the Desktop, and then disappear with no dialog box, indicated error, or entry in the log files.
    Interestingly, creating a new folder, changing it to read-only, and moving it with the Finder IS successful. This behavior only seems to be affecting files that were restored using Time Machine.
    A screencapture of this behavior is at http://www.crashwhite.com/tmp/finder_bug.mov
    Any ideas? I'm mystified!
    Thanks...

    Hi, V.K, and thanks for checking in. To respond to your questions:
    • chmodding to 755 or anything else that gives me write permission allows the move or copy to occur as expected.
    • chmodding to 444 is a means of archiving the state of a folder and its contents. I do this to avoid corrupting a year's worth of documents. In the past (w/ Tiger, Leopard, etc.), I've been able to copy an "archived" directory into the new writeable directory with no difficulty.
    • In Terminal:
    +$ ls -ladeO Documents/arc/edu/poly/poly\ 08-09/wasc/+
    *dr-xr-xr-x 3 rwhite rwhite - 102 Oct 11 11:16 Documents/arc/edu/poly/poly 08-09/wasc/*
    +$ ls -ladeO Desktop+
    *drwx------+ 15 rwhite rwhite - 510 Oct 11 13:19 Desktop*
    *0: group:everyone deny delete*
    I am unfamiliar with ACL--hadn't actually ever heard of it until now--so I'm going to start digging about a bit. It would appear that the + at the end of the Desktop listing indicates that there is an ACL that is having some effect here.
    Re: my installation, I began with a standard migration, but that process left some cruft in my system that was slowing the system (lots of log errors from old stuff that was no longer installed), so I did a clean install: wiped drive completely, installed new from Snow Leopard, and did a Restore of user directory from Time Machine. I believe that used Migration Assistant to migrate from TM, but it may have been that I simply did a Restore from TM.
    Off to go research ACL a little more. Thanks for the tip, and any additional advice you might have!
    Cheers,
    Richard

  • How can I read in a TDMS file into Sound and Vibration Assistant

    I have recorded a signal from 2 channels from a PXI 4496 DAQ card. I recorded this signal with the TDMS file format from a VI in Labview. I would like to import these signals into the Sound and Vibration Assistant for freq. analysis. In sound and vibration assistant there is an import logged tdms from signal express but I can not seem to import my original signal?  How can I import this data? 

    Hello All,
    I am trying to read TDMS file using LABVIEW. The TDMS file is created by me for reading data from one wire devices.
    I have created simple vi. attached below which read data from TDMS file. I am able to read other tdms files, I have with this program but not which one created by me. I am not able to attach file with .tdms exentiont. So I have attached it with .xlsx extention. Can anyone please guide me where is the problem in TDMS file? Am I missing anything while creating it?
    Thanks
    Attachments:
    EditTDMS (1).vi ‏14 KB
    data.xlsx ‏17 KB

  • LabVIEW and write protected DLL files

    Hi,
    We are building Labview dll's within a source controled environment (ClearCase). These dll's can only be modified in a particular view, but they should be useable in other views. The problem is that LabVIEW seems to be unable to open and run a write protected dll. I don't want to do any unreserved checkout, i want to use automatically the latest version of these DLL's, but they are always write protected.
    Does anyone runs in the same poblem and solved it?
    Regards,
    Sunny

    Hello,
    I know that the last message was post a long time ago, but I would be interested by a reply also, because I necountered exactly the same problem with Labwindows CVI 8.0 and clearcase 6.0. I mean :
    My executable calls some DLL.
    the DLL are managed by clearcase and not checkedout.
    I have an error launching the executable.
    If I just copy/paste the source folder from clearcase to a temp directory, then CVI executes normaly the project. It is the same behavior if I checkout all dll called by the executable.
    I thought that calling a dll requires only read access!!!
    Is anybody can help me?
    Regards,
    PFD

  • Can you unprotect a protected aac file?

    Hi all. Some albums on my mini just cycle through all the songs without playing any. I looked into "get info" and the ones that do that all have "proteced aac file" in their information. How do I unprotect , or at lesat get my mini to play these songs???
    Thanks for any help you can provide!

    OK, I'll check into that. And if the software's up to date, any other suggestions?
    Thanks for your reply, Grant.
    Mark

  • How many times can you burn a protected aac file

    hey its prob a silly question but im actualy not sure, once i read that you get unlimited cd burning of tracks bought from itunes, then i read that you can burn a playlist up to 7 times... does that mean the track can only be burnt 7 times or the playlist the track belongs to? if i burn a playlist 7 times then can the tracks in that playlist never be burnt to cd again? help me please im feeling dumb.

    A playlist can only be burnt 7 times. After that, you can still burn the same purchased tracks but they would have to be in a different playlist. If I recall correctly, someone (MacAddict? MacWorld?) did an experiment and discovered that you have to do more than change the order of the playlist. You need to actually have different tracks in the playlist.

  • Can we create TDMS file using C# and retrieve the data using a diadem

    I want to write a tdms file from a dot net application and to use the diadem to retrieve the data and to create a user defined report

    Hello,
    If you want this kind of output, you can use Java Mapping e.g
    1. Create your data type like this:
    CHARSET 0..1
    LOADMODE 0..1
    CODEFORMAT 0..1
    CURRENCY 0..1
    SUPPLIERID_DOMAIN 0..1
    ITEMCOUNT 0..1
    TIMESTAMP 0..1
    UNUOM 0..1
    COMMENTS 0..1
    FIELDNAMES 0..1
    DATA 0..unbounded
    ENDOFDATA
    2.In your message mapping assign all the constants. You might want to concat all the values of the FIELDNAMES and output them to DATA
    3.In your Java Mapping, replace all the XML fields including ,, with ,''',
    4.In ID, do not use FCC.
    Hope this helps,
    Mark

  • Using Swing applet to write data to file on SERVER

    Hello,
    I'm in the process of writing an applet using Swing (SDK v1.4.2). Here's the deal. The JApplet calls a JPanel, which will be used by customers on my site to enter data. I'm adding a <Save> button to the "form" which is supposed to write data to a file on the server (in order to preserve the customer's preferences).
    Please note that I am NOT attempting to write data to the customer's hard disk. That requires digital certificates, etc. which I am trying to avoid for now.
    Instead, I am using the URL class to access the file:
    URL page = new URL("http://www.whatever.com/mycustomers/preferences.txt")
    I then use the URLConnection class to establish the connection:
    URLConnection conn = this.page.openConnection();
    conn.setDoInput(true);
    conn.setDoOutput(true);
    conn.connect();
    etc...
    I've created a text file (preferences.txt) on my web site. Using the classes InputStreamReader, BufferedStreamReader, and StringBuffer, I can successfully read the file into a JOptionPane in my applet.
    The problem comes when I try to write data TO this file. I know the file exists because the applet can read it. I've set the permissions on the file to 666. I've got all of the appropriate syntax within a try statment that catches an IOException. I also have JOptionPanes all over the place to let me know where the program is. I've tried different combinations of output streams like BufferedWriter, BufferedOutputStream, StringWriter, but the file does not get updated. When the applet runs, it does not throw any exceptions, not even when I change the URL from "HTTP://www.whatever.com/prefs.txt" to "HTTP:/www.whatever.com/prefs.txt" (only one slash on HTTP, shouldn't I get a MalformedURLException?)
    I apologize for all the background, but I thought you might need it. The bottom line is:
    1) Can an applet write to a file on a remote server (not local hard disk)?
    2) If so, what (if any) caveats are there?
    3) Is there a way to check for file existence or be able to create a new file?
    4) I'm using the HTTP protocol - is there some restriction that prevents an applet from writing to a file using that protocol? If so, is there a workaround?
    5) Assuming that creating/writing a file using the method I've described is possible, what would be the appropriate output streams to use? (Currently, I'm using OutputStreamWriter with BufferedWriter).
    I've been struggling with this for a while. Any help/suggestions would be appreciated.
    Thanks
    P.S. I also posted this message on the Applet development forum, but I've received no response as of yet.

    Http servers support PUT as a mechanism to upload data to a specified URL. Get on the other hand which is what most people are familiar with is how you retrieve that data. The basic URLConnection is an abstraction of the Http connection which can be used for GET and POST operations by default based on doInput(true|false).. If you which to use any of the http methods other than GET|POST you will have to cast the URLConnection to HttpURLConnection so you can gain access to the specific Http functionaility that could not be abstracted.
    Since you are using a hosting service the chances are that you won't be able to use HTTP PUT on their server. Most servers do not support HTTP PUT without configuring them todo so. Now Apache allows localized config through the .htacess file. It might be possible (keep in mind I am not an apache expert) to configure a particular directory to allow HTTP PUT using this .htacess file it may not be possible. You will have to consult the Apache web server documentation for that answer.
    But regardless you can use the HttpURLConnection and the PUT method to send data from your applet to the server. In fact that is the preferred way to do this. If you can not configure your web server to support that method then you will have to develop a Servlet to do it. A servlet has several methods such as doGet(), doPost(), and doPut(). You would override the doPut() method get the URI path create a file and a FileOutputStream to that file, get from the request the inputstream, possibly skip the http headers, and then write byte for byte the incoming data to your OutputStream until you reach the end at which point you would close the OutputStream and send an Http Response of some sort. Typically in HTTP it would be 200 OK plus some web content. You content can be empty so long as your applet recognizes that is what it should expect...
    And away you go...

  • How to open some *.dat (tdm) files by script via sud?

    Hello,
    i want to make for a script a GUI (sud) were i can mark some dat- or tdm-files in a directory (press ctrl) and give the names with path back to the script.
    May be as vector or matrix.
    It is possible or is there any DIAdem-function which includes this?
    Regards

    Hi Traderhans,
    I think what you need is the command FileDlgShow. Please refer to the help for more information. If this command is not sufficient you can also use the command FileNameGet. But this command is much more complicated.
    Hope this helps.
    Winfried

  • I write digital port by 'DAQmx Configure Logging.vi​' and receive TDMS file with 8 boolean channels. How can I write to 1 integer channel?

    Hello!
    I want to write 1 digital port from PXI-6536 with streaming to TDMS file.
    I'm writing by 'DAQmx Configure Logging.vi' and become TDMS file with 8 boolean channels.
    How can I write to 1integer channel?
    Attachments:
    1.JPG ‏27 KB

    Hey Atrina,
    The actual data stored on disk is just the raw data (that is, a byte per sample in your case).  It's really just a matter of how that data is being represented in LabVIEW whenever you read back the TDMS file.
    I'm not sure if there is a better way to do this, but here is a way to accomplish what you're wanting:
    Read back the TDMS file as a digital waveform.  Then there's a conversion function in LabVIEW called DWDT Digital to Binary.  This function will convert that set of digital channels into the "port format" that you're wanting.  I've attached an example of what I mean.
    Note: When looking at this VI, there are a few things that the downgrade process did to the VI that I would not recommend for these TDMS files.  It added a 1.0 constant on the TDMS Open function, and it set "disable buffering" on the TDMS Open function to false; you can get rid of both of those constants.
    Message Edited by AndrewMc on 01-27-2010 11:21 AM
    Thanks,
    Andy McRorie
    NI R&D
    Attachments:
    digitalconvert.vi ‏13 KB

Maybe you are looking for

  • Any Adobe app won't start - clean install

    Hi there, My name is Andrea. I have a MAC MINI with two partitions. One with OS X 10.9.3 and the second with WIN7. On both I am running Adobe CC app. On MAC partition is working fine. On WIN7 I had an issue. At some point any applications I tried to

  • 9i install error  "error writting to C:|windows\system32\mfcan32.dll"

    I'm trying to install Oracle on a "brand new" computer running WIN 2003 XP Home, so I'll be ready for the fall semester. I was installing Oracle9i DS Release 2 (9.0.2.1) and at the "Install" screen this Oracle message. ERROR writting to C:|windows\sy

  • How to reinstall iMovie 08

    Hello everybody I have a black macbook, that came with Tiger and naturally imovie 08 pre-installed. I have now bought and installed Leopard and upgraded to 10.5.1 Unfortunately iMovie is not working, and i have tried may suggestions from other posts

  • New pdf?

    How to create a new PDF?

  • Veriface 3 and windows 7 rc login problem

    I have u110 notebook, Veriface 3 doesnt work on the windows 7 login screen... its shows veriface login window and trying to connect a webcam then its shows only black screen in the veriface login window... But when i login manually then veriface appl