03-03-2008 11:05 AM
Meghan M wrote:
The compatibility issue between The MathWorks, Inc. MATLAB(R) software version R2007b and National Instruments software is due to the TDM-C DLL. We are currently working on updating the TDMS reader, and other parts of LabVIEW to work with this version of The MathWorks, Inc. MATLAB(R) software.
What are the error messages that you are receiving with The MathWorks, Inc. MATLAB(R) software version R2007a? Also, how are they related to the functions that you have listed?
[ status, ChnPropNames ] = calllib( 'nilibddc', 'DDC_GetChannelPropertyNames', hChn, emptycell, pNumChnProps.Value );
03-04-2008 05:40 PM
03-05-2008 04:22 AM
Meghan M wrote:
Hi Alex,Thank you for submitting this. The error that you are seeing when using the function "DDC_GetChannelPropertyNames" is something our R&D team is aware of. They are currently working on resolving this issue for future versions. In the meantime, I was suggest trying to avoid use of this function, especially if you already know the channel property names. I apologize for this inconvenience, but please let me know if there is anything I can do to help you avoid this error. Thanks Alex.
03-06-2008 10:50 AM
03-06-2009 11:53 AM
Hi Meghan,
It looks like the last thread was 1 year ago today. I'm having the same problem (Error using ==> loaddefinedlibrary. The specified module could not be found.), and would like to know if it was ever resolved. I've tried it on 2 PC's running XP w/IE6 and IE7, and Matlab version r2006a and r2007a with no success. This is critical to my application, so would appreciate any help.
03-09-2009 04:16 PM
HI BK,
Did you get the example from here. This kb was updated in May 2008, to contain the fix for this problem.
03-09-2009 04:42 PM
03-10-2009 04:56 PM
Hey BK,
It is possible. But I am not positive. I will test this on our test machine and let you know.
03-11-2009 10:16 AM
Hi Claire,
I discovered something today that may help resolve this problem: In the kb, it is suggested that the paths to the dll and h-file are
defined in the Matlab m-file as follows:
examplePath = 'C:\test';
hfile = [examplePath '\nilibddc_m.h'];
loadlibrary([examplePath '\nilibddc'], hfile);
When this is done, the user is not prompted for the paths to the dll and h-file, and the error occurs. However, if these lines are deleted, allowing the script to prompt for the files, then the program works. This would indicate the problem is not with the dll itself, but something in the way the paths are defined. I know that the files were found when the paths were predefined, as I would get a "file not found" error if the path or filename were wrong. I will continue to look at this - maybe you could try this experiment and see what you think.
03-11-2009 01:52 PM
Claire,
It seems I should have read the README file in the download. It states:
The 'dev\bin' directory contains all of the run-time components required by
this library. For the purpose of development testing, you should copy the
contents of this directory into the same directory as the executable or DLL
that uses this library.
So, if I copy all the files from dev/bin to the directory where I put the dll and h-file,
all seems to be working properly. The 1st page of the kb seemed to imply that
only the dll and h-file needed to be in this directory, but that is not the case.