Adding properties files TDMS with the C API

I use the free C API (dll) to write TDMS files. Everything works perfectly except the next function call.

int __stdcall DDC_CreateFilePropertyString (file DDCFileHandle,
const char * property.
const char * value);

I call the following function in advance to create the PDM file.

int __stdcall DDC_CreateFile (const char * filePath,)
const char * fileType.
const char * name,
const char * description.
const char * title,.
const char * author;
DDCFileHandle * file);

When I call the function to create the property, it returns with the error-6202 code (invalid argument). I don't think that there is an invalid argument in my appeal. Someone at - it examples of code? What I need to do something before I can create a property?

Thanks for your help.

Does

DDC_CreateFilePropertyString (file, "MyProperty", "MyValue");

work?

Tags: NI Software

Similar Questions

  • nilibddc dll: opening files tdms with the corrupt index files

    Hello

    I have a question about the error handling when using the nilibddc.dll.

    I want to use nilibddc.dll to open the .tdms file. At the time I experimented with some error cases and got stuck in a case:

    When I try to open a file with a corrupted file .tdms_index .tdms I get code error-6211 (DDC_StorageCouldNotBeOpened).

    The file .tdms_index is corrupted due to errors during the copy of the file.

    The problem I've noticed is that I have a lock on the corrupted file .tdms_index file after DDC_OpenFile (...) (I can rename it, but I can't delete the file!).

    As you can see in the code snippet - it is not really special...

    int ddcError = 0, length;
    DDCFileHandle file = 0;

    ddcError = DDC_OpenFile (file_path, NULL, &file);)

    Here, I get ddcError is-6211
    If (ddcError == 0)
    {
    do something with the file...

    ddcError = DDC_CloseFile (leader);

    If (ddcError == 0)
    {
    < "no="" error="" -="" everything="" done"=""><>
    }
    }

    System ("pause");

    I miss something here? Should I use DDC_FreeMemory in somehow to free open handles?

    I also tried to use the DDC_OpenFileEx (...) with readOnly set to true. But that doesn't change anything!

    Thanks in advance for the help,

    Daniel

    You are right. The sample file you attached to your message causes an access violation. If no normal flow program and apllication in undefined state.

    I will direct the file to developers. I tried to generate a file that causes the same by beating some index files, but has failed to create one on my own. It happened to your site more than once?

    What can we do?

    In the first place, simply copy the PDM. The index file will be recreated when the file is accessed. What is lost when the index file is not copied, therefore the time required to create the index file by scanning once the PDM file.

    I hope this helps a little

    Andreas

  • Accessible resources within a platform with the HQ API

    Hello

    I use the HQ API to build a custom Java monitoring tool.
    So far, I can easily access agents and its related settings.

    My problem is that I don't know how to access resources related to agent: Mount of the file server, servers, services... Is it impossible with the HQ API?

    How can I do?

    If you use this, it will be very easy!

    Get all your HQ server agents: this will return a list of the agents!

    listAgent = hq.getAgentApi () .getAgents () .getAgent ();

    Get all your HQ server platform: this will return a list of Resources (platform)!

    listPlatform = hq.getResourceApi () .getResources (listAgent.get (i), true, true) .getResource ();

    Get all your HQ Server server: this will return a list of Resources (server)!

    list server = listPlatform.get (j) .getResource ();

    get all your HQ Server services: this will return a list of Resources (services)!

    listServices = listServer.get (k) .getResources ();

    with this, you can have the agent (machines) and all the resources under it!

    Hope this will help u

  • I lost all the file associaation, with the exception of aol, how do I add these files?

    I lost all the file associaation, with the exception of aol, how do I add these files?

    Hello

    1. what happens when you try to open a program?
    2. have you made changes on the computer recently?

    Try the steps listed in the article below and check.
    How to change or choose the program that starts when you double-click a file in Windows XP
    http://support.Microsoft.com/kb/307859

    I hope this helps.

  • the pdf file is error once I modified my file pdf with the document cloud... (iPad)

    The pdf file is error once I modified my file pdf with the document cloud...

    The pdf file is sync with my account, I'm not able to open the latest version of the pdf file now.

    Any idea to restore to the last edit version?

    Hello

    Would like to inform that after that change the document on the ipad, if we go back to the homepage of the implementation of the changes would save it automatically. There is no possible way to restore the changes.

    Therefore, in this case you will need to recreate the document.

    Kind regards

    Christian

  • Can Mac play a dcr file made with the victory?

    Hello

    Can Mac play a dcr file made with the victory?

    Thanks in advance.

    Absolutely, as a Director on a Mac can open a .dir performed on a Windows computer. When you say "dcr file" I guess that is to be hosted in a browser page and read by the Shockwave plugin.

  • Get members of the group with the Java API in LiveCycle

    I work with the Java API in LiveCycle (LiveCycle 8.2) and I am looking


    an example of how read the members of a group.

    I am able to get a group (Type GroupImpl) using the PrincipalSearchFilter.


    But how do I get the members of this group. I checked the
    DirectoryManagerServiceClient and classes of different search filters
    without success?

    As a solution, I can retrieve all users of my application area and
    check their membership to see if they are in the group concerned. But this
    is a dirty hack, I really don't want to use.

    Any ideas?

    Hello!

    I know you mentioned that you were watching in this without success, but it should work really.

    First make a GroupMemebershipSearchFilter, defining the groupoid be the ID of the group itself.  Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter that will return a list of, as follows:

    DirectoryManager DirectoryManagerServiceClient = new DirectoryManagerServiceClient (serviceConnection.getFactory ());

    List userList = new ArrayList ();

    Try
    {
    userList = directoryManager.findGroupMembers (searchFilter);
    }
    catch (System.Exception e)
    {

    Animals mistake
    }

    return userList;

  • Recovering files TDMS with DIAdem connectivity library

    I was in the situation where my application dies and I have unsaved TDMS files. I need to recover the data in them.

    The logic of file is mysterious. For a file, I have three: *. PDM, *. TDMS_Index and *. TDMS ~. The last one is always the largest, so I suspect it's my data, as well as scaffolding maybe. If I save and close my account, I'd end up with a well trained PDM file. Unfortunately, my client is to kill my request so I don't ever have a chance of correctly, save and close the file. Yet, I need to recover the data. Is there a magic I can do to recover my data?


  • How to send files TDMS using the TCP/IP protocol

    Hello

    I work with the cRIO-9025, cRIO-9118 chassis and module NI 9239.

    I did an acquisition (voltage) where data are in 1 d Wfm SGL. I saved these data using a PDM file, but now I want to send this file to another computer (in this case mine) because the file is stored in the target. I have implemented this example:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/2842#0requirements

    The problem is that the tdms file is created but it has all the data. I have attached the image of the program. The program is in the other (not that I use to make Acq) to make it easy and then works when it works.

    * The file name of the client is not used because I had a conflict with the path.

    What I'm looking for, is to make an acquisition of 10 minutes every 30 minutes and then send this data to another computer (or other). I don't know if it's the best way, is perhaps better to send data at the same time as the acquisition is made, but my teacher told me that are easier if I send the file when acquiring ended. Acq, I use FPGA and RT.

     

    I would appreciate your help. Thank you!!


  • Add vNIC PortGroup scope with the REST API security group

    I created a security group within the reach of a PortGroup via the REST API. Now, I'm trying to add a vNIC, also via the REST API.

    To help illustrate, I have a JMTest1 VM with 1 vNIC connected to the PortGroup which is the scope of the security group. When I change this group the first item in the list that could be added to the security group is the first (and only) JMTest1 vNIC.

    AddvNICToSecurityGroup.PNG

    To add it via the REST API, I need to provide the following:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/ < member-moref >

    for example I need to understand what the < member-moref > for the vNIC to JMTest1 and this is what I have a problem with.

    If I add the vNIC through the user interface and then interrogate the security group it gives me below the answer:

    < securitygroup >

    < objectIdobjectId > securitygroup-xx < / objectId >

    < type >

    < typeName > SecurityGroup < / typeName >

    < / type >

    < name > JMTest7 < / name >

    < description / >

    < revision > 9 < / revision >

    < objectTypeName > SecurityGroup < / objectTypeName >

    < scope >

    < id > dvportgroup-xxxxx / < ID >

    < objectTypeName > DistributedVirtualPortgroup < / objectTypeName >

    < name > dv-xxxxx < / name >

    < / scope >

    < extendedAttributes / >

    < inheritanceAllowed > false < / inheritanceAllowed >

    < member >

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    < type >

    Vnic < typeName > < / typeName >

    < / type >

    < name > JMTest1 - NIC 1 < / name >

    < revision > 6 < / revision >

    < objectTypeName > Vnic < / objectTypeName >

    < scope >

    < id > vm-xxxxx / < ID >

    < objectTypeName > VirtualMachine < / objectTypeName >

    < name > JMTest1 < / name >

    < / scope >

    < extendedAttributes / >

    < / member >

    < / securitygroup >

    It seems that the < member-moref > for the JMTest1 vNIC is < objectId > 500758f6-b97b - a 7, 79 - 0c 04 - 996f53edf3f0.000 < / objectId >

    If I run now:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/500758f6-b97b-7a79-0c04-996f53edf3f0.000

    then the vNIC is successfully added to the security group. (yay!) So I am now left with the task of how to get

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    of a vNIC?

    I have looked at the object in the Mob vCenter and via PowerCLI, but cannot see how to derive from it.

    Anyone know the answer to that?

    The uuid vnic is created by concatenating the vm instanceUuid + '. ' + the last three digits of the vnic device key.  (The vnic is located in the area of the config.hardware.device of the virtual machine and the key will be to shape 4xxx, where xxx represents the 3 numbers you need).

  • Files saved with the extension of the cab?

    Why are my files saved with extensions _.1 etc. rather than overwrite the original file under the direction of ACR, it is what I want - I check the Document name box only.

    PS cc used with ACR is download any version of.

    Maddiex wrote:

    Thank you. I should have been clearer, I save as a JPEG and then go back to the Raw file and make some changes more and want that he save in jpeg format to replace the first jpeg, but it records in a new jpeg file. What should be incoming instead of the name of the Document? Easy answer is the name of the first jpeg I guess, but I still don't know this name when I'm in ACR and keep in mind that I am editing the raw not the first jpeg format file.

    In fact you do not recede in ACR you very probably opening a jpg file in ACR and saving a jpeg with the cab file.  ACR will not overwrite the files.  Open a RAW file that has never been addressed in ACR and use save picture and choose filetype jpg and leave the name of the document as a file name. Then use save the Image again and do the same thing. As many times as you do, you will write a new file and a _sequence will be added.  ACR does not overwrite files.

    If you look back in ACR in my experience there are no button Save or even an option open just a buttons OK and cancel are in the ACR dialog box. And frankly if you try to go back in camera RAW without using a dynamic object, simply run into problems. So if you think you can come back in ACR with a conversion using open object or convert a layer to a layer to smart object in cc before using ACR as a filter, so this will be a dynamic filter.  You can set the workflow default option to open as an object.   I find the way that ACR is working with open jpg and Tiff a little mess and error prone id you do not pair it with the help of smart object layer, layer with a dynamic object where the embedded object is an image file created by the cab or in the CC where a smart object layer has a smart filter in ACR.  It is easy to get back in the cab and see you save or open buttons.

    Indeed if you use ACR as a normal filter I would say what it does to the destructive layer so that it does not save the settings in ACR it just seems to change the pixels in layers.  Using ACR a second time show not eaten the last settinf you used all set them to 0.

  • Satellite A100 - 147 Compression file error with the product recovery disc

    I have Toshiba A100-147, just out of warranty. I tried to recover with a disk, disk unpack to 69% and then I get the message "ERROR READING OF COMPRESSION FILE (1). I have no choice but to click OK in the error message box, and then quit the recovery as she stops running.

    Any help would be extremely welcome.

    Hello

    It looks like a problem with the Toshiba Recovery CD.
    Have you tried to repeat this procedure?

    What of the HARD drive? You format the HARD drive using an original CD of XP MS?
    It s very interesting if a format of HARD drive could allows to perform the installation of the OS since the Toshiba Recovery CD.

    I remember that something like this has happened on my laptop s friend was not able to recover the operating system using the Toshiba CD. Finally, we found that some sectors on the HARD disk has been corrupted. Format drive HARD allowed integer and my friend was able to install the image of Toshiba.
    It's worth a try ;)

    But of course, this error could occur because of the faulty recovery CD.

  • How to find the number of data items in a file written with the ArryToFile function?

    I wrote a table of number in 2 groups of columns in a file using LabWindows/CVI ArrayToFile... Now, if I want to read the file with the FileToArray function so how do I know the number of items in the file. during the time of writing, I know how many elements array to write. But assume that I want the file to be read at a later time, then how to find the number of items in the file, so that I can read the exact number and present it. Thank you all

    Hello

    I start with the second question:

    bytes_read = ReadLine (file_handle, line_buffer, maximum_bytes);

    the second argument is the buffer to store the characters read, so it's an array of characters; It must be large enough to hold maximum_bytes the value NULL, if char [maximum_butes + 1]

    So, obviously the number of lines in your text tiles can be determined in a loop:

    Open the file

    lines = 0;

    While (ReadLine () > 0)

    {

    lines ++;

    }

    Close the file

  • How can I make my files open with the section 'files' (on the left) already enabled (in Windows Explorer)?

    I'm on Windows XP with Service Pack 4.  The "show common tasks in folders" checked in folder options and my windows Explorer opens with the "common tasks" bar on the left side.  I have to click on 'files' (in the top tool bar) to get my files to display on the left.  If I click on "use Windows classic folders" instead of "Show common tasks in folders" my explore opens with no left bar at all and I still click on 'files' to have folders appear in the position of the left side bar.  Can I solve this case everytime I open windows Explorer opens on the side bar of folders on the left and content on the right?  If Yes, where and how do the default every time I open windows Explorer?  Thanks for any help, that all the world can offer.

    Thank you very much.  This has not only had what I wanted, but also extend this ability to any file folder I click on.  What I was really doing was: I saved a link to a set of "my computer" window microsoft explore my d: drive (my data partition) so it automatically goes to what I look at in explore more often rather than having open 'my computer' and go through several steps to get to the open D: partition.  But I still had to push the button of "folders" at the top of the page to open the view in the left bar of my directories - every time.  With your help my link now opens windows Explorer set up exactly the way I want every time!  You have saved me from countless steps repetative in the future for every time I open windows Explorer.

    Thank you once again,
    David Myers

  • PROTECTION OF FILES WINDOWS WITH THE SFC / SCANNOW

    What I received for the initial mistake of the window File Protection:

    uninstalled also 2 programs McAfee that had been installed earlier.

    I did exactly what was suggested. I ran sfc / scannow using RUN with my running w SP2 cd, but as scannow was running, he kept asking:

    Files that are required for Windows to run correctly must be copied into the DLL Cache.

    Insert your Windows XP Professional Service Pack 3 disc now.

    Choices: Retry more information Cancel

    PROBLEM: Service Pack 3 has been a WINDOWS UPDATE DOWNLOAD.

    What should I do now?

    Do not answer my own question, but that should I or can I just uninstall Service Pack 3, which was an update of Windows and then run sfc/scannow with my original cd.

    and also I saw this posted.  Should I worry about the warning below?

    To uninstall SP3

    1. Click Start and then click Control Panel.

    2. Click on Add / Remove Programs, click Windows XP Service Pack 3, and then click on remove.

    3. Follow the instructions that appear on your screen.

    Warning

    If you choose to uninstall SP3, a dialog box displays a list of programs you installed after you installed the SP3. If you continue, it may be that these programs do not work correctly.

    SHOULD I WORRY ABOUT THIS WARNING? STEP BY STEP SUGGESTIONS WOULD BE HELPFUL.

    Do not uninstall the service pack 3.

    Do not follow the instructions to use sfc/scannow.  99.999% of the time, it is a waste of time and will probably result just to generate accurate error you saw.

    Are these error messages generated spontaneously or only when you run sfc/scannow?

    Why do you run sfc/scannow in the first place?

    If you receive these errors without running sfc/scannow, follow the instructions given by Jose Ibarra in your original post.  In other words, look in the event viewer and see what file is being complained about.  Display the names of files in your response.

    "Slipstreaming" - that Jose correctly tells you to do so - is the process of combining a downloaded XP service pack 3 with your original XP SP2 CD to get service XP pack 3 CD - what sfc/scannow will like better.

    You must have access to a CD burner.  All the necessary software can be obtained free of charge on the Internet.   If you have a CD burner, there are many sites with directions.  These are just two of them:
    http://www.ZDNet.com/blog/hardware/creating-an-XP-SP3-slipstreamed-ISO-file/1848 (do the actual burning of the ISO file that is created by using ImgBurn)
    http://www.winsupersite.com/article/product-review/slipstreaming-Windows-XP-with-Service-Pack-3-SP3

