DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in function DDC_CreateChannelPropertyString (Matlab)

Solved!
Go to solution

Hi all,

 

I use Matlab for write tdm and tdms files by DDC (Diadem Data Connectivity, nilibddc.dll) in Windows 7 64-bit. I am trying to write a waveform channel.

 

I get an error message.

 

[err,dummyVar,timevalue] = calllib(libname,'DDC_CreateChannelPropertyString','Waveform','wf_xname','Time');
Error using calllib
Parameter must be scalar.

 

I do not understand what the problem is?

 

Thanks and best regards

 

Sergey

0 Kudos
Message 1 of 3
(2,916 Views)
Solution
Accepted by topic author feambs

The channel

DDCChannelHandle

is referred by a numeric value not a string

int DDC_CreateChannelPropertyString (DDCChannelHandle channel, const char *property, const char *value);

This number should be available in your code if only the property is missing it is the output parameter of

int DDC_AddChannel (DDCChannelGroupHandle channelGroup, DDCDataType dataType, const char *name, const char *description, const char *unitString, DDCChannelHandle *channel);
0 Kudos
Message 2 of 3
(2,875 Views)

Thank you.

0 Kudos
Message 3 of 3
(2,849 Views)