DDC_GetNumDataValues in DIAdem Connectivity Library

Hi,
I want to import a TDMS file (attached) into MATLAB using the sample script "ReadFile.m" by NI. The number of values in the channels are more than 1000. Nevertheless, I get the output only for first 1000 values. I looked into the script and found the variable "numvals" that gets the value 1000 when I run the script. This is the result of the DIAdem Connectivity Library function "DDC_GetNumDataValues". Something must be wrong with this function. Is there a way to see the function itself, otherwise how can I cope with this problem?
Thanks in advance, Kadir
Attachments:
Bruxelles_09072013_9_15.tdms ‏3982 KB

Hello Kadir,
we could reproduce the issue with your file.
There will be a new release of the ddc lib that would show up this year and will contain an fix for this behavior.
Would this be O.K. for you to wait till ddc lib ships?
Greetings
Andreas
P.S.: The only workaround that I currently think of is load/saveas the file with NI DIAdem to make it work with this DDC standalone version.
P.P.S.: The file would load with NI CVI DDC but the standalone version of ddc lib has this behavior :-(

Similar Messages

  • Accessing DIAdem Connectivity Library with C#

    How do you call the method "DDC_GetChannelGroups" in the "nilibddc.dll" correctly with c#?
    The method takes three arguments:
    1. file handle (integer)
    2. group handles (array of group handles)
    3. length of array mentioned above
    The first argument is ok.
    But what kind of data structure should i pass as the second argument. I've tried Int32, but if the array contains more than one argument (even though i know there is more than one group) the method fails.
    How am i supposed to know how many channel groups there are in a given file beforehand anyway (this is a lesser problem though, because even when i know the exact number of groups it doesn't work).

    hi slate
    did you manage to connet this dll via c#?
    i have this problem
    http://forums.ni.com/ni/board/message?board.id=60&thread.id=11821

  • Data Connection Library used in the workbook is not in a trusted location.

    I got a requirement to display excel charts with data source as SharePoint list.
    Here are the steps which I am following:
    Exported SharePoint list to excel sheet and exported connection file to local drive.
    Uploaded to data connection library.
    Created a new excel file and consumed data from connection file which was stored in data connection library.
    Published the excel sheet to document library with publish options as Chart and Pivot Table.
    Able to see Excel Chart and Pivot table from the browser.
    Getting Error when I try to refresh the excel sheet to get updated data from SharePoint list.
    I added data connection library details to Trusted Data Connection & Trusted File locations still I am getting error. That .odc file is not in Trusted Location.
    "The Data Connection File used in the workbook is not in a trusted location. The following connections
    failed to refresh:"
    Please help me on this and suggest if there is any other approach to fulfill this requirement.

    Hi Pratik,
    Thanks for your input.
    I created a new document library and data connection library and tried the steps mentioned below:
    Configuration
    Enable Claims to Windows Token Service
    The first step, check the status of the Claims to Windows Token Service on SharePoint.
    Use the following instructions to check and enable the Claims to Windows Token Service.
    In Central Administration, in System Settings, click Manage services on server.
    Select Claims to Windows Token Service, and then click Start.
    Verify the service is also running in the Services console:
    In Administrative Tools, click Services.
    Start the Claims to Windows Token Service if it is not running.
    Create a New Secure Store Application
    Create a New Secure Store Target Application and set the credential.
    This credential will be used by SharePoint to access the database. The account set into this step need to have access to the database or SSAS cube/tabular databases.
    Use the following instructions to create and set credential.
    In Central Administration, in Application Management, click Manage service applications.
    Click Secure Store Services, and then click New.
    Target Application Settings:
    Tagert Application ID: ExcelServicesSSS
    Display Name: Excel
    Service Secure Store App
    Contact e-mail: [email protected]
    Target Application Type: Individual
    Target Application Page URL: None
    Click Next.
    Click Next again.
    Target Application Administrators: contoso\administrator
    (Type the user account that will administrate the Secure Store Application.
    Click OK.
    Select Target Application ID ExcelServicesSSS, and then click Set Credential.
    Type Credential Owner, Windows User Name and Password.
    Configure Excel Services
    Add the Application Id created in the previous step to the Excel Services and configure the Trusted Data Connection Library.
    Use the following instructions to add the Application ID.
    In Central Administration, in Application Management, click Manage service applications.
    Click Excel Services Application, and then click Global Settings.
    On External Data, Application ID type ExcelServicesSSS.
    Click OK.
    Click Trusted Data Connection Libraries.
    Click Add Trusted Data Connection Library.
    Address: http://<sharepoint_site>/ (Enter
    the Data Connection Address)
    Click OK.
    But no luck in resolving the issue. Anyhelp would be really thankful.
    Please clarify whether can we pull data from sharepoint list to excel services to display charts?
    Regards,
    N.Srinivas

  • Create a ReportingServices data source and upload to a data connection library

    I have installed reporting services 2012 in SharePoint 2013 integrated mode. I need to create a report data source and upload it to a data connection library using
    C#.
    As I know it uses the ReportingServices2010 class but I cannot explore a reporting server url.
    There is a ReportingServices2010.asmx file in the 15 hive though.
    Also it works fine when I manually set the data source.

    Hi,
    The following materials would be helpful:
    Inserting Data Connections into a SharePoint Library
    https://social.technet.microsoft.com/Forums/en-US/df79dce5-fd92-4506-af4e-11127cb0d655/inserting-data-connections-into-a-sharepoint-library?forum=sharepointdevelopment
    Programmatically exporting reports from SQL 2012 Reporting Services
    http://stackoverflow.com/questions/12199995/programmatically-exporting-reports-from-sql-2012-reporting-services
    Report Server Web Service Endpoints
    http://msdn.microsoft.com/en-us/library/ms155398(v=sql.110).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Unable to load the necessary SQL connectivity library

    I am installing an older (non-Microsoft) program (32bit) that manages mail online and it requires an access to SQL Server to create database to complete installation. I am installing it on Windows Server 2003 standard. This program
    I am installing recommends SQL Server 2000. We are now running SQL Server 2005 on a separate server. For connectivity, I installed SQL server 2005 tools (full install) on the same 2003 server as the program so that this program could manage to locate
    SQL server 2005 and connect to it in order to create necessary tables and complete the installation. I already manually created the database for this program on SQL Server 2005. I created ODBC SQL Server connection string (User DSN). However, during
    installation, I am getting the following error message:
    ERROR: Setup is unable to load the necessary SQL connectivity library. This indicates that the proper client-side SQL utilities are not installed on your system. Setup cannot continue.
    Could this error be SQL Server version specific and the program only likes SQL 2000 client tools and not 2005? Are there major differences between libraries versions? Should there be something else configured? What am I missing? Thanks in advance.

    ERROR: Setup is unable to load the necessary SQL connectivity library. This indicates that the proper client-side SQL utilities are not installed on your system. Setup cannot continue.
    Could this error be SQL Server version specific and the program only likes SQL 2000
    client tools and not 2005?
    Tools are tools, not a connectivity library and by the error message the right connectivity library is missing. Ask the software vendor which one is required or look it up on the other machine, where the application works.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to consume the sharepoint online Library data to Excel sheet using ODATA connection. That ODATA connection file resides in "SharePoint Online -Data Connections Library"

    I have created a OData Connection to my Library and published to SharePoint online site.
    To refresh the data, property is set like "Refresh when opening file"
    When I downloaded and open the file, the new data is consumed to me successfully because this ODF file referenced to my local computer
    If any other user downloads the file its not opening as reference file points to my local machine.
    I want to keep this ODF file in "Data connections" Library (or in any site/Library) and establish the connection to the excel sheet. so that any one can use the ODF file.
    or else any other alternative to use ODF file globally and get the SP Library data to excel ?

    Hi,
    it will use the connection in the ADF library. I recommend though that you not save database connect information in the ADF library. Instead:
    - define the ADF BC model to use JDBC data sources
    - In the ADF library, configure it to only contain the data source name
    - In the view project (the workspace) configure the database connection exposed by the library
    When the library is imported, check Application Resources --> Connections and right click on the imported connection name to configure it
    Frank

  • Receive error messaage when loading pogo fb connect library is missing (all.js) but will load fine on chrome

    the website loads fine, but when loading the message [ fb connect library is missing (all.js) ] appears and i cannot select a room for play. i downloaded chrome and I no longer received the message, which led me to believe that the firefox browser must have something to do with this problem. I have already cleared all browsing history and cache, including java cache, I have uninstalled Firefox and reinstalled it
    I prefer firefox over chrome but will have to have chrome just to play my games.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • FrontRow and network-connected library

    hi!
    i have all my music/movies on one mac (first machine) w/ext. HD's. the itunes on our second mac is connected directly with first-machine-library over network-shares.
    when i start frontrow on the second machine, it won't connect to the database/files. it works only if i connect through the network to a running itunes on the first machine.
    since neither itunes nor frontrow access the playing-counter or the "viewed" info for movies/tv-series, i access the libraries/files this way.
    is there another way to accomplish this?
    or when will itunes/frontrow be fixed, so they access the counters/viewed-info?
    kind regards and thanks for your help,
    holger
    Message was edited by: Holly_Wood
    Message was edited by: Holly_Wood

    Hello Scott,
    I did test and as I tought it wont work on the first fly.
    Abousily reason behind this is Java is not installed. The story could end here.
    But, I have a feeling if you can "hack" into TV and install Java version or even better use some browser which will allow you to download a file and Run a temporary application you could end the story positivly.
    I hope this helps a little and please follow back with us on this thread.
    Kind regards,
    Srdjan

  • LabVIEW DIAdem Connectivity VIs Toolkit

    Hallo zusammen!
    Ich habe folgendes Problem:
    Ein LabVIEW-Programm, welches vermutlich mit LabVIEW_2007 geschrieben wurde soll nun mit LabVIEW_2010 wieder in Betrieb genommen werden. Das einzige Problem besteht nun noch darin, LabVIEW wieder mit Diadem zu verknüpfen.
    Ist das mit einem der Connectivity VIs Toolkits, die jedoch auch von 2007 zu sein scheinen möglich? Oder hat jemand eine andre Idee, wie ich die beiden wieder verknüpfen könnte.
    Schon mal vielen Dank für eure Hilfe imVorraus!
    Gruß, JohannesDD

    Hallo Manuel!
    Erst mal vielen Dank für deine Antwort.
    Das VI von LV_07 hab ich schon probiert in LV_2010 zu öffnen. Dabei ist mir der Fehler ja überhaupt erst aufgefallen.
    Ich vermute den Fehler im Bereich des DIAdem-Report-Wizard. Kann aber keine kompatible Version zu LV_2010 finden.
    Leider ist das VI im Rahmen einer Diplomarbeit entwickelt worden, welche ich nun ausbauen soll.
    Auf Grund des Urheberrechtes muss ich erst abklären, ob das VI hier gepostet werden darf.
    Viele Grüße, Johannes

  • How to connect library after re installing your computer

    I have made a complete new install of windows on my computer and also Itunes.
    The problem is that itunes don't fin my 'old' library.
    On internet I only find steps to change directory under preferences / advanced.
    but that doesn't solve the problem
    anyone any help any link???
    please... i become crazy about it...
    Johan (netherlands
    It's a windows xp system...

    diesel vdub,
    yes, thank you.. and how can i get the content back?
    It is on D:\Mijn documenten\Mijn muziek\iTunes , there is the library...
    To that directory I change in via preferences / advanced.
    but still nog library content ....

  • DIAdem Connectivi​ty Library and Windows Regional Settings

    Hi,
    I'm having a bit of a problem with a CVI program that uses the DIAdem connectivity library when deployed to PCs that have their "Language for non-Unicode programs" set to some non-English language (Japanese is one, but I suspect this will happen with others).  The problem comes up with file properties in TDM files that use the µ or 'mu' symbol in their Property name.  When I call the DDC_GetFilePropertyNames(...) function, I get different strings from the same .tdm file depending on whether I have Windows set to English (US) or Japanese.  As far as functions like DDC_GetFileProperty(...) are concerned the Property name string I get when my Windows is set to English is correct and I get an error using the string from when Windows is set to Japanese (-6213 DDC_PropertyDoesNotExist).  The end result is that my program functions just fine so long as the PC is set to English, and fails on PCs where it is set to Japanese.
    I've attached a small sample console program.  It will ask whether or not you want to create a .tdm file when run.  If yes, the program will create a test.tdm file with a property named "Test_With_µ_Symbol".  In either case, it will attempt to read the file, calling  DDC_GetFilePropertyNames(..) to read the property names, then DDC_GetFilePropertyType(...) and DDC_GetFileProperty(..) using the property name it gets back.  In order to see the problem I'm having, compile and run the program on a PC set to English.  It will have no problems reading the file property back.  Then take the file program to PC set to Japanese and run it, telling it to not create a new file (i.e. just read the existing file), and when the program attempts to read back the file property back it will fail.  Curiously enough if the program is compiled on the Japanese system it will have no problems running, which suggests that CVI will compile a different program depending on your Windows language setting (!?).
    As configuring a computer to use Japanese may be a bit of a pain, here are the bytes in the strings I get back from  DDC_GetFilePropertyNames (...) on the English system (top) and the Japanese system (bottom) which is really the heart of the problem I'm having.  The difference is the -75 on the top string and the -125 and -54 on the bottom string, corresponding to the 'mu' character:
    84 101 115 116 95 87 105 116 104 95 -75 95 83 121 109 98 111 108
    84 101 115 116 95 87 105 116 104 95 -125 -54 95 83 121 109 98 111 108  
    (I didn't post the actual strings as the forum may end up mangling the characters) 
    Thoughts?  I guessing I might be doing something I shouldn't by trying to use the 'mu' character in property strings, but on the other hand I don't think that DDC_GetFilePropertyNames (...)  should be giving different results based upon Windows language.  Thanks in advance for any help.  I'm running Windows XP and CVI 2010SP1.
    Attachments:
    DDCTest.zip ‏3 KB

    Hi tstanely,
    Another possible solution is to try and perform the solution that was mentioned in the Unicode forum in LabVIEW. At the end of the forum, Mark Moss mentions "One of our interns recently went through this adapting a program to display Chinese in the user interface.  His solution ended up being surprisingly simple:  Just read the strings from a text file stored using the target encoding.  In our case, there were really only two encodings of interest: Windows code-page 1252 (used on our company's computers located in North America) and UTF-8 (used on our company's computers in China)."
    Because it seems that the CVI is encoding strings in the application based on the code page used at the time, it might be possible to have multiple text files saved in the different code pages and to load the strings at run-time. You may still have to use the Multibyte Character Set functionality to determine the platform that is being used, etc.
    Milan

  • String data passed to DDC_SetDataValues

    Using the DIAdem connectivity library, you can call DDC_SetDataValues to store data in a channel. If the channel contains string data, what is the format for the values parameter? My guess would be a sequence of back-to-back null-terminated strings but the API documentation does not say.
    Solved!
    Go to Solution.

    I figured this out. When storing string data, DDC_SetDataValues takes a pointer to an array of pointers to C strings, like DDC_GetDataValues.
    This is documented for  DDC_GetDataValues. It should also be documented for DDC_SetDataValues.

  • Is there a range of error codes reserved for user defined error codes?

    I would like to create my own error codes for a CVI dll but I want to make sure I don't use error codes already defined for something else. Is there a range reserved for such use?
    Samee thing for warnings (errorcode > 0)
    Thanks

    I have never found a positive mention of a "safe" range of error codes available for user-defined error conditions, but I can suggest you some source of informations.
    First of all, every library has its specific list of error codes, usually listed in the relative include file. All these error codes are listed in the online help too (search for "error codes" in the index tab of the help).
    Second, GetGeneralErrorString () is a function that can be used to trap errors of the following libraries with a unique error function:
    User Interface Library
    Easy I/O instrument driver
    Toolbox instrument driver
    ActiveX Library
    DIAdem Connectivity Library
    .NET Library
    DataSocket instrument driver
    Network Variable Library
    Real-Time Utility Library
    TDM Streaming Library
    UDP Support Library
    This means that the error codes from this libraries do not overlap, so you could derive from its code some ranges not used by these libraries.
    Nevertheless, there is not a single function for error trapping: every library has its proper list of error codes and a function to decode them in human readable form, andthere is no guarantee that these ranges does not overlap. It's up to you to trap errors from every function in the proper way.
    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?

  • TDMS read error-getd​atatype

    Brief background on my project.  I have a PXI system setup to read signals from DSA devices, S-Series, and an Encoder.  I am using matlab to make function calls to the NI Libraries in DAQmx, and nilibddc.h.  I collect data and stream data to disk with the ability to view data during acquisition.  Acquisition occurs for nearly a minute over 37 channels at 100ksamp/sec.  So the .TDMS files are fairly large.  I synchronize my systems by a sort of hybrid master slave device configuration.  I use automatic synchronization across similar device types, and to synchronize different device types i use the sample clock and start trigger from a DSA device to sync my other devices.  Since I use automatic synchronization the .TDMS files can have anywhere between 1 channel or 20 channels in one file.  This makes for a very large file and Microsoft Excel Importer doesn't cut it due to the limitation on size and time it takes to load.  So I am using the nilibddc.dll to read the data from the files which seems to be pretty smooth so far. I have not attempted to read a file with a minute worth of data but worse case I can read chunks of the data file at a time so I am not terribly worried about that.  My problem occurs when I read data from my .tdms file containing my encoder data.
    The part where it gets hung up is my function calling for DDC_GetDataType.  Now when I use my code to read data from analog .tdms files it works smoothly and does everything I want it to.  The error I get for my counter signals is an unexpected error (-6204.)  Now the interesting thing is when I use labview 2009 on another computer, i can read the files with no problem.  I am guessing my labview 2009 uses different libraries though.  For example when I read the file in labview, i go to the functions pallete, select file i/o, tdms streaming, and use either read .tdms or tdms viewer function.  When I am on my primary computer, I am using a call to the DIAdem Connectivity Library I downloaded from NI. The microsoft excel importer seems to also be hung up at the same location (getdatatype).  I found this when inspecting the log file it creates when I try to read it.  Any help would be appreciated.  I have attached the error log I get from microsoft .tdms importer.  I also attached a sample .tdms file with encoder position data in it.  If trying to open outside of labview, don't be fooled if it tells you there is no data available.  It lies, using labview 2009 you can read all 500ksamps without a problem.  Using TDMS viewer or read tdms atleast.  Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Testlog4.tdms.log ‏5 KB
    TDMS Encoder.zip ‏48 KB

    I went ahead and used the tdms_ebd.dll that you attached and tried it out with my code.  Unfortunately I am still getting hung up at the same location on TDMS files with CI data stored in them.  The getdatatype functions returns an unexpected error.  If I try to bypass this in my code by manually setting the datatype, it then runs into the issue where it acts as if there is no data in the file.  I believe the functions asking for the length of the data is where it returns a 0. Now I did download the TDMS C DLL from the link to NI's website.  This is the one I am currently using with the tdms_ebd.dll that you attached in your response. 
    I am trying to read the information into matlab.  I have code written up that is very similar to what most people have done, and I believe might even be what NI has released as a starting point for TDMS reading in matlab. One example that is closely related to my code is found here. Import into Matlab. My code is not as heavily formatted and I would have to go through the same process in order to release my code.  My code is basically the code though that he refers to earlier in his message found in the NI devzone. One thing I wanted to note is this though, depending on where the TDMS C DLL is downloaded, the C formatting for the functions differs slightly.  For example I have found that there are header files with a _m added to the file.  I assume these files were made specifically for usage with matlab, since they are a lot easier to work with then the actual header files.  I do have both types and have tried both types and still no luck. 
    Let me know if you need any more information, but as of right now, the update seems to not have fixed my problem.  Thanks.

  • How to create and export a sharepoint list connection file to excel connection file library from power pivot?

    Hi All,
    I'm new to SharePoint and Power BI.
    I've to use  share point 2013 lists to create power view reports. For that, I need to create Power Pivot in Excel 2013.
    I'm fine with the above. We normally take a data feed of a list and create connection to that. We need to create a connection file (.odc) and export it into a excel file connection library of Share point. The connection to be made to share point list. The
    power pivot will be having multiple related lists.
    How can I create a connection file which is referring to share point list
    Please suggest.
    Regards,
    Julie

    Hi All,
    Finally, I could find the answer for this question after a long search.
    First of all, open a new excel file in server.
    Data-->From other connection-->From data connection wizard-->data feed-->Location of the data feed-->
    http://sharepointsite/sitename/_vti_bin/ListData.svc
    -->next-->select the lists which you need-->next-->only create connection-->properties--->export connection file
    -->ok
    The connection file has been created and .odc file exported to the specified location.
    Open power pivot and check the connection in existing connections.
    Exported file has to be uploaded in Excel file connection library of share point 2013. So that you can refer the same in this excel file when you upload it into share point.
    Regards,
    Julie

Maybe you are looking for

  • PDA Application Connect to Database

    Hi, I want to develop application sit on PDA(like iPAQ) eg.Contact Manager (to keep personal contact). this require a database to keep all these information in the PDA so that can be retrieve. Its there any Micro-Database that can be installed into P

  • Solution Manager Security

    Hello, I'm responsible to setup Solution Manager to provide Enterprise Support to the customer. I would like my customer to use Solution Manager by using Internet VPN connection. In the middle of preparation, I have some questions for Solution Manage

  • Error running PL/SQL with too many parameters

    Developer 10g (9.0.5.1 Build 1605) seems to have a memory limitation when running a PL/SQL procedure. The dialog box that is created to allow running and/or debugging of PL/SQL procedures defaults the parameter sizes to 200 bytes. At a certain point

  • Lil' Chris removed from spotify

    Not many months ago the artist Lil' Chis sadly passed away, i remember listening to his stuff as i grew up at one stage, anyway he has an artist page on spotigy but sadly some other artist with the exact same name seems to have taken his place here i

  • Error "Cannot find fbe"

    When I'm trying to compile, I get a message "can't find fbe". I think fbe is an assembler. Where do I find it? I've searched the disk. Is it part of Solaris 7 or should it have been installed as part of the Forte C/C++ development package that I down