LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you create an TDM implicit channel.

How do you create a TDM file with an implicit channel using CVI? What properties do you have to set to get an implicit channel? The "representation" property is read-only, so I cannot set it to implicit_linear. So far I have

 

status = DDC_AddChannel(channelGroupHandle, DDC_Double, "DateTime", "Linear Time", "s", &channelHandle);
status = DDC_CreateChannelProperty(channelHandle, "implicit_start", DDC_Double, 53431389753.546461);
status = DDC_CreateChannelProperty(channelHandle, "implicit_increment", DDC_Double, intervalSeconds);
status = DDC_CreateChannelProperty(channelHandle, "length", DDC_Int32, nPts);
status = DDC_CreateChannelProperty(channelHandle, "lengthmax", DDC_Int32, nPts);
status = DDC_CreateChannelProperty(channelHandle, "monotony", DDC_String, "increasing");
status = DDC_CreateChannelProperty(channelHandle, "displaytype", DDC_String, "time");

 

 

 

0 Kudos
Message 1 of 4
(3,682 Views)

Hi Gaius,

 

Are you looking to set up channels in CVI and then use them in DIAdem?

Tom D.
Staff Software Engineer
NI
0 Kudos
Message 2 of 4
(3,658 Views)

Yes, that is correct. I am programming in the CVI environment. I am using the DIAdem library that is available in CVI. I am using CVI 2015 version.

0 Kudos
Message 3 of 4
(3,647 Views)

Hi Gaius,

 

the CVI-TDM library doesn't allow for creating implicit chaannels.

However, in case you only want to write TDM files, the

TDM Header Writer

may be an alternative.

0 Kudos
Message 4 of 4
(3,616 Views)