12-04-2016 03:52 PM
Hi all,
I use Matlab for write tdm and tdms files by DDC (Diadem Data Connectivi
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
Solved! Go to Solution.
12-05-2016 04:23 AM
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);
12-06-2016 11:31 AM
Thank you.