Maybe you are looking for

  • Pages crashes without reason

    Hello I am currently working on some classes for my upcoming exams, and Pages crashes without reason. I really need this sorting out soon, so I was wondering if someone could help me! My crash report can be found at http://pastebin.com/vgTD64xY I wip

  • HP dv6-2152nr: Watch internet on a TV using HP dv6-2152nr?

    I would like to be able to watch internet, from the PC on my TV (Panasonic TC - 32 LX 700.)  The PC and the TV have HDMI, and I am running Windows 7 wireless.  Would it be a simple connection of hdmi to hdmi, or do I need to get cards and or cards to

  • Finder doesn't work well, even after "Killingall Finder"

    Hello world I have a MacBook Air on Mavericks OS X 10.9.5 My Finder is not working properly and I tried Killingall Finder into the Terminal that solves the problem for a while, but after a few seconds, it will work again. The Finder window seems to b

  • Satellite A110-174 and 4 GB of RAM

    Hello today I buyed 2 x 2 GB RAM Adata for my A110-174.When I turn on my pc the BIOS count only 3 GB.What's wrong? Please help me... Thank you

  • DeskJet HP 2510: Wifi and HP Printer Wizard

    I have the officejet 2510. Can I print using USB and my wifi router. But when I use the HP printer assistant, I can only print/scan with the USB key. HP Printer Wizard does not pick up the printer via wireless connection.