From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,932 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,891 Views)

Thank you.

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