09-14-2006 05:57 AM
09-14-2006 08:31 AM
09-20-2006 02:49 PM
Hi salte,
It looks like you are calling the "DDC_CreateChannelPropertyV" function. R&D says that you should instead be calling the "DDC_CreateChannelProperty" function. The last parameter in the "V" version of the function is a va_list, not a character pointer (string), whereas the "non-V" version of the function has a normal character pointer as the last parameter. R&D also said that it is tricky to call the C++ library using C#. If switching from the "V" to "non-V" function does not help, you might try hacking together a C++ version of the code for debugging purposes only. You might potentially need a wrapper C DLL to buffer the C# code and the C++ library.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-21-2006 03:08 AM
09-26-2006 11:09 AM
Hi Salte
I have a question, how have you done the type definition in C#
typedef
struct _DDCFile DDCFile;typedef
struct _DDCChannelGroup DDCChannelGroup;typedef
struct _DDCChannel DDCChannel;typedef
DDCFile* DDCFileHandle;typedef
DDCChannelGroup* DDCChannelGroupHandle;typedef
DDCChannel* DDCChannelHandle;Regards
Manfred
09-27-2006 02:18 AM - edited 09-27-2006 02:18 AM
Message Edited by salte on 09-27-2006 02:21 AM
09-27-2006 06:19 AM
This works fine for me. Have you tried to convert DIAdem .DAT Files into DIAdem .tdm and read it with the library?
Regards
Manfred
09-27-2006 07:03 AM
04-22-2010 04:51 AM
Hi, Brad:
I have a problem with DDC_CreateFileProperty.
Here is the definition of the function.
int DDC_CreateFileProperty (DDCFileHandle file, const char *property, DDCDataType dataType, void *value);
Here is the way I used it:
DDC_CreateFileProperty (file, FILE_Property_Test, DDC_Double, &Test); //where, Test is a double type, double Test=10.0;
I got an error information as: Error: An invalid argument was passed to the library.
My question is the value of file property can only be string type or any data type like double, float...? How can I attach the value of the property to the property?
Many Thanks!
Kuo
04-22-2010 09:46 AM
Hi Kuo,
what is the content of the string constant 'FILE_Property_Test' you are passing as property name?
Greetings from sunny Aachen
Stefan